MediaWiki:Gadget-I18n-js.js: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
Update language fallback chain to mediawiki-core 7609761ab4e
m (TEST your changes before SUBMITTING them to a script used almost EVERYWHERE) |
(Update language fallback chain to mediawiki-core 7609761ab4e) |
||
Line 173: | Line 173: | ||
* Language fallbacks for those that don't only fallback to 'en' or have no | * Language fallbacks for those that don't only fallback to 'en' or have no | ||
* fallbacks ('en'). | * fallbacks ('en'). | ||
* | |||
* Current revision: mediawiki-core 7609761ab4e | |||
* | * | ||
* Shouldn't need updating unless there're language fallback chain changes | * Shouldn't need updating unless there're language fallback chain changes | ||
Line 179: | Line 181: | ||
* To generate this, use `$ grep -R "fallback =" /path/to/messages/`, | * To generate this, use `$ grep -R "fallback =" /path/to/messages/`, | ||
* pipe the result to a text file and format the result. | * pipe the result to a text file and format the result. | ||
* | |||
* Another way to generate the list is to copy from | |||
* https://github.com/wikimedia/jquery.i18n/blob/master/src/jquery.i18n.fallbacks.js | |||
* AND remove deprecated codes from the copied list. | |||
* | * | ||
* Please note that there's bidirectional/multidirectional fallback in languages, | * Please note that there's bidirectional/multidirectional fallback in languages, | ||
Line 190: | Line 196: | ||
'abs': ['id'], | 'abs': ['id'], | ||
'ace': ['id'], | 'ace': ['id'], | ||
'acm': ['ar'], | |||
'ady': ['ady-cyrl'], | 'ady': ['ady-cyrl'], | ||
'aeb': ['aeb-arab'], | 'aeb': ['aeb-arab'], | ||
Line 220: | Line 227: | ||
'bgn': ['fa'], | 'bgn': ['fa'], | ||
'bh': ['bho'], | 'bh': ['bho'], | ||
'bi': ['en'], | |||
'bjn': ['id'], | 'bjn': ['id'], | ||
'blk': ['my'], | 'blk': ['my'], | ||
Line 225: | Line 233: | ||
'bpy': ['bn'], | 'bpy': ['bn'], | ||
'bqi': ['fa'], | 'bqi': ['fa'], | ||
'btm': ['id'], | 'btm': ['id'], | ||
'bug': ['id'], | 'bug': ['id'], | ||
Line 236: | Line 243: | ||
'crh': ['crh-latn'], | 'crh': ['crh-latn'], | ||
'crh-cyrl': ['ru'], | 'crh-cyrl': ['ru'], | ||
'crh-ro': ['ro'], | |||
'cs': ['sk'], | 'cs': ['sk'], | ||
'csb': ['pl'], | 'csb': ['pl'], | ||
Line 247: | Line 255: | ||
'egl': ['it'], | 'egl': ['it'], | ||
'eml': ['it'], | 'eml': ['it'], | ||
'en-ca': ['en'], | |||
'en-gb': ['en'], | |||
'es-formal': ['es'], | 'es-formal': ['es'], | ||
'ext': ['es'], | 'ext': ['es'], | ||
'fit': ['fi'], | 'fit': ['fi'], | ||
'fon': ['fr'], | 'fon': ['fr'], | ||
Line 265: | Line 274: | ||
'glk': ['fa'], | 'glk': ['fa'], | ||
'gn': ['es'], | 'gn': ['es'], | ||
'gom': ['gom-deva'], | 'gom': ['gom-deva', 'gom-latn'], | ||
'gom-deva': [' | 'gom-deva': ['gom-latn'], | ||
'gor': ['id'], | 'gor': ['id'], | ||
'gpe': ['en'], | |||
'gsw': ['de'], | 'gsw': ['de'], | ||
'guc': ['es'], | 'guc': ['es'], | ||
Line 279: | Line 289: | ||
'hyw': ['hy'], | 'hyw': ['hy'], | ||
'ii': ['zh-cn', 'zh-hans', 'zh', 'zh-hant'], | 'ii': ['zh-cn', 'zh-hans', 'zh', 'zh-hant'], | ||
'ike-cans': ['iu | 'ike-cans': ['iu'], | ||
'ike-latn': ['iu | 'ike-latn': ['iu'], | ||
'inh': ['ru'], | 'inh': ['ru'], | ||
'io': ['eo'], | 'io': ['eo'], | ||
'iu': ['ike-cans', ' | 'iu': ['ike-cans'], | ||
'jam': ['en'], | |||
'jut': ['da'], | 'jut': ['da'], | ||
'jv': ['id'], | 'jv': ['id'], | ||
Line 293: | Line 304: | ||
'khw': ['ur'], | 'khw': ['ur'], | ||
'kiu': ['tr'], | 'kiu': ['tr'], | ||
'kjh': ['ru'], | |||
'kjp': ['my'], | 'kjp': ['my'], | ||
'kk': ['kk-cyrl | 'kk': ['kk-cyrl'], | ||
'kk-arab': [ | 'kk-arab': ['kk', 'kk-cyrl'], | ||
'kk-cn': ['kk-arab', 'kk', 'kk-cyrl'], | 'kk-cn': ['kk-arab', 'kk', 'kk-cyrl'], | ||
'kk-cyrl': [ | 'kk-cyrl': ['kk'], | ||
'kk-kz': ['kk-cyrl', 'kk'], | 'kk-kz': ['kk-cyrl', 'kk'], | ||
'kk-latn': [ | 'kk-latn': ['kk', 'kk-cyrl'], | ||
'kk-tr': ['kk-latn', 'kk', 'kk-cyrl'], | 'kk-tr': ['kk-latn', 'kk', 'kk-cyrl'], | ||
'kl': ['da'], | 'kl': ['da'], | ||
Line 309: | Line 321: | ||
'ksh': ['de'], | 'ksh': ['de'], | ||
'ksw': ['my'], | 'ksw': ['my'], | ||
'ku': ['ku-latn | 'ku': ['ku-latn'], | ||
'ku-arab': ['ku, ckb'], | 'ku-arab': ['ku', 'ckb'], | ||
'ku-latn': ['ku'], | 'ku-latn': ['ku'], | ||
'kum': ['ru'], | 'kum': ['ru'], | ||
Line 331: | Line 343: | ||
'lzz': ['tr'], | 'lzz': ['tr'], | ||
'mad': ['id'], | 'mad': ['id'], | ||
'mag': ['hi'], | |||
'mai': ['hi'], | 'mai': ['hi'], | ||
'map-bms': ['jv', 'id'], | 'map-bms': ['jv', 'id'], | ||
Line 347: | Line 360: | ||
'nan': ['cdo', 'zh-hant', 'zh', 'zh-hans'], | 'nan': ['cdo', 'zh-hant', 'zh', 'zh-hans'], | ||
'nap': ['it'], | 'nap': ['it'], | ||
'nb': ['nn'], | 'nb': ['no', 'nn'], | ||
'nds': ['de'], | 'nds': ['de'], | ||
'nds-nl': ['nl'], | 'nds-nl': ['nl'], | ||
'nia': ['id'], | 'nia': ['id'], | ||
'nl-informal': ['nl'], | 'nl-informal': ['nl'], | ||
'nn': ['nb'], | 'nn': ['no', 'nb'], | ||
'no': ['nb'], | 'no': ['nb'], | ||
'nrm': ['nrf', 'fr'], | 'nrm': ['nrf', 'fr'], | ||
Line 362: | Line 375: | ||
'pdt': ['de'], | 'pdt': ['de'], | ||
'pfl': ['de'], | 'pfl': ['de'], | ||
'pih': ['en'], | |||
'pms': ['it'], | 'pms': ['it'], | ||
'pnt': ['el'], | 'pnt': ['el'], | ||
Line 372: | Line 386: | ||
'rmy': ['ro'], | 'rmy': ['ro'], | ||
'roa-tara': ['it'], | 'roa-tara': ['it'], | ||
'rsk': ['sr-ec'], | 'rsk': ['sr-ec', 'sr-cyrl'], | ||
'rue': ['uk', 'ru'], | 'rue': ['uk', 'ru'], | ||
'rup': ['ro'], | 'rup': ['ro'], | ||
Line 381: | Line 395: | ||
'sah': ['ru'], | 'sah': ['ru'], | ||
'scn': ['it'], | 'scn': ['it'], | ||
'sco': ['en'], | |||
'sdc': ['it'], | 'sdc': ['it'], | ||
'sdh': ['cbk', 'fa'], | 'sdh': ['cbk', 'fa'], | ||
Line 390: | Line 405: | ||
'sg': ['fr'], | 'sg': ['fr'], | ||
'sgs': ['lt'], | 'sgs': ['lt'], | ||
'sh': ['bs', 'sr-el', 'hr'], | 'sh': ['sh-latn', 'sh-cyrl', 'bs', 'sr-el', 'sr-latn', 'hr'], | ||
'sh-cyrl': ['sr-cyrl', 'sr-ec', 'sh', 'sh-latn'], | |||
'sh-latn': ['sh', 'sh-cyrl', 'bs', 'sr-el', 'sr-latn', 'hr'], | |||
'shi': ['shi-latn', 'fr'], | 'shi': ['shi-latn', 'fr'], | ||
'shi-latn': ['shi', 'fr'], | 'shi-latn': ['shi', 'fr'], | ||
Line 399: | Line 416: | ||
'sk': ['cs'], | 'sk': ['cs'], | ||
'skr': ['skr-arab'], | 'skr': ['skr-arab'], | ||
'skr-arab': [' | 'skr-arab': ['skr'], | ||
'sli': ['de'], | 'sli': ['de'], | ||
'sma': ['sv', 'nb'], | |||
'smn': ['fi'], | 'smn': ['fi'], | ||
'sr': ['sr-ec'], | 'sr': ['sr-cyrl', 'sr-ec'], | ||
'sr-ec': ['sr'], | 'sr-cyrl': ['sr-ec', 'sr'], | ||
'sr-el': ['sr, sr-ec'], | 'sr-ec': ['sr-cyrl', 'sr'], | ||
'sr-el': ['sr-latn', 'sr', 'sr-cyrl', 'sr-ec'], | |||
'sr-latn': ['sr-el', 'sr', 'sr-cyrl', 'sr-ec'], | |||
'srn': ['nl'], | 'srn': ['nl'], | ||
'sro': ['it'], | |||
'stq': ['de'], | 'stq': ['de'], | ||
'sty': ['ru'], | 'sty': ['ru'], | ||
Line 434: | Line 455: | ||
'wls': ['fr'], | 'wls': ['fr'], | ||
'wo': ['fr'], | 'wo': ['fr'], | ||
'wuu': ['zh-hans', 'zh', 'zh-hant'], | 'wuu': ['wuu-hans', 'wuu-hant', 'zh-hans', 'zh', 'zh-hant'], | ||
'wuu-hans': ['wuu', 'wuu-hant', 'zh-hans', 'zh', 'zh-hant'], | |||
'wuu-hant': ['wuu', 'wuu-hans', 'zh-hant', 'zh', 'zh-hans'], | |||
'xal': ['ru'], | 'xal': ['ru'], | ||
'xmf': ['ka'], | 'xmf': ['ka'], | ||
'yi': ['he'], | 'yi': ['he'], | ||
'yue': [' | 'yue': ['yue-hant', 'yue-hans'], | ||
'yue-hans': ['yue', 'yue-hant'], | |||
'yue-hant': ['yue', 'yue-hans'], | |||
'za': ['zh-hans', 'zh', 'zh-hant'], | 'za': ['zh-hans', 'zh', 'zh-hant'], | ||
'zea': ['nl'], | 'zea': ['nl'], |