all of a sudden, since today, the Site language dropdown in Settings –> General is empty. In the dropdown I can see the installed languages but the section below Available is empty. I need to select a new language but can only chose from the already installed (and used) languages.
When I setup a new Site and language yesterday, I could chose the language from the the list below Available. All I did since then was to paste the Hook ‘msls_options_get_available_languages’ in my functions.php only to learn that it will not work there. Then I removed the code from the functions.php. So the function.php is back to its original state. Could this have caused the plugin to not display the Available languages?
please make sure that you return also the array languages that is incoming when you use the hook my_msls_options_get_available_languages to add a language.
Thanks again. I wrote this hook in a plugin and was able to activate the plugin without any warnings. I guess now I should see the option of ‘Englisch (India)’ in the available languages dropdown. Unfortunately, this option isn’t shown.
Thanks, wer’re getting closer! I copied the en_NZ.po and renamed it to en_IN.po and en_IN.mo. Now finaly I can select the language en_IN in WordPress, but the code of the site still shows the href lang en-GB
I have found a solution for my last problem with the wrong HTML lang attribute. There’s a plugin called ‘CHL-Change HTML Lang‘ that lets you enter the desired HTML lang attribute in WP –> Settings –> General.