Skip to content

Commit

Permalink
Merge pull request #2934 from Poobslag/sort-locale-names
Browse files Browse the repository at this point in the history
Output locale names in predictable order.
  • Loading branch information
Poobslag authored Nov 27, 2024
2 parents f6c5303 + 899f9bc commit 558fde7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
6 changes: 3 additions & 3 deletions project/assets/main/locale/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: https://github.com/Poobslag/turbofat/\n"
"POT-Creation-Date: 2024-11-27 08:20-0500\n"
"POT-Creation-Date: 2024-11-27 14:53-0500\n"
"PO-Revision-Date: 2023-03-13 12:16-0400\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
Expand Down Expand Up @@ -12978,11 +12978,11 @@ msgid "Kp 9"
msgstr ""

#: project/assets/main/locale/localizables-extracted.py
msgid "Spanish"
msgid "English"
msgstr ""

#: project/assets/main/locale/localizables-extracted.py
msgid "English"
msgid "Spanish"
msgstr ""

#: project/src/main/career/CareerMap.tscn
Expand Down
10 changes: 5 additions & 5 deletions project/assets/main/locale/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: https://github.com/Poobslag/turbofat/\n"
"POT-Creation-Date: 2024-11-27 08:20-0500\n"
"POT-Creation-Date: 2024-11-27 14:53-0500\n"
"PO-Revision-Date: 2024-10-13 19:30-0300\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
Expand Down Expand Up @@ -14539,14 +14539,14 @@ msgstr "Numpad 8"
msgid "Kp 9"
msgstr "Numpad 9"

#: project/assets/main/locale/localizables-extracted.py
msgid "Spanish"
msgstr "Español"

#: project/assets/main/locale/localizables-extracted.py
msgid "English"
msgstr "Inglés"

#: project/assets/main/locale/localizables-extracted.py
msgid "Spanish"
msgstr "Español"

#: project/src/main/career/CareerMap.tscn
msgid "The left level is further from the goal. Choose carefully!"
msgstr ""
Expand Down
2 changes: 1 addition & 1 deletion project/assets/main/locale/localizables-extracted.py
Original file line number Diff line number Diff line change
Expand Up @@ -3191,5 +3191,5 @@
tr("Kp 9")

# Locales
tr("Spanish")
tr("English")
tr("Spanish")
6 changes: 3 additions & 3 deletions project/assets/main/locale/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Turbo Fat 0.9000\n"
"Report-Msgid-Bugs-To: https://github.com/Poobslag/turbofat/\n"
"POT-Creation-Date: 2024-11-27 08:20-0500\n"
"POT-Creation-Date: 2024-11-27 14:53-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -12980,11 +12980,11 @@ msgid "Kp 9"
msgstr ""

#: project/assets/main/locale/localizables-extracted.py
msgid "Spanish"
msgid "English"
msgstr ""

#: project/assets/main/locale/localizables-extracted.py
msgid "English"
msgid "Spanish"
msgstr ""

#: project/src/main/career/CareerMap.tscn
Expand Down
6 changes: 5 additions & 1 deletion project/src/demo/toolkit/extract-localizables-button.gd
Original file line number Diff line number Diff line change
Expand Up @@ -171,5 +171,9 @@ func _extract_localizables_from_scancodes() -> void:

## Extract localizables from TranslationServer.get_loaded_locales()
func _extract_localizables_from_locales() -> void:
var locale_names := []
for locale in TranslationServer.get_loaded_locales():
_append_localizable(TranslationServer.get_locale_name(locale))
locale_names.append(TranslationServer.get_locale_name(locale))
locale_names.sort()
for locale_name in locale_names:
_append_localizable(locale_name)

0 comments on commit 558fde7

Please sign in to comment.