All Events translate

Home Forums Additional Help Translations All Events translate

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #992522
    Anton
    Guest

    Hi,
    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?

    #992683
    Nico
    Member

    Hi 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,
    Nico

    #993799
    Anton
    Guest

    Hi 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.

    #994339
    George
    Participant

    Hey 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,
    George

    #994423
    Anton
    Guest

    Hey 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 ))

    #994723
    Nico
    Member

    Hi 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,
    Nico

    #994809
    Anton
    Guest

    Hi 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!

    #994851
    Nico
    Member

    Hey 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,
    Nico

    #995312
    Anton
    Guest

    Hey 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( __( '&laquo; 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.

    #995583
    Nico
    Member

    Anton,

    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,
    Nico

    #995639
    Anton
    Guest

    Hi 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.

    #995694
    Nico
    Member

    Hey 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

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘All Events translate’ is closed to new replies.