Last modified: 2006-09-05 09:46:03 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 T9223, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 7223 - MediaWiki:Monobook.js is affected by lingualization
MediaWiki:Monobook.js is affected by lingualization
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.8.x
PC Windows XP
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-09-03 18:06 UTC by Edward Z. Yang
Modified: 2006-09-05 09:46 UTC (History)
0 users

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


Attachments

Description Edward Z. Yang 2006-09-03 18:06:40 UTC
The system message system works like this:

1. If the user is using the default language, messages are retrieved from
[[MediaWiki:Message]]
2. If the user is using a different language, messages are retrieved from
[[MediaWiki:Message/Lang]]

If the message is found not to exist, it is defaulted to the system default. For
most purposes, this is good behavior, but not all messages need this
multilingual behavior. A good example is Monobook.css or Monobook.js.

There are two possible ways of fixing this behavior:

1. Specify specific system messages as non-lingual and disable multilingual
capability for them
2. Specify specific system messages as non-lingual, and have their fallback in
the default language space before falling back to the system default.

I got bitten by this when I specified English and then wondered why Monobook.js
wasn't working for me.
Comment 1 Brion Vibber 2006-09-04 06:02:55 UTC
Those are/should be used with wfMsgForContent, and don't use the user-selected language.
Comment 2 Edward Z. Yang 2006-09-04 14:37:28 UTC
http://beta.wikiversity.org/w/index.php?title=-&action=raw&smaxage=0&gen=js
appears to exhibit improper behavior when a language is specified.

Steps to reproduce:

1. Log into an account
2. Switch language preference to one other than beta
3. Load http://beta.wikiversity.org/w/index.php?title=-&action=raw&smaxage=0&gen=js

Expected result:

MediaWiki:Monobook.js is served up with the language select code.

Actual result:

MediaWiki:Monobook.js/en is served, which is nonexistent, meaning default value
is served.
Comment 3 Brion Vibber 2006-09-04 16:14:02 UTC
Yes, seems to be a problem there. :(
Comment 4 Brion Vibber 2006-09-05 09:46:03 UTC
Fixed in r16403.

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


Navigation
Links