Last modified: 2014-05-04 14:23:54 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 T59706, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57706 - getLanguageCode() differ from wgContentLanguage of the target wiki
getLanguageCode() differ from wgContentLanguage of the target wiki
Status: RESOLVED DUPLICATE of bug 41723
Product: Wikimedia
Classification: Unclassified
Wikidata (Other open bugs)
wmf-deployment
All All
: Unprioritized normal (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-28 10:34 UTC by Fomafix
Modified: 2014-05-04 14:23 UTC (History)
3 users (show)

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


Attachments

Description Fomafix 2013-11-28 10:34:22 UTC
simplewiki has wgContentLanguage "en" and
nowiki has wgContentLanguage "nb".

See wgLanguageCode in http://noc.wikimedia.org/conf/InitialiseSettings.php.txt

But
wb.getSite( 'nowiki' ).getLanguageCode() evaluates to "no" and
wb.getSite( 'simplewiki' ).getLanguageCode() evaluates to "simple".

JavaScript gets the values from the PHP function getLanguageCode() in module wikibase.sites:
https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FWikibase.git/HEAD/lib%2Fincludes%2Fmodules%2FSitesModule.php

getLanguageCode() should evaluate to wgContentLanguage of the target wiki.
Comment 1 Liangent 2013-11-28 10:39:28 UTC
*** Bug 41723 has been marked as a duplicate of this bug. ***
Comment 2 Liangent 2013-11-28 10:40:11 UTC

*** This bug has been marked as a duplicate of bug 41723 ***

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


Navigation
Links