Last modified: 2014-06-29 21:41:58 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 T43723, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41723 - Wikidata should distinguish site IDs and language codes
Wikidata should distinguish site IDs and language codes
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Wikidata bugs
: i18n
: 57706 (view as bug list)
Depends on: 41103
Blocks: 64649
  Show dependency treegraph
 
Reported: 2012-11-03 03:05 UTC by Pavel Selitskas [wizardist]
Modified: 2014-06-29 21:41 UTC (History)
11 users (show)

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


Attachments

Description Pavel Selitskas [wizardist] 2012-11-03 03:05:04 UTC
For be-x-old.wikipedia.org (lang. code: be-tarask), when a site-link is added for the item, 'lang' attribute for site-link page title is set to 'be-x-old' which is wrong (it should be 'be-tarask').

As I see, it's either Repo not aware of the true wiki language, or it's a configuration concern and the language was set according to the domain (see Bug 9823).

To conclude, I think for now it's mostly a minor layout issue, but who knows... It's better to have real internal data.
Comment 1 jeblad 2012-11-03 11:33:27 UTC
The "be-x-old" comes from the site id, and is not really a language code. I think people gets slightly confused because -wiki is stripped off and then it looks like a language code, which it is not, it is the initial part of the site id.

Note also that the site id can be for something completely else than Wikipedia, and as such the code will not reflect a language at all.

We could although change this somehow so it is clearer that this is part of the site id, and only by accident is similar to the language code.
Comment 2 Liangent 2013-01-18 04:52:59 UTC
Reopening - What the original reporter was talking about and what I want to report is the lang attribute of text (links). Now that you know site id is not essentially identical to its language code, you shouldn't put site id into lang="" directly and should fetch its language code instead.

This affects both Repo (on item pages) and Client (in sidebar).
Comment 3 jeblad 2013-02-04 07:25:32 UTC
Fetching the language code from the Language object for ~300 different languages will not work without changes to how the Language objects are handled.
Comment 4 Pavel Selitskas [wizardist] 2013-02-04 12:24:22 UTC
(In reply to comment #3)
> Fetching the language code from the Language object for ~300 different
> languages will not work without changes to how the Language objects are
> handled.

Is `sites` table somehow used in Wikibase? It has a `site_language` field. Can we use it? (Although, now it has the wrong code for some wikis.)
Comment 5 Liangent 2013-07-03 19:49:05 UTC
Well if this can't be resolved easily and you don't dare to use globals, you may try to map your prefix part in site ID through $wgDummyLanguageCodes.
Comment 6 Liangent 2013-11-28 10:39:28 UTC

*** This bug has been marked as a duplicate of bug 57706 ***
Comment 7 Liangent 2013-11-28 10:40:11 UTC
*** Bug 57706 has been marked as a duplicate of this bug. ***
Comment 8 Pavel Selitskas [wizardist] 2013-11-28 13:21:30 UTC
(In reply to comment #3)
> Fetching the language code from the Language object for ~300 different
> languages will not work without changes to how the Language objects are
> handled.

Adding bug 41103 as dependence here.

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


Navigation
Links