• I have a multisite environment with language support. The theme I have, based on twenty eleven, was working ok supporting multiple languages. I don’t know since when language translation has stopped working.

    I have the 2 extra MO files under my theme\languages\ folder and again everything was working ok. Both international sites were showing the correct translation but now I see everything in English.

    I checked the language settings per site and they are showing the right language. When I go to the admin section of each site I also see the right translations. The issue is only on the front-end. I recreated the MO files again just in case but they are not being read by the system.

    These is one of the blogs: https://blog.ellucian.mx (Spanish) and this is the original US English https://blog.ellucian.com

    What else can I check? Again, I didn’t notice this issue until today, so I don’t know exactly what caused this problem.

    Any help would be appreciated.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter yeseniagn

    (@yeseniagn)

    Since I couldn’t find any way to solve this issue, I had to add all my custom theme translations to the main MO files under \wp-content\languages\ and remove all textdomain references on the theme files so it always look for the wordpress MO files. I know this is not the proper solution but these sites are live and need them to fix them ASAP.

    If anybody has any other insights, please let me know. See below for more details:

    • I tested that the locale value was loaded correctly.
    • I left the function.php file within my theme to only call the locale functions in case something else was conflicting
    • I deactivated all plugins (except the ones required for multisite
    • I also tested on my localhost without multisite
    • Verified that the theme folder was accessible on the web server

    but still the MO files were not used on the front end.

    However, when I changed the theme to the original twentyeleven and copied my custom MO files to the twenty languages folder, the translations worked.

    I have no clue what else to test on my current theme. Everything is the same as when it was working. How did it stop working?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    What theme is this?

    Thread Starter yeseniagn

    (@yeseniagn)

    It’s a completely custom theme but I basically copied all twentyeleven files and edit/removed anything I needed.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Okay, flip back to another theme and try their language pack. it’s possible you edited something incorrectly.

    Thread Starter yeseniagn

    (@yeseniagn)

    But this custom theme was working ok with the translation files? and original twentyeleven is reading the mo files ok.

    Please see all the details I included in the second reply. What else should I check to find the code issue?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I’m not sure this is a Multisite specific problem, which is why I asked about the theme.

    Can you test this on a separate, stand alone, single instance?

    Thread Starter yeseniagn

    (@yeseniagn)

    I did. I tested my custom theme on a localhost without multisite and didn’t work either. However, the original twentyeleven theme worked ok.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Okay, so this is a THEME issue ?? I’m moving this to the themes forum where maybe they can help. Sorry, I’m not great with themes.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Blogs not reading/using the MO files’ is closed to new replies.