Added Latvian translation

Closes #150
This commit is contained in:
OverloadedOrama 2020-02-11 16:03:25 +02:00
parent 3d3d567bdb
commit ef9e906f19
6 changed files with 15 additions and 3 deletions

View file

@ -73,6 +73,7 @@ func _on_AboutDialog_about_to_show() -> void:
translators.create_item(translators_root).set_text(0, " Marco Galli (Gaarco) - " + tr("Italian"))
translators.create_item(translators_root).set_text(0, " azagaya - " + tr("Spanish"))
translators.create_item(translators_root).set_text(0, " Lilly And (KatieAnd) - " + tr("Spanish"))
translators.create_item(translators_root).set_text(0, " nezvers - " + tr("Latvian"))
func _on_AboutDialog_popup_hide() -> void:
groups.clear()

View file

@ -22,7 +22,7 @@ func _ready() -> void:
Global.loaded_locales = TranslationServer.get_loaded_locales()
else:
# Hardcoded list of locales
Global.loaded_locales = ["de_DE", "el_GR", "en_US", "es_ES", "fr_FR", "it_IT", "pl_PL", "pt_BR", "ru_RU", "zh_CN","zh_TW"]
Global.loaded_locales = ["de_DE", "el_GR", "en_US", "es_ES", "fr_FR", "it_IT", "lv_LV", "pl_PL", "pt_BR", "ru_RU", "zh_CN","zh_TW"]
# Make sure locales are always sorted, in the same order
Global.loaded_locales.sort()