daniel added a subscriber: daniel.
daniel triaged this task as "Normal" priority.
daniel added a comment.

This is indeed strange, especially since there is a distinct value in "no": 
"Antikkens gresk kunst". So the "nb" value shouldn't be used for "no", even if 
languagefallback was enabled. Strange...

Oh, there we go. From DefaultSettings.php:

  Warning: Don't use language codes listed in $wgDummyLanguageCodes like "no"
  for Norwegian (use "nb" instead), or things will break unexpectedly.

Yay. The correct language codes for norwegian are "nn" and "nb", I think. "no" 
is invalid, but supported as an alias for "nb":

    $wgDummyLanguageCodes = array(
          'als' => 'gsw',
          'bat-smg' => 'sgs',
          'be-x-old' => 'be-tarask',
          'bh' => 'bho',
          'fiu-vro' => 'vro',
          'no' => 'nb',
          'qqq' => 'qqq', # Used for message documentation.
          'qqx' => 'qqx', # Used for viewing message keys.
          'roa-rup' => 'rup',
          'simple' => 'en',
          'zh-classical' => 'lzh',
          'zh-min-nan' => 'nan',
          'zh-yue' => 'yue',
    );

Wikibase shouldn't allow "no" for input, or map it to "nb". I'll add a ticket 
for that.


TASK DETAIL
  https://phabricator.wikimedia.org/T102295

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: daniel, Aklapper, Danmichaelo, Wikidata-bugs, aude



_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to