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 there are missing languages and a few still not sorted correctly (still testing this list, will create a test module for that)
m again a few other missing languages, still testing the list order
Line 3: Line 3:
   This allows easier selection by users reading the lists of languages in order to find their own.
   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.
   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.
]]
]]
return {
local p = {
-- LTR scripts
-- LTR scripts
   -- Latin script
   -- Latin script
     --[[A]] 'af', 'an', 'ang', 'als', 'ast', 'az',
     --[[A]] 'af', 'an', 'ang', 'als', 'ast', 'az',
     --[[B]] 'id', 'bar', 'bs', 'br', 'jv',
     --[[B]] 'id', 'bar', 'bs', 'br', 'jv',
     --[[C]] 'ca', 'ceb', 'chr', 'cr', 'crh', 'cs', 'csb', 'cy',
     --[[C]] 'ca', 'ceb', 'cs', 'chr', 'cr', 'crh', 'co', 'csb', 'cy',
     --[[D]] 'da', 'pdc', 'de', 'de-formal', 'nv', 'dsb',
     --[[D]] 'da', 'pdc', 'de', 'de-formal', 'nv', 'dsb',
     --[[E]] 'en', 'simple', 'et', 'es', 'eo', 'eu', 'ext',
     --[[E]] 'et', 'en', 'simple', 'es', 'eo', 'ext', 'eu',
     --[[F]] 'fo', 'fr', 'fy',
     --[[F]] 'fo', 'fr', 'fy',
     --[[G]] 'ga', 'gl',
     --[[G]] 'ga', 'gl',
     --[[H]] 'haw', 'hr', 'hsb', 'hu',
     --[[H]] 'haw', 'hr', 'hsb', 'hu',
     --[[I]] 'ia', 'ie', 'ik', 'io', 'is', 'it',
     --[[I]] 'io', 'ia', 'ie', 'ik', 'is', 'it',
     --[[K]] 'kr', 'ksh', 'ku-latn', 'kw', 'ht',
     --[[K]] 'kr', 'ksh', 'ku-latn', 'kw', 'ht',
     --[[L]] 'la', 'lb', 'lg', 'li', 'lv', 'lt',
     --[[L]] 'la', 'lb', 'lg', 'li', 'lv', 'lt',
Line 31: Line 36:
     --[[Z]] 'diq', 'zu',
     --[[Z]] 'diq', 'zu',
   -- Latin OR Cyrillic script
   -- Latin OR Cyrillic script
  'sr', 'sh',
    'sh', -- most often Latin
    'sr', -- most often Cyrillic
   -- Cyrillic script
   -- Cyrillic script
  'ba', 'be', 'be-tarask', 'bg', 'cu', 'cv', 'kk', 'ky', 'lbe', 'mk', 'mo', 'os', 'ru', 'tg', 'tt', 'uk', 'xal',
    --[[Б]] 'ba', 'be', 'be-tarask', 'bg',
    --[[К]] 'kk', 'ky',
    --[[Л]] 'lbe',
    --[[М]] 'mk', 'mo', 'mn',
    --[[О]] 'os',
    --[[Р]] 'ru',
    --[[C]] 'cu',
    --[[Т]] 'tg', 'tt',
    --[[У]] 'uk',
    --[[Х]] 'xal',
    --[[Ч]] 'cv',
   -- Greek or Coptic script
   -- Greek or Coptic script
  'el',
    'el',
   -- Other European alphabets
   -- Other European alphabets
  'hy', 'ka',
    'hy', 'ka',
   -- Indic scripts
   -- Indic scripts
  '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', 'bo', 'dz', 'km', 'lo', 'si', 'th',
   -- Syllabaries and Hangul
   -- Syllabaries and Hangul
  'am', 'ti',  
    'am', 'ti',  
   -- Korean alphabet and Japanese scripts (syllabaries and sinograms)
   -- Korean alphabet and Japanese scripts (syllabaries and sinograms)
  'ko', 'ja',
    'ko', 'ja',
   -- Sinographic scripts
   -- Sinographic scripts
  'wuu', 'yue',
    'wuu', 'yue',
  'zh', 'zh-hans', 'zh-cn',  'zh-sg',
    'zh', 'zh-hans', 'zh-cn',  'zh-sg',
  'zh-hant', 'zh-tw',  'zh-mo',
    'zh-hant', 'zh-tw',  'zh-mo',
  'lzh', 'zh-classical',
    'lzh', 'zh-classical',
-- RTL scripts
-- RTL scripts
  -- Hebrew abjad
  -- Hebrew abjad
  'he', 'yi',
    'he', 'yi',
   -- Arabic abjads
   -- Arabic abjads
  'ar', 'arz', 'ckb', 'fa', 'glk', 'ks', 'ku', 'mzn', 'ps', 'sd', 'ug', 'ur'
    'ar', 'arz', 'ckb', 'fa', 'glk', 'ks', 'ku', 'mzn', 'ps', 'sd', 'ug', 'ur'
}
}
return p

