Skip to content

Commit

Permalink
Disable active language in Choose Language popup
Browse files Browse the repository at this point in the history
  • Loading branch information
MewPurPur committed Apr 4, 2024
1 parent 76cbd18 commit be13f22
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui_parts/settings_menu.gd
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func _on_language_pressed() -> void:
for lang in TranslationServer.get_loaded_locales():
btn_arr.append(Utils.create_btn(
TranslationServer.get_locale_name(lang) + " (" + lang + ")",
_on_language_chosen.bind(lang)))
_on_language_chosen.bind(lang), lang == TranslationServer.get_locale()))
var lang_popup := ContextPopup.instantiate()
add_child(lang_popup)
lang_popup.setup(btn_arr, true, lang_button.size.x)
Expand Down
3 changes: 3 additions & 0 deletions translations/GodSVG.pot
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ msgstr ""
msgid "Developers"
msgstr ""

msgid "Translators"
msgstr ""

msgid "Language"
msgstr ""

Expand Down
3 changes: 3 additions & 0 deletions translations/bg.po
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ msgstr "Основател и мениджър на проекта"
msgid "Developers"
msgstr "Програмисти"

msgid "Translators"
msgstr "Преводачи"

msgid "Language"
msgstr "Език"

Expand Down
4 changes: 4 additions & 0 deletions translations/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ msgstr "Projektgründer und Manager"
msgid "Developers"
msgstr "Entwickler"

#, fuzzy
msgid "Translators"
msgstr "Transformationen"

msgid "Language"
msgstr "Sprache"

Expand Down
3 changes: 3 additions & 0 deletions translations/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ msgstr ""
msgid "Developers"
msgstr ""

msgid "Translators"
msgstr ""

msgid "Language"
msgstr ""

Expand Down
4 changes: 4 additions & 0 deletions translations/ru.po
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ msgstr "Основатель и руководитель проекта"
msgid "Developers"
msgstr "Разработчики"

#, fuzzy
msgid "Translators"
msgstr "Трансформации"

msgid "Language"
msgstr "Язык"

Expand Down
4 changes: 4 additions & 0 deletions translations/uk.po
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ msgstr "Засновник і керівник проекту"
msgid "Developers"
msgstr "Розробники"

#, fuzzy
msgid "Translators"
msgstr "Трансформації"

msgid "Language"
msgstr "Мова"

Expand Down

0 comments on commit be13f22

Please sign in to comment.