forked from cms-dev/cms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Complete language codes list (cms-dev#1197)
- Loading branch information
Showing
1 changed file
with
63 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# Copyright © 2014-2017 Stefano Maggiolo <[email protected]> | ||
# Copyright © 2018 Edoardo Morassutto <[email protected]> | ||
# Copyright © 2018 Luca Wehrstedt <[email protected]> | ||
# Copyright © 2021 Grace Hawkins <[email protected]> | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as | ||
|
@@ -40,8 +41,68 @@ def make_timedelta(t): | |
return timedelta(seconds=t) | ||
|
||
|
||
# TODO: add all languages. | ||
LANGUAGE_MAP = {'english': 'en', 'russian': 'ru', 'italian': 'it'} | ||
LANGUAGE_MAP = { | ||
'afrikaans': 'af', | ||
'arabic': 'ar', | ||
'armenian': 'hy', | ||
'azerbaijani': 'az', | ||
'belarusian': 'be', | ||
'bengali': 'bn', | ||
'bosnian': 'bs', | ||
'bulgarian': 'bg', | ||
'catalan': 'ca', | ||
'chinese': 'zh', | ||
'croatian': 'hr', | ||
'czech': 'cs', | ||
'danish': 'da', | ||
'dutch': 'nl', | ||
'english': 'en', | ||
'estonian': 'et', | ||
'filipino': 'fil', | ||
'finnish': 'fi', | ||
'french': 'fr', | ||
'georgian': 'ka', | ||
'german': 'de', | ||
'greek': 'el', | ||
'hebrew': 'he', | ||
'hindi': 'hi', | ||
'hungarian': 'hu', | ||
'icelandic': 'is', | ||
'indonesian': 'id', | ||
'irish': 'ga', | ||
'italian': 'it', | ||
'japanese': 'ja', | ||
'kazakh': 'kk', | ||
'korean': 'ko', | ||
'kyrgyz': 'ky', | ||
'latvian': 'lv', | ||
'lithuanian': 'lt', | ||
'macedonian': 'mk', | ||
'malay': 'ms', | ||
'mongolian': 'mn', | ||
'norwegian': 'no', | ||
'persian': 'fa', | ||
'polish': 'pl', | ||
'portuguese': 'pt', | ||
'romanian': 'ro', | ||
'russian': 'ru', | ||
'serbian': 'sr', | ||
'sinhala': 'si', | ||
'slovak': 'sk', | ||
'slovene': 'sl', | ||
'spanish': 'es', | ||
'swedish': 'sv', | ||
'tajik': 'tg', | ||
'tamil': 'ta', | ||
'thai': 'th', | ||
'turkish': 'tr', | ||
'turkmen': 'tk', | ||
'ukrainian': 'uk', | ||
'urdu': 'ur', | ||
'uzbek': 'uz', | ||
'vietnamese': 'vi', | ||
'other': 'other', | ||
} | ||
|
||
|
||
class PolygonTaskLoader(TaskLoader): | ||
|