L10n strings with context don't display localized/translated.

Home Forums Calendar Products Events Calendar PRO L10n strings with context don't display localized/translated.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1344555
    Jan Hnatek
    Participant

    Some l10n strings are not showing localized. Includes some major ones like the header for month view.
    This one in particular is with context in the .po file:

    #: src/functions/template-tags/loop.php:162
    msgctxt “month view”
    msgid “%1$s for %2$s”
    msgstr “%1$s na měsíc %2$s”

    As if the esc_html_x( ‘%1$s for %2$s’, ‘month view’, ‘the-events-calendar’ ) didn’t work properly.

    Any idea why that might be?

    #1344712
    Geoff B.
    Member

    Good evening Jan and welcome to the Events Calendar Support forum!

    Thank you for reaching out to us.

    We are sorry to hear about the translations not working as expected
    I would love to help you with this topic.

    When translation file strings are not kicking in, it is usually caused by one of the following things:

    1. Your translation files are not up to date
    2. You are using some customized translation files that have been placed in the /wp-content/languages/ or /wp-content/languages/plugins/ folder. These might not be updated and will override any other file.
    3. The strings are translated, but are considered “fuzzy”

    In the first 2 cases, the solution is to update your translation files using the pot file. You can do this by using the Poedit software and heading to Catalog > Update from pot file.

    In the last case, you will need to make them “unfuzzy” using Poedit.

    If that still does not work, could you send me a copy of your/wp-content/languages/plugins/ folder (via a .zip file in a dropbox or Google Drive link) ?

    Let me know how that goes.

    Best regards,
    Geoff B.

    #1345956
    Jan Hnatek
    Participant

    Hi Geoff,

    thanks for the hints. I had an old file in /wp-content/languages/plugins/ folder in which the corresponding message didn’t have context. After updating those it works now.

    Regards,
    Jan

    #1345976
    Geoff B.
    Member

    Good morning Jan,

    I am super stoked to hear that!

    You are welcome back in our support forums any time 🙂

    For now, I am going to close this thread.

    Have a great week!

    Geoff B.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘L10n strings with context don't display localized/translated.’ is closed to new replies.