Translate language names to their own language

This commit is contained in:
Micah Lee 2018-09-30 16:18:40 -07:00
parent 9a19a7aecd
commit 9d5f9d18ed
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -49,23 +49,22 @@ class Settings(object):
self.common.log('Settings', '__init__', 'Supplied config does not exist or is unreadable. Falling back to default location')
# Dictionary of available languages in this version of OnionShare,
# mapped to the language name, in that language.
# TODO: Update language names to not be in English
# mapped to the language name, in that language
self.available_locales = {
'cs': 'Croatian',
'da': 'Danish',
'de': 'German',
'en': 'English',
'eo': 'Esperanto',
'es': 'Spanish',
'fi': 'Finnish',
'fr': 'French',
'it': 'Italian',
'nl': 'Dutch',
'no': 'Norweigan',
'pt': 'Portuguese',
'ru': 'Russian',
'tr': 'Turkish'
'cs': 'Hrvatski', # Croatian
'da': 'Dansk', # Danish
'de': 'Deutsch', # German
'en': 'English', # English
'eo': 'Esperanto', # Esperanto
'es': 'Español', # Spanish
'fi': 'Suomi', # Finnish
'fr': 'Français', # French
'it': 'Italiano', # Italian
'nl': 'Nederlands', # Dutch
'no': 'Norsk', # Norweigan
'pt': 'Português', # Portuguese
'ru': 'Русский', # Russian
'tr': 'Türkçe' # Turkish
}
# These are the default settings. They will get overwritten when loading from disk