Last modified: 2013-06-27 08:00:24 UTC
I set my wiki language for non-logged in users to Arabic in the LocalSettings.php $wgLanguageCode = "ar"; However, after installing and enabling ULS the site defaulted to English. So I disabled ULS to check and the site went back to Arabic. Logged in users are not effected since it will use what they have selected in their preference. I believe ULS should use the language defined in $wgLanguageCode as a default language and not assume it to be English.
ULS with all default setting will cause your web site to set the user interface language to the accept language of the web browser. If you can confirm this is what you observed, you have observed expected behavior, and not a bug.
You are right, after setting Arabic as the first language in the browser the site defaulted to Arabic. However, many smart phones browsers don't have such language option. Also the default setting in most browsers is English which means most of my website visitors will not be seeing the wiki as intended. I am using ULS since it enables the user to change the font and the input method when browsing my wiki from a computer that doesn't have Arabic keyboard layout enabled. Is there a workaround to force ULS to use the wiki default language instead of the browser?
Assuming you have recent version of ULS, you can set $wgULSLanguageDetection = false in your LocalSettings.php to disable automatic language detection for anonymous users. I'm closing this report because the above is the expected behavior and there is a way to turn it off.