Last modified: 2013-06-27 08:00:24 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T52257, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50257 - ULS doesn't not use the site default language
ULS doesn't not use the site default language
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
UniversalLanguageSelector (Other open bugs)
REL1_21-branch
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-26 21:02 UTC by Fahad Alduraibi
Modified: 2013-06-27 08:00 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Fahad Alduraibi 2013-06-26 21:02:29 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.
Comment 1 Siebrand Mazeland 2013-06-26 21:27:25 UTC
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.
Comment 2 Fahad Alduraibi 2013-06-26 21:52:06 UTC
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?
Comment 3 Niklas Laxström 2013-06-27 08:00:24 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links