Support » Plugin: Multisite Language Switcher » Issue with “Set Admin Language” option

  • Hi,

    I have had a weird issue with WordPress’s global $locale variable that it has set my language to a different value on the frontend than on the backend.
    After a long time of debugging, I finally found out where the issue is coming from:
    Msls’s set admin language option!

    You are applying a filter on locale in your plugin to overwrite the result of the built in function get_locale(). While this might be a good idea and intended by some people, this has (rather huge) implications for others:
    Changing a site’s language will show a wrong language after saving (the one you set your backend language to in Msls). I experienced a more serious issue that another plugin wasn’t working properly (Advanced Post Types Order), because it uses get_locale() for some options.

    Long story short: I am sure for some people this is a useful feature, but could you include an option “do not overwrite backend language”? Simply setting it to the same value as your site’s language is not enough in my opinion. As soon as you change a sites language, you might run into problems again without noticing where they are coming from.

    Another smaller related request: It might be useful for people to show the longer language name. In my case it shows two times “Chinese” because I have traditional Chinese and simplified Chinese installed 🙂


Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Issue with “Set Admin Language” option’ is closed to new replies.