--- Comment #8 from Paul Selitskas <wizard...@ya.ru> 2011-02-26 12:27:38 UTC ---
(In reply to comment #7)
> be-tarask and be-x-old are the same. be would be the fall back language for
> However the localisation for be-tarask is (almost) complete.
MediaWiki core translation is done for 'be-tarask' so there is no reason for
this. Our users hardly ever see English-written labels, so 'en' fallback is OK.
(In reply to comment #6)
> I think the real bug is that the compatibility alias "be-x-old" is listed in
> the language selector in Special:Preferences to begin with. It should just be
> left out of the list and silently and automatically replaced with "be-tarask"
> for any users who happen to have selected it before. (The same should be done
> for other language code aliases, such as "als" -> "gsw".)
> I'm trying to think of a way to fix this with minimal code bloat. One way to
> do it would be to remove these aliases from $wgLanguageNames and move them to
> new list, say, $wgLanguageAliases or something. Of course, this would
> involve changes to other parts of MediaWiki which use $wgLanguageNames, such
> interwiki link handling.
> Or maybe just leave $wgLanguageNames as it is, but include a list of obsolete
> language codes and their replacements so that they can be filtered out of
> language selectors.
> (Actually, I'm not even sure what simply removing these aliases from
> $wgLanguageNames would break. Fixing language selectors for users who have
> selected an alias before should be easy, since we could just check if their
> chosen language is in the list and use the fallback if not. Hmm... looks like
> wfGetLangObj() assumes all valid languages are listed in either
> $wgLanguageNames or $wgExtraLanguageNames, even though Language::factory()
> doesn't. We could probably just drop that check, or add an extra check for
I'm not sure, but 'be-x-old' exists because of the domain name
be-x-old.wikipedia.org. If default MediaWiki language is not tied to the domain
in WFM, so there's a reason to safely delete 'be-x-old'. Despite this, 3rd
party tools may use domain name for language identification, so it can't be
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
Wikibugs-l mailing list