Title of week view still contains mixed languages

Home Forums Calendar Products Events Calendar PRO Title of week view still contains mixed languages

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1012169
    be999
    Participant

    Hello,

    recently I updated to pro version 3.12.2 . Most of the translation errors I had experienced after the first update of the version 3.9.1 disappeard – exept the one with week view: “Veranstaltungen for week of 5. Oktober” .
    Well, I imported the last german translation files from http://translations.theeventscalendar.com/projects/tribe-events-calendar-pro/de/default but the issue with the mixup of two languages continues. The german translation is labeled with 100%.

    For test purpose only I’ve switches the language of my wordpress installion in the backend to different language: the issue with the current language / for week of could be found in all languages I’ve tested.

    As far as I could see, it is’nt a matter of uncomplete translation files but rather something different. The string pairs in the german file are all there:
    #: src/Tribe/Main.php:370
    msgid “%1$s for week of %2$s”
    msgstr ” %1$s der Woche vom %2$s”

    ——————————————————————————-

    the copy of my systemdata:

    ——————————————————————

    regards,
    Bernd

    #1012367
    Nico
    Member

    Howdy Bernd,

    Welcome to our support forums and thanks for reaching out to us. I’ll try to help you out on this!

    First of all I’m glad to hear we are in a much better spot now than we where in 3.9 regarding our translation support πŸ™‚

    On the particular issue you reported, I could reproduce it locally, and manage to solve this by re-downloading the translation files for German: http://translations.theeventscalendar.com/projects/tribe-events-calendar-pro/de/default. Please re download .po and .mo exports and let me know if that fixes the issue for you. Also flush any cache storage before re-testing. I could also reproduce this with Spanish and also fixed by re-downloading the translation.

    I’ll investigate if the latest version of the translation files where included in the latest zips of the plugins, thanks for reporting this!

    Best,
    Nico

    #1014426
    be999
    Participant

    Hi Nico,

    thanks for your reply.
    Though I followed your advice (export of latest lang-files, empty cache) the error is still there.
    I sent you the url in my first post (with system data). If you go to that adress you will find the menue item “RAUMBUCHUNGEN” with the calendar which normally is hidden. Please check it for yourself.

    regards
    Bernd

    #1014427
    be999
    Participant

    This reply is private.

    #1014822
    Nico
    Member

    Hi Bernd,

    Thanks for following up on this, and sorry to hear that updating the language files didn’t fix the issue in your site πŸ™

    It doesn’t sound like a conflict, but just to be sure… Can you please follow the steps described in our Testing for conflicts guide? This way we can see if this is a problem in our plugin or a conflict with the theme or other installed plugins.

    If you are still getting this under default conditions try adding the following snippet to your theme’s functions.php file (located at wp-content/themes/your-theme/):


    function tribe_custom_theme_text ( $translations, $text, $domain ) {
    $custom_text = array(
    '%1$s for week of %2$s' => '%1$s der Woche vom %2$s',
    );
    if( $domain == 'tribe-events-calendar-pro' && array_key_exists($text, $custom_text) ) {
    $text = $custom_text[$text];
    }
    return $text;
    }
    add_filter('gettext', 'tribe_custom_theme_text', 20, 3);

    The above function should override the translation string.

    Please let me know about how this goes,
    Best,
    Nico

    #1014896
    be999
    Participant

    Dear Nico,

    I followed the steps in the conflict guide but it didn’t change the result.
    Then I switched back to my standard theme twentytwelve and pasted your snippet at the end of the function.php.
    After flushing the cache again I couldn’t see a change in the week view – I’m sorry. πŸ™

    I’ve no idea what to try next.

    regards,
    Bernd

    #1015205
    Nico
    Member

    Hi Bernd,

    Sorry to hear this is still an issue πŸ™ I’m a bit puzzled I must admit, all the suggested solutions seem to work on my end, but let’s keep trying!

    Please do the following:

    – Double-check that you are adding the code to the functions.php file of the active theme. Maybe obvious but…

    – Fresh install: Can you set up a fresh WordPress site locally to test this on another environment? Please do not install anything but our plugins (latest versions), and leave the TweentyFifteen default theme active. Once the install is complete and our plugins are installed switch the site to German. If you still see the issue try the suggested solutions: re-download language files and adding the snippet to the functions.php file of the theme.

    Please let me know if any of the suggested worked,
    Have a great weekend,
    Nico

    #1015213
    be999
    Participant

    Hi Nico, I already started to download fresh versions of the plugins in order to follow your advice for a new test installation when I discovered that there is a new Pro Version 3.12.4 ready for the actualisation of my site (since yesterday). Well, I decided to give that a try and… though it is almost not to believe… it solved the whole problem with the mixed translation at week view.

    Guess, we both can allow us a relaxed weekend now! πŸ™‚

    regards,
    Bernd

    #1015361
    Nico
    Member

    Hey Bernd,

    Stocked to hear you could sort this out! We can now have a relaxed weekend indeed πŸ˜‰

    I’ll go ahead and close out this thread, but if you need help with anything else please don’t hesitate to create a new one and we will be happy to assist you.

    Best,
    Nico

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Title of week view still contains mixed languages’ is closed to new replies.