Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Multilingual description/sort: Difference between revisions

From Neodyland Wiki
m add missing zh-min-nan, fixing full order of Latin alphabets and Arabic abjads, checking correct sort order (still checking abugidas)
m sorted Indic abugidas now complete
Line 40: Line 40:
   -- Cyrillic alphabets
   -- Cyrillic alphabets
     --[[Б]] 'ba', 'be', 'be-tarask', 'bg',
     --[[Б]] 'ba', 'be', 'be-tarask', 'bg',
    --[[И]] 'os',
     --[[К]] 'kk', 'ky',
     --[[К]] 'kk', 'ky',
     --[[Л]] 'lbe',
     --[[Л]] 'lbe',
     --[[М]] 'mk', 'mo', 'mn',
     --[[М]] 'mk', 'mo', 'mn',
    --[[О]] 'os',
     --[[Р]] 'ru',
     --[[Р]] 'ru',
     --[[C]] 'cu',
     --[[C]] 'cu',
     --[[Т]] 'tg', 'tt',
     --[[Т]] 'tt', 'tg',
     --[[У]] 'uk',
     --[[У]] 'uk',
     --[[Х]] 'xal',
     --[[Х]] 'xal',
     --[[Ч]] 'cv',
     --[[Ч]] 'cv',
   -- Greek or Coptic alphabets
   -- Greek or Coptic alphabets
     'el',
     'el', 'pnt',
   -- Other European alphabets
   -- Other European alphabets
     'hy', 'ka',
     'hy', 'ka',
   -- Indian abugidas
   -- Devanagari abugidas
     'bn', 'bpy', 'gu', 'hi', 'kn', 'ml', 'mr', 'ne', 'or', 'ta', 'te',
     'new', 'ne', 'mr', 'sa', 'hi',
  -- Other North Indian abugidas
    'bn', 'bpy',
   -- Tibetan abugidas
   -- Tibetan abugidas
     'bo', 'dz',
     'bo', 'dz',
  -- South Indian abugidas
    'gu', 'or', 'ta', 'te', 'ml', 'si',
   -- Other South-East Asian abugidas
   -- Other South-East Asian abugidas
     'km', 'lo', 'si', 'th',
     'km', 'lo', 'th',
   -- Syllabaries
   -- Syllabaries
     'chr', 'am', 'ti',  
     'chr', 'am', 'ti',  
Line 81: Line 85:
     --[[م]] 'mzn', 'zu',
     --[[م]] 'mzn', 'zu',
     --[[ئ]] 'ug',
     --[[ئ]] 'ug',
  -- Other semitics abjads
    'dv',
}
}


return p
return p

Revision as of 12:36, 15 April 2015

Module documentation[ create · purge ]
--[[
  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',
    --[[И]] 'os',
    --[[К]] 'kk', 'ky',
    --[[Л]] 'lbe',
    --[[М]] 'mk', 'mo', 'mn',
    --[[Р]] 'ru',
    --[[C]] 'cu',
    --[[Т]] 'tt', 'tg',
    --[[У]] 'uk',
    --[[Х]] 'xal',
    --[[Ч]] 'cv',
  -- Greek or Coptic alphabets
    'el', 'pnt',
  -- Other European alphabets
    'hy', 'ka',
  -- Devanagari abugidas
    'new', 'ne', 'mr', 'sa', 'hi',
  -- Other North Indian abugidas
    'bn', 'bpy',
  -- Tibetan abugidas
    'bo', 'dz',
  -- South Indian abugidas
    'gu', 'or', 'ta', 'te', 'ml', 'si',
  -- Other South-East Asian abugidas
    'km', 'lo', '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',
   -- Other semitics abjads
    'dv',
}

return p
Cookies help us deliver our services. By using our services, you agree to our use of cookies.