• tinilopez

    (@tinilopez)


    On the view page of an event. Everything is correctly translated except Type of Event that continues to appear in English.
    I have edited the .po file and verified that the translation was correct. I have recompiled it but it does not load the translation of that string.
    I have modified the translation and recompiled again and nothing.
    I’ve also checked the single_event_format.php file, and even though I’m not a programmer, comparing to other strings that translate correctly I see no difference.
    What can be failing?

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • joneiseman

    (@joneiseman)

    Looks like there’s a missing translation for “Event Type”. Here’s some documentation on translation for Events Manager: https://wp-events-plugin.com/documentation/translating/

    Thread Starter tinilopez

    (@tinilopez)

    I think the translation is not missing. The “Event Type” string appears in the .po file, including its translation, but it is not reflected in the front-end.
    I don’t know if it will be related to some Javascript code, or some other problem.
    It may also be that the string that appears in the .po file is not the one that corresponds to the view page of a single event, but there is no other string in that file and no other file related to the language.

    joneiseman

    (@joneiseman)

    Here’s what I see in the php code for the single event page:

    esc_html_e('Event Type', 'events-manager')

    What’s in the .po file should match this.

    Thread Starter tinilopez

    (@tinilopez)

    I am attaching an image of po-edit with the string that is included in the file.

    joneiseman

    (@joneiseman)

    Everything looks correct to me. You may need to request support from poedit.

    Thread Starter tinilopez

    (@tinilopez)

    I don’t think it has to do with poedit. The problem appeared beforehand, without having edited the language.

    joneiseman

    (@joneiseman)

    When I read the documentation on how translation works for the Events Manager it says they are using the GlotPress translation system hosted on translate.wordpress.org. So, the problem could be solved by adding the translation to translate.wordpress.org (I don’t know how to do that).

    I don’t know if poedit stores information on the translate.wordpress.org server or if it stores it locally on your server. Either way, if you’re depending on poedit to fix the problem then you would need to request support from them.

    Thread Starter tinilopez

    (@tinilopez)

    Ok. Thank you. Thank you very much for your interest.

    joneiseman

    (@joneiseman)

    When I look on https://translate.wordpress.org/projects/wp-plugins/events-manager/ I see that a Spanish translation was added for “Event Type” on March 6, 2023. So, I guess this will get fixed at some point.

    Here’s a plugin that says it can be used to force an update of the translation: https://wordpress.org/plugins/force-update-translations/

    • This reply was modified 1 year ago by joneiseman.
    Thread Starter tinilopez

    (@tinilopez)

    I just saw it on translate.wordpress.org and the string is correct. It’s a mystery why it doesn’t translate on the front end.

    joneiseman

    (@joneiseman)

    There must be some time lag from the time the translation was added until it shows up for use. I guess that’s why this plugin to force an update exists: https://wordpress.org/plugins/force-update-translations/

    Thread Starter tinilopez

    (@tinilopez)

    Thanks again.
    I have tried to import the translation from https://translate.wordpress.org/projects/wp-plugins/events-manager/ and it still does not translate.
    I’m not very much in favor of installing plugins, besides it would only help me to correct a specific error.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Does not translate the Event Type string’ is closed to new replies.