Support » Plugin: Multisite Language Switcher » Cannot target the en_US version

  • Resolved keepclif


    Hello everyone,

    I have a 3 languages website (french, spanish and english).
    When I want to translate ‘static’ elements of my theme I use:
    $blog = MslsBlogCollection::instance()->get_current_blog();
    $language = $blog->get_language();

    and then :
    if ($language==’fr_FR’) {…}
    if ($language==’es_ES’) {…}
    if ($language==’en_US’) {…} (I tried ‘en_EN’ too)

    When I am targeting the ‘en_US’ version, it is not working. To see the translations, I have to use “else” instead of “if ($language==’en_US’)”, but then my french version is not working very good…

    I tried to force the WPLANG into the settings of my english website, but it is not considered. After saving the settings, the field stays empty…

    Does anyone had the same problem ? Could you help me ?

    Thanks a lot,


Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cannot target the en_US version’ is closed to new replies.