mirror of
https://github.com/SickGear/SickGear.git
synced 2024-11-21 20:35:05 +00:00
9009cc7a7b
Add a Select2 drop-down to `add-shows` and `edit-show`. The Select2 enables displaying inline language flag images, this feature deprecated by the native `select` drop-down element on some browsers. Change run existing TVInfo source language lists through validation (removes ~4 bad items), de-dupe list, get the native names, English names, and three letter abbr. Change remove marisa-trie requirement from language_data/names.py because nothing in SG calls a function that requires it. Change update some flags.
89 lines
1.1 KiB
Python
89 lines
1.1 KiB
Python
# This is the list of language codes with the 'modern' level of support in CLDR
|
|
# (compared to 'full', which contains many more languages). We use this as the
|
|
# list of languages that we store specific name-to-code mappings for.
|
|
|
|
CLDR_LANGUAGES = {
|
|
"af",
|
|
"am",
|
|
"ar",
|
|
"as",
|
|
"az",
|
|
"be",
|
|
"bg",
|
|
"bn",
|
|
"bs",
|
|
"ca",
|
|
"cs",
|
|
"cy",
|
|
"da",
|
|
"de",
|
|
"el",
|
|
"en",
|
|
"es",
|
|
"et",
|
|
"eu",
|
|
"fa",
|
|
"fi",
|
|
"fil",
|
|
"fr",
|
|
"ga",
|
|
"gl",
|
|
"gu",
|
|
"he",
|
|
"hi",
|
|
"hr",
|
|
"hu",
|
|
"hy",
|
|
"id",
|
|
"is",
|
|
"it",
|
|
"ja",
|
|
"jv",
|
|
"ka",
|
|
"kk",
|
|
"km",
|
|
"kn",
|
|
"ko",
|
|
"ky",
|
|
"lo",
|
|
"lt",
|
|
"lv",
|
|
"mk",
|
|
"ml",
|
|
"mn",
|
|
"mr",
|
|
"ms",
|
|
"my",
|
|
"nb",
|
|
"ne",
|
|
"nl",
|
|
"or",
|
|
"pa",
|
|
"pl",
|
|
"pt",
|
|
"ro",
|
|
"ru",
|
|
"sd",
|
|
"si",
|
|
"sk",
|
|
"sl",
|
|
"so",
|
|
"sq",
|
|
"sr",
|
|
"sv",
|
|
"sw",
|
|
"ta",
|
|
"te",
|
|
"th",
|
|
"ti",
|
|
"tk",
|
|
"tr",
|
|
"uk",
|
|
"und",
|
|
"ur",
|
|
"uz",
|
|
"vi",
|
|
"yue",
|
|
"zh",
|
|
"zu",
|
|
}
|