Module:Multilingual description/sort: Difference between revisions
From Neodyland Wiki
More actions
m again a few other missing languages, still testing the list order |
m add missing zh-min-nan, fixing full order of Latin alphabets and Arabic abjads, checking correct sort order (still checking abugidas) |
||
| Line 11: | Line 11: | ||
local p = { | local p = { | ||
-- LTR scripts | -- LTR scripts | ||
-- Latin | -- Latin alphabets | ||
--[[A]] ' | --[[A]] 'ang', 'af', 'als', 'an', 'ast', 'az', | ||
--[[B]] 'id', ' | --[[B]] 'id', 'ms', 'nan', 'zh-min-nan', 'su', 'jv', 'bar', 'bs', 'br', | ||
--[[C]] 'ca', 'ceb', 'cs | --[[C]] 'ca', 'ceb', 'cs', 'co', 'cy', | ||
--[[D]] 'da', 'pdc', 'de', 'de-formal', 'nv', 'dsb', | --[[D]] 'da', 'pdc', 'de', 'de-formal', 'nv', 'dsb', | ||
--[[E]] 'et', 'en', 'simple', 'es', 'eo', 'ext', 'eu', | --[[E]] 'et', 'en', 'simple', 'es', 'eo', 'ext', 'eu', | ||
--[[F]] 'fo', 'fr', 'fy', | --[[F]] 'fo', 'fr', 'fy', | ||
--[[G]] 'ga', 'gl', | --[[G]] 'ga', 'gd', 'gl', | ||
--[[H]] 'haw | --[[H]] 'haw', 'hsb', 'hr', | ||
--[[I]] 'io', 'ia', 'ie', 'ik', 'is', 'it', | --[[I]] 'io', 'ia', 'ie', 'ik', 'zu', 'is', 'it', | ||
--[[K]] 'kr', ' | --[[K]] 'kr', 'pam', 'csb', 'rn', 'kw', 'sw', 'ht', 'ku', 'ku-latn', | ||
--[[L]] 'la', ' | --[[L]] 'la', 'lv', 'lb', 'lt', 'li', 'lg', | ||
--[[M]] ' | --[[M]] 'hu', 'mg', 'mt', | ||
--[[N]] 'nah', ' | --[[N]] 'nah', 'nap', 'nl', 'nds-nl', 'cr', 'no', 'nn', | ||
--[[O]] 'oc', | --[[O]] 'oc', | ||
--[[P]] ' | --[[P]] 'pms', 'nds', 'pl', 'pt', 'pt-br', | ||
--[[Q]] ' | --[[Q]] 'crh', | ||
--[[R]] ' | --[[R]] 'ty', 'ksh', 'ro', 'qu', | ||
--[[S]] 'sc', ' | --[[S]] 'sc', 'se', 'sdc', 'sco', 'stq', 'sq', 'sk', 'sl', 'szl', 'fi', 'sv', | ||
--[[T]] 'tl', 'tr', | --[[T]] 'tl', 'vi', 'tk', 'tr', | ||
--[[V]] 'vec | --[[V]] 'vec', 'vo', | ||
--[[W]] 'wa', 'war', | --[[W]] 'wa', 'vls', 'war', | ||
--[[Y]] 'yo', | --[[Y]] 'yo', | ||
--[[Z]] 'diq | --[[Z]] 'diq', | ||
-- Latin OR Cyrillic | -- Latin OR Cyrillic alphabets | ||
'sh', -- most often Latin | 'sh', -- most often Latin | ||
'sr', -- most often Cyrillic | 'sr', -- most often Cyrillic | ||
-- Cyrillic | -- Cyrillic alphabets | ||
--[[Б]] 'ba', 'be', 'be-tarask', 'bg', | --[[Б]] 'ba', 'be', 'be-tarask', 'bg', | ||
--[[К]] 'kk', 'ky', | --[[К]] 'kk', 'ky', | ||
| Line 50: | Line 50: | ||
--[[Х]] 'xal', | --[[Х]] 'xal', | ||
--[[Ч]] 'cv', | --[[Ч]] 'cv', | ||
-- Greek or Coptic | -- Greek or Coptic alphabets | ||
'el', | 'el', | ||
-- Other European alphabets | -- Other European alphabets | ||
'hy', 'ka', | 'hy', 'ka', | ||
-- | -- Indian abugidas | ||
'bn', 'bpy', 'gu', 'hi', 'kn', 'ml', 'mr', 'ne', 'or', 'ta', 'te', 'bo', 'dz', 'km', 'lo', 'si', 'th', | 'bn', 'bpy', 'gu', 'hi', 'kn', 'ml', 'mr', 'ne', 'or', 'ta', 'te', | ||
-- Syllabaries | -- Tibetan abugidas | ||
'am', 'ti', | 'bo', 'dz', | ||
-- Korean alphabet and Japanese scripts (syllabaries and sinograms) | -- Other South-East Asian abugidas | ||
'km', 'lo', 'si', 'th', | |||
-- Syllabaries | |||
'chr', 'am', 'ti', | |||
-- Korean scripts (alphabet and sinograms) and Japanese scripts (syllabaries and sinograms) | |||
'ko', 'ja', | 'ko', 'ja', | ||
-- Sinographic scripts | -- Sinographic scripts | ||
| Line 69: | Line 73: | ||
'he', 'yi', | 'he', 'yi', | ||
-- Arabic abjads | -- Arabic abjads | ||
' | --[[ا]] 'ur', 'ik', | ||
--[[پ]] 'ps', | |||
--[[س]] 'sd', | |||
--[[ف]] 'fa', | |||
--[[ك]] 'ku-arab', | |||
--[[ک]] 'ks-arab', 'ckb', 'glk', | |||
--[[م]] 'mzn', 'zu', | |||
--[[ئ]] 'ug', | |||
} | } | ||
return p | return p | ||
Revision as of 12:18, 15 April 2015
This documentation is transcluded from Module:Multilingual description/sort/doc.
--[[
The documented sort order is by script, then alphabetically by displayed native name (as generated by {{#language: code}}), using the default DUCET order.
This allows easier selection by users reading the lists of languages in order to find their own.
Please test this order, and maintain it as complete as possible, including legacy codes still used in MediaWiki.
Any missing language will be sorted after all languages listed below, just using its internal language code.
Note: this resource-only module cannot have a "runTest()" member without breaking the returned list itself
(except by inserting it in its metatable, something still not implemented in the generic module testsuite).
For now, tests will be in the separate /testcases subpage.
]]
local p = {
-- LTR scripts
-- Latin alphabets
--[[A]] 'ang', 'af', 'als', 'an', 'ast', 'az',
--[[B]] 'id', 'ms', 'nan', 'zh-min-nan', 'su', 'jv', 'bar', 'bs', 'br',
--[[C]] 'ca', 'ceb', 'cs', 'co', 'cy',
--[[D]] 'da', 'pdc', 'de', 'de-formal', 'nv', 'dsb',
--[[E]] 'et', 'en', 'simple', 'es', 'eo', 'ext', 'eu',
--[[F]] 'fo', 'fr', 'fy',
--[[G]] 'ga', 'gd', 'gl',
--[[H]] 'haw', 'hsb', 'hr',
--[[I]] 'io', 'ia', 'ie', 'ik', 'zu', 'is', 'it',
--[[K]] 'kr', 'pam', 'csb', 'rn', 'kw', 'sw', 'ht', 'ku', 'ku-latn',
--[[L]] 'la', 'lv', 'lb', 'lt', 'li', 'lg',
--[[M]] 'hu', 'mg', 'mt',
--[[N]] 'nah', 'nap', 'nl', 'nds-nl', 'cr', 'no', 'nn',
--[[O]] 'oc',
--[[P]] 'pms', 'nds', 'pl', 'pt', 'pt-br',
--[[Q]] 'crh',
--[[R]] 'ty', 'ksh', 'ro', 'qu',
--[[S]] 'sc', 'se', 'sdc', 'sco', 'stq', 'sq', 'sk', 'sl', 'szl', 'fi', 'sv',
--[[T]] 'tl', 'vi', 'tk', 'tr',
--[[V]] 'vec', 'vo',
--[[W]] 'wa', 'vls', 'war',
--[[Y]] 'yo',
--[[Z]] 'diq',
-- Latin OR Cyrillic alphabets
'sh', -- most often Latin
'sr', -- most often Cyrillic
-- Cyrillic alphabets
--[[Б]] 'ba', 'be', 'be-tarask', 'bg',
--[[К]] 'kk', 'ky',
--[[Л]] 'lbe',
--[[М]] 'mk', 'mo', 'mn',
--[[О]] 'os',
--[[Р]] 'ru',
--[[C]] 'cu',
--[[Т]] 'tg', 'tt',
--[[У]] 'uk',
--[[Х]] 'xal',
--[[Ч]] 'cv',
-- Greek or Coptic alphabets
'el',
-- Other European alphabets
'hy', 'ka',
-- Indian abugidas
'bn', 'bpy', 'gu', 'hi', 'kn', 'ml', 'mr', 'ne', 'or', 'ta', 'te',
-- Tibetan abugidas
'bo', 'dz',
-- Other South-East Asian abugidas
'km', 'lo', 'si', 'th',
-- Syllabaries
'chr', 'am', 'ti',
-- Korean scripts (alphabet and sinograms) and Japanese scripts (syllabaries and sinograms)
'ko', 'ja',
-- Sinographic scripts
'wuu', 'yue',
'zh', 'zh-hans', 'zh-cn', 'zh-sg',
'zh-hant', 'zh-tw', 'zh-mo',
'lzh', 'zh-classical',
-- RTL scripts
-- Hebrew abjad
'he', 'yi',
-- Arabic abjads
--[[ا]] 'ur', 'ik',
--[[پ]] 'ps',
--[[س]] 'sd',
--[[ف]] 'fa',
--[[ك]] 'ku-arab',
--[[ک]] 'ks-arab', 'ckb', 'glk',
--[[م]] 'mzn', 'zu',
--[[ئ]] 'ug',
}
return p