Revision as of 11:15, 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 script
    --[[A]] 'af', 'an', 'ang', 'als', 'ast', 'az',
    --[[B]] 'id', 'bar', 'bs', 'br', 'jv',
    --[[C]] 'ca', 'ceb', 'cs', 'chr', 'cr', 'crh', 'co', 'csb', 'cy',
    --[[D]] 'da', 'pdc', 'de', 'de-formal', 'nv', 'dsb',
    --[[E]] 'et', 'en', 'simple', 'es', 'eo', 'ext', 'eu',
    --[[F]] 'fo', 'fr', 'fy',
    --[[G]] 'ga', 'gl',
    --[[H]] 'haw', 'hr', 'hsb', 'hu',
    --[[I]] 'io', 'ia', 'ie', 'ik', 'is', 'it',
    --[[K]] 'kr', 'ksh', 'ku-latn', 'kw', 'ht',
    --[[L]] 'la', 'lb', 'lg', 'li', 'lv', 'lt',
    --[[M]] 'mg', 'ms', 'mt',
    --[[N]] 'nah', 'nan', 'nap', 'nl', 'no', 'nn',
    --[[O]] 'oc',
    --[[P]] 'pam', 'nds', 'nds-nl', 'pl', 'pms', 'pt', 'pt-br',
    --[[Q]] 'qu',
    --[[R]] 'rn', 'ro',
    --[[S]] 'sc', 'sco', 'se', 'sk', 'sl', 'sq', 'stq', 'su', 'fi', 'sv', 'sw', 'szl',
    --[[T]] 'tl', 'tr',
    --[[V]] 'vec', 'vi', 'vo',
    --[[W]] 'wa', 'war',
    --[[Y]] 'yo',
    --[[Z]] 'diq', 'zu',
  -- Latin OR Cyrillic script
    'sh', -- most often Latin
    'sr', -- most often Cyrillic
  -- Cyrillic script
    --[[Б]] 'ba', 'be', 'be-tarask', 'bg',
    --[[К]] 'kk', 'ky',
    --[[Л]] 'lbe',
    --[[М]] 'mk', 'mo', 'mn',
    --[[О]] 'os',
    --[[Р]] 'ru',
    --[[C]] 'cu',
    --[[Т]] 'tg', 'tt',
    --[[У]] 'uk',
    --[[Х]] 'xal',
    --[[Ч]] 'cv',
  -- Greek or Coptic script
    'el',
  -- Other European alphabets
    'hy', 'ka',
  -- Indic scripts
    'bn', 'bpy', 'gu', 'hi', 'kn', 'ml', 'mr', 'ne', 'or', 'ta', 'te', 'bo', 'dz', 'km', 'lo', 'si', 'th',
  -- Syllabaries and Hangul
    'am', 'ti', 
  -- Korean alphabet 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
    'ar', 'arz', 'ckb', 'fa', 'glk', 'ks', 'ku', 'mzn', 'ps', 'sd', 'ug', 'ur'
}

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