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') 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, # Dictionary of available languages in this version of OnionShare,
# mapped to the language name, in that language. # mapped to the language name, in that language
# TODO: Update language names to not be in English
self.available_locales = { self.available_locales = {
'cs': 'Croatian', 'cs': 'Hrvatski', # Croatian
'da': 'Danish', 'da': 'Dansk', # Danish
'de': 'German', 'de': 'Deutsch', # German
'en': 'English', 'en': 'English', # English
'eo': 'Esperanto', 'eo': 'Esperanto', # Esperanto
'es': 'Spanish', 'es': 'Español', # Spanish
'fi': 'Finnish', 'fi': 'Suomi', # Finnish
'fr': 'French', 'fr': 'Français', # French
'it': 'Italian', 'it': 'Italiano', # Italian
'nl': 'Dutch', 'nl': 'Nederlands', # Dutch
'no': 'Norweigan', 'no': 'Norsk', # Norweigan
'pt': 'Portuguese', 'pt': 'Português', # Portuguese
'ru': 'Russian', 'ru': 'Русский', # Russian
'tr': 'Turkish' 'tr': 'Türkçe' # Turkish
} }
# These are the default settings. They will get overwritten when loading from disk # These are the default settings. They will get overwritten when loading from disk