-
-
Notifications
You must be signed in to change notification settings - Fork 37
Interface language files
Language interface files are located in the lang
folder. They are in the pattern language_*.py
.
UBA currently uses IBM Watson for translation services. For list of supported languages, see here.
- Run:
python -m util.LanguageUtil createNewLanguageFile <2 letter language code>
Example to create Greek language file:
python -m util.LanguageUtil createNewLanguageFile "el"
-
Edit the generated language file and manually fix all errors.
-
Modify
Languages.py
to add the translation
Add entry to code
Example: "Greek Νέα Ελληνικά": "el",
Compare English and Greek files:
python -m util.LanguageUtil compareLanguageFiles "en_US" "el"
python -m util.LanguageUtil addLanguageStringToAllFiles "textKey" "English text"
This will add "textKey" to all the language files with the translation of "English text".
python -m util.LanguageUtil printNamesSupportedLanguages
python -m util.LanguageUtil printCodesSupportedLanguages
python -m util.LanguageUtil validateLanguageFileSizes
Update the Greek language file:
python -m util.LanguageUtil updateLanguageFile "el"