mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Make Settings.available_locales be a dictionary mapping locale codes to language names in that language
This commit is contained in:
parent
d28f38b1a0
commit
64a4428465
@ -48,11 +48,25 @@ class Settings(object):
|
||||
else:
|
||||
self.common.log('Settings', '__init__', 'Supplied config does not exist or is unreadable. Falling back to default location')
|
||||
|
||||
# Available languages in this version of OnionShare
|
||||
self.available_locales = [
|
||||
'cs', 'da', 'de', 'en', 'eo', 'es', 'fi',
|
||||
'fr', 'it', 'nl', 'no', 'pt', 'ru', 'tr'
|
||||
]
|
||||
# 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
|
||||
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'
|
||||
}
|
||||
|
||||
# These are the default settings. They will get overwritten when loading from disk
|
||||
self.default_settings = {
|
||||
|
Loading…
Reference in New Issue
Block a user