• Resolved bunjip

    (@bunjip)


    Hi,

    I want to make a custom German translation for TEC, which changes just a view words. Mainly, I want to replace the translation for ‘event’ from ‘Veranstaltung’ to ‘Termin’. Accordingly for the plural versions, too.

    I’ve copied the-events-calendar-de_DE.mo and the-events-calendar-de_DE.po from wp-content/plugins/the-events-calendar/lang to wp-content/themes/mytheme/languages/plugins. Then I used Poedit to change the copied *.po file as described, saved it and created a MO-file, which overwrote the copied MO-file.

    I tried a different directory for the custom translation, too: wp-content/languages/plugins

    However, the changes didn’t take effect. I still see the default translation, wherever I look.

    What did I miss here? Any help is appreciated.

    Thanks,
    Bunjip

    • This topic was modified 8 years, 1 month ago by bunjip.
    • This topic was modified 8 years, 1 month ago by bunjip.
Viewing 7 replies - 1 through 7 (of 7 total)
  • I think I am having a similar issue….
    Just saw that the spanish language is half way translated, started to add new translations on the .po file, using POEDIT….
    The saved it and uploaded both files (po and mo) to the lang plugin directory (overwriting the old ones)
    But… no changes? what can be wrong?

    For example:
    <a href="<?php echo esc_url( tribe_get_events_link() ); ?>"> <?php printf( '&laquo; ' . esc_html_x( 'All %s', '%s Events plural label', 'the-events-calendar' ), $events_label_plural ); ?></a>

    Is showed as “All eventos”
    I have added a translation to it, at the All %s string, so it should be showing “Todos los eventos”….

    D-:

    Thread Starter bunjip

    (@bunjip)

    So embarrassing…

    just a view words

    should of course read

    just a few words

    Plugin Contributor Andras Guseo

    (@aguseo)

    Hello @bunjip and @luuuciano,

    Thanks for your questions.

    Indeed, the folder for language override should be wp-content/languages/plugins. So put the .po and .mo files there.

    I checked it locally and for me it works in that folder. Also did a small change and everything was as expected.

    What I would recommend is to check first if you have the latest version.
    Then update the language files: open the .po file, then in PoEdit go to the Catalog menu and select Update from POT …. Do any translations, save the file and upload .po and .mo to your server.

    Check if this helps.

    Cheers,
    Andras

    Plugin Contributor Andras Guseo

    (@aguseo)

    Just one more thing. ??

    In /wp-content/plugins/the-events-calendar/src/views/single-event.php , the translation for the “All events” string is not setup properly

    It should read printf( '? ' . esc_html__( 'All %s', 'the-events-calendar' ), $events_label_plural ) instead of printf( '? ' . esc_html_x( 'All %s', '%s Events plural label', 'the-events-calendar' ), $events_label_plural )

    For now, you could manually change that file.

    Thread Starter bunjip

    (@bunjip)

    Thanks @aguseo,

    That works perfectly for me now.

    Bunjip

    Plugin Contributor Andras Guseo

    (@aguseo)

    Great, I’m stoked to hear it solved it!

    Good luck with your project!

    Cheers,
    Andras

    luuuciano

    (@luuuciano)

    We are having issues with other 4 never translated strings….

    In the main view, at the search input it says Keyword… I have seen at the language file (es_ES.po) and there where a couple Keyword strings untranslated, I have added, saved it and upload the mo and po files… it continue to show Keyword…

    And…. at the bottom of the same main view it says “Previous Eventos”… that is half english half spanish… the same with “Next Eventos”…

    And, after that it says “+ Export Events”, I have found that that line was unstranslated in the language file… I have added it, uploaded the files…… and no changes at all :-/
    Pretty odd…

    It could be that the php codes are wrong too?

    Oops, now I have uploaded the files to wp-content/languages/plugins it works!
    ??

    • This reply was modified 8 years ago by luuuciano.
    • This reply was modified 8 years ago by luuuciano.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Translation changes do not appear’ is closed to new replies.