Home › Forums › Calendar Products › Events Calendar PRO › Title of week view still contains mixed languages
- This topic has 8 replies, 2 voices, and was last updated 10 years, 6 months ago by
Nico.
-
AuthorPosts
-
October 7, 2015 at 3:05 am #1012169
be999
ParticipantHello,
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,
BerndOctober 7, 2015 at 9:20 am #1012367Nico
MemberHowdy 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,
NicoOctober 14, 2015 at 1:29 am #1014426be999
ParticipantHi 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
BerndOctober 14, 2015 at 1:29 am #1014427be999
ParticipantThis reply is private.
October 15, 2015 at 5:53 am #1014822Nico
MemberHi 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,
NicoOctober 15, 2015 at 7:06 am #1014896be999
ParticipantDear 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,
BerndOctober 16, 2015 at 5:25 am #1015205Nico
MemberHi 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,
NicoOctober 16, 2015 at 6:10 am #1015213be999
ParticipantHi 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,
BerndOctober 16, 2015 at 10:28 am #1015361Nico
MemberHey 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 -
AuthorPosts
- The topic ‘Title of week view still contains mixed languages’ is closed to new replies.
