aboutsummaryrefslogtreecommitdiff
path: root/onionshare/settings.py
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2018-09-30 16:18:40 -0700
committerMicah Lee <micah@micahflee.com>2018-09-30 16:18:40 -0700
commit9d5f9d18edcc082e24b9d59783b088d16e5dfc37 (patch)
treebf6b5b5f66e69779670d5b4d91f7c391298a026f /onionshare/settings.py
parent9a19a7aecd41e266ea917cbd039dc11162841c24 (diff)
downloadonionshare-9d5f9d18edcc082e24b9d59783b088d16e5dfc37.tar.gz
onionshare-9d5f9d18edcc082e24b9d59783b088d16e5dfc37.zip
Translate language names to their own language
Diffstat (limited to 'onionshare/settings.py')
-rw-r--r--onionshare/settings.py31
1 files changed, 15 insertions, 16 deletions
diff --git a/onionshare/settings.py b/onionshare/settings.py
index d3788739..1fbda807 100644
--- a/onionshare/settings.py
+++ b/onionshare/settings.py
@@ -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