• Creator
    Topic
  • #31292

    Markus Vogt
    Participant
    Been thanked: 3 times

    I use Loco Translate to translate my whole site from English to German. It almost all works out.

    But if I use shortcodes on my site language is still in English as here on the homepage with the blog-shortcode: http://www.radtouren-checker.de/ (if you scroll down you can see it).

    There’s written:
    – 0 comments
    – Read more
    – The date is still in US-American diction tough in the settings it is properly in German diction

    So I’ve done it as you explained it in another thread and here on the knowledge base. But why it is all here in the shortcodes in English?

    Thanks,
    Markus

Viewing 7 replies - 1 through 7 (of 7 total)
Replies
  • Denzel Chia
    Moderator
    Post count: 3223
    Been thanked: 129 times
    #31301 |

    Hi,

    Shortcodes are in theme4press core plugn, please translate the plugin.

    Thank you

    Markus Vogt
    Participant
    Post count: 21
    Been thanked: 3 times
    #31305 |

    Ok, that worked without the date. Thanks. Could I change the form of the date from MM DD Y to DD MM Y…? And where?

    Denzel Chia
    Moderator
    Post count: 3223
    Been thanked: 129 times
    #31308 |

    Hi,

    To change the date format, you need to edit theme or plugin file.
    Our support does not include modification of theme or plugin file, but I can try to find it’s location for you.
    What date do you want to change?

    Thank you

    Markus Vogt
    Participant
    Post count: 21
    Been thanked: 3 times
    #31311 |

    I want to change this date. It’s the blog I inserted with shortcodes.

    Maybe I need to change theme4press core plugin – but where I can change the date format in the configurations? Or somewhere else?

    Thanks!

    Denzel Chia
    Moderator
    Post count: 3223
    Been thanked: 129 times
    #31314 |

    Hi,

    The blog shortcode is located in theme4press core plugin.
    t4p-core/shortcode/class-blog.php

    Sorry, I am not sure on which line it’s located in the file.

    Thank you.

    Markus Vogt
    Participant
    Post count: 21
    Been thanked: 3 times
    #31327 |

    Ok, thanks. I found the place in my FTP-Client. But

    $inner_content .= sprintf(‘<span %s>%s</span>’, T4PCore_Plugin::attributes(‘date’), get_the_time($smof_data[‘alternate_date_format_day’]));
    $inner_content .= sprintf(‘<span %s>%s</span>’, T4PCore_Plugin::attributes(‘month-year’), get_the_time($smof_data[‘alternate_date_format_month_year’]));

    is this the place of the date, or this?

    if ($args[‘prev_post_month’] != $args[‘post_month’]) {
    $inner_content = sprintf(‘

    <h3 %s style=”font-size:13px !important; padding: 0px 5px;”>%s</h3>

    ‘, T4PCore_Plugin::attributes(‘timeline-date hidden-div’), T4PCore_Plugin::attributes(‘timeline-title’), get_the_date($smof_data[‘timeline_date_format’]));
    }

    Denzel Chia
    Moderator
    Post count: 3223
    Been thanked: 129 times
    #31331 |

    Hi,

    Sorry, I had mentioned that I do not know which line is the code for time format that you require to edit.
    If I know, I would have tell you straight.

    Our support does not include editing of theme codes, which means i cannot ask a developer to help you in this issue.
    Please contact our developer if you require further assistance.
    https://theme4press.com/theme-customization-service/

    Thank you

Viewing 7 replies - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.