Added the Vietnamese language

This commit is contained in:
Virgil Dupras 2013-08-03 17:36:53 -04:00
parent 1c779cb3ec
commit 86a81eab4e
3 changed files with 3 additions and 2 deletions

View File

@ -49,7 +49,7 @@ def get_locale_name(lang):
else:
LANG2LOCALENAME = {'fr': 'fr_FR', 'de': 'de_DE', 'it': 'it_IT', 'zh_CN': 'zh_CN',
'cs': 'cs_CZ', 'nl': 'nl_NL', 'hy': 'hy_AM', 'ru': 'ru_RU', 'uk': 'uk_UA',
'pt_BR': 'pt_BR', 'es': 'es_ES'}
'pt_BR': 'pt_BR', 'es': 'es_ES', 'vi': 'vi_VN'}
if lang not in LANG2LOCALENAME:
return None
result = LANG2LOCALENAME[lang]

View File

@ -17,7 +17,7 @@ from qtlib.preferences import LANGNAMES
tr = trget('ui')
SUPPORTED_LANGUAGES = ['en', 'fr', 'de', 'zh_CN', 'cs', 'it', 'hy', 'ru', 'uk', 'pt_BR']
SUPPORTED_LANGUAGES = ['en', 'fr', 'de', 'zh_CN', 'cs', 'it', 'hy', 'ru', 'uk', 'pt_BR', 'vi']
class PreferencesDialogBase(QDialog):
def __init__(self, parent, app):

View File

@ -26,6 +26,7 @@ LANGNAMES = {
'nl': tr('Dutch'),
'pt_BR': tr("Brazilian"),
'es': tr("Spanish"),
'vi': tr("Vietnamese"),
}
def normalize_for_serialization(v):