I have 11 separate wikis all running off the same code base but with 11 databases and 11 (or more) LocalSettings.php files that get included according to the language/wiki ID at
I’d like to have the ‘Tools’ menu appear in the language of the wiki. So, if I visit the Spanish wiki, the Tools menu links would be in Spanish. No matter what setting I have for $wgLanguageCode, the links are in English (even browsing in incognito mode). I’ve flushed the language interface messages cache with
WIKI=en php /opt/htdocs/mediawiki/maintenance/rebuildmessages.php
WIKI=de php /opt/htdocs/mediawiki/maintenance/rebuildmessages.php
WIKI=es php /opt/htdocs/mediawiki/maintenance/rebuildmessages.php
The Tools Menu is properly translated if I append
?uselang=xx (where xx is ‘es’ for Spanish) to the URL Vis. example: https://fswiki.familysearch.org/wiki/es/?uselang=es However, I want the same behavior without manipulating the URL with ‘uselang’.
What am I missing? Why doesn’t $wgLanguageCode work as advertised?