Home › Forums › Additional Help › Translations › All Events translate
- This topic has 11 replies, 2 voices, and was last updated 10 years, 8 months ago by
Nico.
-
AuthorPosts
-
August 1, 2015 at 8:36 pm #992522
Anton
GuestHi,
I can’t translate “All Events” to Russian any with Codestyling-localization plugin, any .po file edit, any delete or edit `<p class=”tribe-events-back”>
<a href=”<?php echo esc_url( tribe_get_events_link() ); ?>”> <?php printf( __( ‘« All %s’, ‘tribe-events-calendar’ ), $events_label_plural ); ?></a>
</p>in single-event.php
What do I must do?August 3, 2015 at 6:56 am #992683Nico
MemberHi Anton,
Thanks for reaching out to us! We have a new site for translations, where you can add or modify the translated strings easily and then download the .mo and .po files to your site.
Please be sure to check those links and let me know if you have any follow-up questions,
Best,
NicoAugust 6, 2015 at 3:16 am #993799Anton
GuestHi Nico!
Thanks for the answer. I changed the standard translation Events Calendar for my site, therefore I do not need other translate version. I just want to do the translation, using the standard methods of WP.August 7, 2015 at 12:16 pm #994339George
ParticipantHey Anton,
If you find that a string is not translated like All Events, then unfortunately that means that the translation is missing from our translation file. The best solution to fix this is to go to the translation site that Nico linked to above, and to submit a fix for the missing translations.
You could alternatively fix the .po file manually with a program like PoEdit, but as for fixing that string with another plugin, plugins are not an officially supported way for modifying files directly, and the plugin itself could be having a problem where it is failing to save the files after your changes. It is not a standard method of WP – only GlotPress, which is our translations site for example, or manually editing things with PoEdit or something are.
I hope this information helps – if I’m misunderstanding your issue, I’m very sorry! Let us know about the problems in more detail if this is the case, we can try to offer some more specific advice from there.
Cheers,
GeorgeAugust 7, 2015 at 10:59 pm #994423Anton
GuestHey George!
Thanks for the cool plugin! I can to create many posts for events. It’s good for the Google Search. But I can’t resolve problem translate to Russian language “All Events”. I don’t have problems for translation this plugin. But this value I can’t translate to Russian with Codestyling-localization plugin, or tribe-events-calendar-ru_RU.po edit, and delete or edit <p class=”tribe-events-back in single-event.php file.
Help me please ))
August 10, 2015 at 7:16 am #994723Nico
MemberHi Anton,
Thanks for the follow-up once again!
Can you please try with this code? Paste it in your functions.php file – wp-content/themes/your_theme/ – and change ‘Events’ for it’s appropriate Russian translation.
add_filter( 'tribe_event_label_plural', function () { return 'Events'; } );
Please let me know if it works for you,
Best,
NicoAugust 10, 2015 at 10:36 am #994809Anton
GuestHi Nico!
Thanks!
I changed functions.php and all values really changed also.
http://prntscr.com/831qtq
Unfortunately “All Events” value don’t translated.
http://prntscr.com/831rns
And other values “Events” (%s) never have been a problem for translation before.
I hope translate “All Events” in future -:)
Thanks again!August 10, 2015 at 12:04 pm #994851Nico
MemberHey Anton,
Not sure about your last reply, Did the snippet work? Partially?
In case it doesn’t work, Have you tried clearing your site’s cache? It’s also worth trying this with default WP theme and no other plugins active, Can you give that a try?
Please let me know,
Best,
NicoAugust 12, 2015 at 3:03 am #995312Anton
GuestHey Nico!
I tried translate without cache plugin. I’ll probably not clear earlier wrote. I don’t have any problem with translation for this cool plugin. But I have problem for the values “All Events”.
Could you tell me please why I’ll delete /../wp-content/plugins/the-events-calendar/src/views/single-event.php<p class="tribe-events-back"> <a href="<?php echo esc_url( tribe_get_events_link() ); ?>"> <?php printf( __( '« All %s', 'tribe-events-calendar' ), $events_label_plural ); ?></a> </p>still, this value remains on the site and does not disappear.
Thanks.
P. S. Sorry for my English.August 12, 2015 at 4:04 pm #995583Nico
MemberAnton,
Thanks once again for the follow-up! No problem about your English, not native speaker myself 😉
If you delete the view and it’s still showing up on the site I can only think of two possibilities:
– Template override: please check if you have a folder called ‘tribe-events’ inside your theme. There you can store modified copies of the view files that will be load before the ones in the plugin directory if they exist – check out our Themer’s guide for a description on how this works.
– Cache: again, some sort of caching might be affecting this. It can be generated by a plugin or by the server.
Please check on those and let me know,
Best,
NicoAugust 12, 2015 at 9:01 pm #995639Anton
GuestHi Nico!
Yes!!! Thanks!
My theme Olympic via CSSIgniter have ../wp-content/themes/wp_olympic5-v1.1/tribe-events/ are two files default-template.php and single-event.php.
In single-event.php is code `<p class=”tribe-events-back”>
<a href=”<?php echo esc_url( tribe_get_events_link() ); ?>”> <?php printf( __( ‘« All %s’, ‘tribe-events-calendar’ ), $events_label_plural ); ?></a>
</p>`
It’s edit solves all problems.
Thanks again and I apologize for the trouble.August 13, 2015 at 6:02 am #995694Nico
MemberHey Anton that’s great to hear!
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 help.
Thanks again for the patience on this,
Best,
Nico -
AuthorPosts
- The topic ‘All Events translate’ is closed to new replies.
