Difference between revisions of "Thread:Support/Where to locate languages codes in Wikipedia sidebar/reply"

From translatewiki.net
Jump to navigation Jump to search
m
m
Line 1: Line 1:
Except for the autonyms (language names in these languages themselves), This is also true for the <code><nowiki>{{#language:</nowiki>''code''<nowiki>}}</nowiki></code> parser function of Mediawiki to get autonyms, which are resolved in a static PHP class:
+
Except for the autonyms (language names in these languages themselves), also returned by the <code><nowiki>{{#language:</nowiki>''code''<nowiki>}}</nowiki></code> parser function of Mediawiki to get these autonyms, which are resolved in a static PHP class:
   
 
: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/master/languages/data/Names.php
 
: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/master/languages/data/Names.php
all translated language names come from CLDR data. CLDR data is also used if autonyms are not found in this class (which is a local override of CLDR). This is also true for the <code><nowiki>{{#language:</nowiki>''code''|fy<nowiki>}}</nowiki></code> parser function of Mediawiki to get language names in Western Frisian
+
all translated language names come from CLDR data. CLDR data is also used if autonyms are not found in this class (which is a local override of CLDR). This is also applies to <code><nowiki>{{#language:</nowiki>''code''|fy<nowiki>}}</nowiki></code> parser function of Mediawiki to get language names in Western Frisian
   
 
For Western Frisian see (last published version is v37):
 
For Western Frisian see (last published version is v37):

Revision as of 03:25, 30 June 2020

Except for the autonyms (language names in these languages themselves), also returned by the {{#language:code}} parser function of Mediawiki to get these autonyms, which are resolved in a static PHP class:

https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/master/languages/data/Names.php

all translated language names come from CLDR data. CLDR data is also used if autonyms are not found in this class (which is a local override of CLDR). This is also applies to {{#language:code|fy}} parser function of Mediawiki to get language names in Western Frisian

For Western Frisian see (last published version is v37):

https://unicode-org.github.io/cldr-staging/charts/37/summary/fy.html

If translated names are missing, fallbacks are used, and so they will use the normal BCP47 rules for Western Frisian and will fallback to Dutch, otherwise to English.

To solve it, go to CLDR and start translating and vetting missing names (it is open today). After a new CLDR version will be published, and new names were vetted successfully, they will be loaded in Wikimedia with the CLDR data update...