• Closed
  • Markus Vogt
    Spectator
    November 27, 2016 at 1:18 am #31292

    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

    Denzel Chia
    Moderator
    Posts: 2672
    November 28, 2016 at 10:18 am #31301

    Hi,

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

    Thank you

    Markus Vogt
    Spectator
    Posts: 44
    November 28, 2016 at 6:08 pm #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
    Posts: 2672
    November 29, 2016 at 9:36 am #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
    Spectator
    Posts: 44
    November 29, 2016 at 7:05 pm #31311
    This reply has been marked as private.
    Denzel Chia
    Moderator
    Posts: 2672
    November 30, 2016 at 6:10 am #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
    Spectator
    Posts: 44
    December 1, 2016 at 9:10 pm #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
    Posts: 2672
    December 2, 2016 at 9:08 am #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