Page MenuHomePhabricator

missing language code uz-latn
Closed, ResolvedPublic

Description

When my bot tries to add labels in uz-latn this fails with
/api/error:code=not-recognized-language
/api/error:info=unknown language: uz-latn

uz-latn is a lang code used as variant at uzwiki: http://uz.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=general

json part that caused this error:
{"labels":[{"language":"uz-latn","value":"Steve Wozniak","add":""},{"language":"uz-cyrl","value":"Стеве Wозниак","add":""}]}


Version: unspecified
Severity: enhancement
Whiteboard: u=dev c=infrastructure p=0
See Also:
T44420: uzwiki lists latin variants twice (as uz and uz-latn) on variant selection list

Details

Reference
bz42397

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:55 AM
bzimport set Reference to bz42397.
bzimport added a subscriber: Unknown Object (MLST).

uz-cyrl isn't accepcted, too.

*** Bug 42451 has been marked as a duplicate of this bug. ***

As I said on bug 42420, this is simply because Uzbek has a language conversion but (unlike other languages with a language converter), the variants do not have separate MediaWiki localisations. It may make sense to just add uz-latn & uz-cyrl as falling back to uz.

The other way around. uz-latn == uz, and uz-cyrl should be extra or transliterated.

Related URL: https://gerrit.wikimedia.org/r/65102 (Gerrit Change Ia3daaeba1ce5e69e751ffc2ae5afd5e449cf4aa7)

(In reply to comment #5)

Related URL: https://gerrit.wikimedia.org/r/65102 (Gerrit Change
Ia3daaeba1ce5e69e751ffc2ae5afd5e449cf4aa7)

Sorry for that, it was by mistake.

Is this something that needs to be handled in Wikidata or rather MediaWiki core?

Change 132743 had a related patch set uploaded by SPQRobin:
(bug 42397) Add missing uz-latn and uz-cyrl

https://gerrit.wikimedia.org/r/132743

(In reply to Lydia Pintscher from comment #7)

Is this something that needs to be handled in Wikidata or rather MediaWiki
core?

Changing product to MediaWiki.

Change 132743 had a related patch set uploaded (by Fomafix; owner: SPQRobin):
[mediawiki/core@master] Add missing uz-latn and uz-cyrl

https://gerrit.wikimedia.org/r/132743

Esc3300 claimed this task.