• Resolved stormymondays

    (@stormymondays)


    I can see on my sites that translations have stopped working on the front end (back end too probably), at least for Spanish language.

    The translations are there but they are not being used.

    Any idea how to fix it?

    PS as a temporary fix, I just reverted to 2.3.24, languages work correctly on this one.

    • This topic was modified 3 years, 8 months ago by stormymondays.
Viewing 9 replies - 1 through 9 (of 9 total)
  • For my site too.
    Using version 2.3.25.1

    Dan

    Plugin Contributor Andras Guseo

    (@aguseo)

    Hi @danstramer @stormymondays

    Thanks for reporting this and sorry for this inconvenience. I’ll dig into this and will let you know what I find.

    Dan, could you share a link to your site? What language are you using?

    Thanks,
    Andras

    Here:
    https://www.flamenco.co.il/%d7%9e%d7%95%d7%a4%d7%a2%d7%99%d7%9d/

    Date, Tour & Venue used to be translated. Now they are in english.
    The site is in Hebrew.

    Thanks
    Dan

    • This reply was modified 3 years, 7 months ago by Dan Stramer.
    Plugin Contributor Andras Guseo

    (@aguseo)

    Hi @danstramer, @stormymondays,

    I was digging into this just now. I found the source of the issue. The text-domain is not loaded the proper way so the languages from the /langs folder don’t get loaded.
    I submitted a fix for this, but not sure at the moment when it will be out.

    There is a workaround though. If you put the translation files in the “wp-content/languages/plugins” folder, then they will be loaded and will work.

    Also if you make changes to the translations, this is the folder where they will be safe.
    In the plugin folder, the translations will get overwritten with a plugin update.

    Please check and let me know if this works.

    Cheers,
    Andras

    Thans @aguseo
    I copied the files to that directory but it’s still not translated.
    See screenshot.
    https://www.dropbox.com/s/51wku40cxhj6p2a/gigpress-he.jpg?dl=0

    The site is also using WPML (translation plugin), but has always did and nothing has changed it that regard.

    Dan

    Plugin Contributor Andras Guseo

    (@aguseo)

    Interesting. It works for me with German, Spanish and Hebrew as well.

    I can give you the manual fix.
    1. Make a backup. ??
    2. Open the wp-content/plugins/gigpress/gigpress.php file for editing.
    3. Look for the following line around line 519:

    load_plugin_textdomain( 'gigpress', NULL, GIGPRESS_PLUGIN_DIR . 'langs/' );

    4. Change that line to the following:

    load_plugin_textdomain( 'gigpress', false, dirname( plugin_basename( __FILE__ ) ) . '/langs' );

    5. Save and check.

    This should do the trick.

    Eagerly waiting to hear about the results.

    A.

    Thread Starter stormymondays

    (@stormymondays)

    I can confirm this worked for me.

    I copied the language files from wp-content/plugins/gigpress/langs to wp-content/languages/plugins

    Thanks!

    That has worked – thanks!
    https://www.flamenco.co.il/%d7%9e%d7%95%d7%a4%d7%a2%d7%99%d7%9d/
    Will the updated version have that fixed?

    Dan

    Plugin Contributor Andras Guseo

    (@aguseo)

    Great to hear @danstramer!

    Yes, the next version should have that fixed. I hope we can ship it soon.

    You will see when the update is available. And We will let you know here as well.

    Thanks for hanging in there!

    Cheers,
    Andras

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Translations stopped working’ is closed to new replies.