Last modified: 2014-07-15 20:12:32 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 T59133, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57133 - Search in CLDR-aliased language codes, but output corresponding MediaWiki locale code (or $wgLanguageCode or wikiId?)
Search in CLDR-aliased language codes, but output corresponding MediaWiki loc...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
UniversalLanguageSelector (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 64793
  Show dependency treegraph
 
Reported: 2013-11-16 09:32 UTC by Effeietsanders
Modified: 2014-07-15 20:12 UTC (History)
12 users (show)

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


Attachments

Description Effeietsanders 2013-11-16 09:32:42 UTC
When I go to the top right in one of the interfaces, click the
language option, and type 'filipino' and then click on *tagalog* I am
sent to the following link:
https://translatewiki.net/w/i.php?title=Special:Translate&group=tsint-wlmsurvey&language=fil&filter=&action=page .
Please note the language code here is FIL, and not TL. The language code is however TL. 

If I do the same by typing 'tagalog' and clicking on tagalog, I am sent to: https://translatewiki.net/w/i.php?title=Special:Translate&group=tsint-wlmsurvey&language=tl&filter=&action=page with language code TL (as expected).
Comment 1 Nemo 2013-11-16 10:05:51 UTC
Confirmed. So there are two problems:
1) "fil" and "tl" have the same name (this is supposed to come from [[translatewiki:CLDR]] so we could be able to do something or not),
2) "fil" is not fully disabled  as it's supposed to: in MediaWiki group too I can select it for translation, though all my translations are silently rejected ("not saved" gray label appears); see also bug 54627, bug 49898.

And an enhancement request for ULS:
3) when typing "filipino", tl should be offered as option.
Comment 2 Niklas Laxström 2014-05-29 10:34:44 UTC
I am confused whether this problem is in Translate extension or in ULS. I think it is in the ULS unless at translatewiki.net we are enabling extra language codes.
Comment 3 Nemo 2014-07-12 16:57:18 UTC
(In reply to Niklas Laxström from comment #2)
> I am confused whether this problem is in Translate extension or in ULS. I
> think it is in the ULS unless at translatewiki.net we are enabling extra
> language codes.

Should be ULS. With Italian interface, if I type "filipino" I don't get any option. Similarly, if I type "snd" I don't get "sd".
I think jquery.uls probably needs to incorporate the language code aliases, occasionally reversing the map where we differ from CLDR on what's canonical (in CLDR tl -> fil, in MediaWiki we use "tl").
http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/aliases.html
Comment 4 Nemo 2014-07-15 20:12:32 UTC
2) is already covered by other bugs so I think this one should be only about the fil -> tl mapping, where the two following things can probably fixed at the same time:

> 1) "fil" and "tl" have the same name (this is supposed to come from
> [[translatewiki:CLDR]] so we could be able to do something or not),
> 3) when typing "filipino", tl should be offered as option.

in this way:

> I think jquery.uls probably needs to incorporate the language code aliases,
> occasionally reversing the map where we differ from CLDR on what's canonical
> (in CLDR tl -> fil, in MediaWiki we use "tl").
> http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/aliases.html

Hopefully the summary sums it up; there is also the problem of filtering bat-smg, be-x-old etc. correctly in <https://www.mediawiki.org/wiki/Talk:Universal_Language_Selector/Design/Interlanguage_links#Some_languages_are_missing>
Those are also missing in the alias list so I filed http://unicode.org/cldr/trac/ticket/7699

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


Navigation
Links