-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Locale): add localization support
- Loading branch information
1 parent
54d1c77
commit c82f1d7
Showing
8 changed files
with
416 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# https://weblate.org/en/ | ||
|
||
ALL_LOCALES := en_US.po es_MX.po | ||
|
||
# Update all locales from the 'messages.pot' template | ||
.PHONY: all | ||
all: $(ALL_LOCALES) | ||
|
||
# Generate a new locale file from the template | ||
.PHONY: generate | ||
generate: | ||
ifndef LOCALE | ||
$(error LOCALE not specified to generate) | ||
endif | ||
msginit --no-translator --input=messages.pot --locale=$(LOCALE) | ||
|
||
# Update the locale from the 'messages.pot' template | ||
$(ALL_LOCALES): messages.pot | ||
msgmerge --update --backup=none $@ $< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Last-Translator: Automatically generated\n" | ||
"Language-Team: none\n" | ||
"Language: en_US\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=ASCII\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
# LANGUAGE translation for OpenGamepadUI | ||
# | ||
# William Edwards <shadowapex@gmail.com>, 2023. | ||
# | ||
msgid "PROJECT DESCRIPTION" | ||
msgstr "" | ||
"Project-Id-Version: Open Gamepad UI\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8-bit\n" | ||
|
||
# Main Menu | ||
msgid "Home" | ||
msgstr "Home" | ||
|
||
msgid "Library" | ||
msgstr "Library" | ||
|
||
msgid "Settings" | ||
msgstr "Settings" | ||
|
||
msgid "Power" | ||
msgstr "Power" | ||
|
||
msgid "Accept" | ||
msgstr "Accept" | ||
|
||
msgid "Back" | ||
msgstr "Back" | ||
|
||
msgid "Open Main Menu" | ||
msgstr "Open Main Menu" | ||
|
||
msgid "Open Quick Access Menu" | ||
msgstr "Open Quick Access Menu" | ||
|
||
msgid "Open On-Screen Keyboard" | ||
msgstr "Open On-Screen Keyboard" | ||
|
||
msgid "Scroll container" | ||
msgstr "Scroll container" | ||
|
||
msgid "Switch to left tab" | ||
msgstr "Switch to left tab" | ||
|
||
msgid "Switch to right tab" | ||
msgstr "Switch to right tab" | ||
|
||
msgid "Backspace" | ||
msgstr "Backspace" | ||
|
||
msgid "Close keyboard" | ||
msgstr "Close keyboard" | ||
|
||
msgid "Toggle Shift" | ||
msgstr "Toggle Shift" | ||
|
||
msgid "Enter" | ||
msgstr "Enter" | ||
|
||
msgid "Bluetooth service unavailable" | ||
msgstr "Bluetooth service unavailable" | ||
|
||
msgid "Steam Deck" | ||
msgstr "Steam Deck" | ||
|
||
msgid "Global" | ||
msgstr "Global" | ||
|
||
msgid "Unable to save gamepad profile" | ||
msgstr "Unable to save gamepad profile" | ||
|
||
msgid "Failed to save gamepad profile" | ||
msgstr "Failed to save gamepad profile" | ||
|
||
msgid "Gamepad profile saved" | ||
msgstr "Gamepad profile saved" | ||
|
||
msgid "Play Now" | ||
msgstr "Play Now" | ||
|
||
msgid "Install" | ||
msgstr "Install" | ||
|
||
msgid "Resume" | ||
msgstr "Resume" | ||
|
||
msgid "Queued" | ||
msgstr "Queued" | ||
|
||
msgid "Installing" | ||
msgstr "Installing" | ||
|
||
msgid "Quick Access Menu" | ||
msgstr "Quick Access Menu" | ||
|
||
msgid "Finished" | ||
msgstr "Finished" | ||
|
||
msgid "Welcome" | ||
msgstr "Welcome" | ||
|
||
msgid "Game Name" | ||
msgstr "Game Name" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: \n" | ||
"POT-Creation-Date: \n" | ||
"PO-Revision-Date: \n" | ||
"Last-Translator: Automatically generated\n" | ||
"Language-Team: none\n" | ||
"Language: es_MX\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=ASCII\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
"X-Generator: Poedit 3.4.1\n" | ||
|
||
# LANGUAGE translation for OpenGamepadUI | ||
# | ||
# William Edwards <shadowapex@gmail.com>, 2023. | ||
# | ||
#, fuzzy | ||
msgid "PROJECT DESCRIPTION" | ||
msgstr "" | ||
"Project-Id-Version: Open Gamepad UI\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8-bit\n" | ||
|
||
# Main Menu | ||
msgid "Home" | ||
msgstr "Inicio" | ||
|
||
msgid "Library" | ||
msgstr "Biblioteca" | ||
|
||
msgid "Settings" | ||
msgstr "Opciones" | ||
|
||
msgid "Power" | ||
msgstr "" | ||
|
||
msgid "Accept" | ||
msgstr "Confirmar" | ||
|
||
msgid "Back" | ||
msgstr "" | ||
|
||
msgid "Open Main Menu" | ||
msgstr "Abrir El Primero Menu" | ||
|
||
msgid "Open Quick Access Menu" | ||
msgstr "" | ||
|
||
msgid "Open On-Screen Keyboard" | ||
msgstr "" | ||
|
||
msgid "Scroll container" | ||
msgstr "" | ||
|
||
msgid "Switch to left tab" | ||
msgstr "" | ||
|
||
msgid "Switch to right tab" | ||
msgstr "" | ||
|
||
msgid "Backspace" | ||
msgstr "" | ||
|
||
msgid "Close keyboard" | ||
msgstr "" | ||
|
||
msgid "Toggle Shift" | ||
msgstr "" | ||
|
||
msgid "Enter" | ||
msgstr "" | ||
|
||
msgid "Bluetooth service unavailable" | ||
msgstr "" | ||
|
||
msgid "Steam Deck" | ||
msgstr "" | ||
|
||
msgid "Global" | ||
msgstr "" | ||
|
||
msgid "Unable to save gamepad profile" | ||
msgstr "" | ||
|
||
msgid "Failed to save gamepad profile" | ||
msgstr "" | ||
|
||
msgid "Gamepad profile saved" | ||
msgstr "" | ||
|
||
msgid "Play Now" | ||
msgstr "" | ||
|
||
msgid "Install" | ||
msgstr "" | ||
|
||
msgid "Resume" | ||
msgstr "" | ||
|
||
msgid "Queued" | ||
msgstr "" | ||
|
||
msgid "Installing" | ||
msgstr "" | ||
|
||
msgid "Quick Access Menu" | ||
msgstr "" | ||
|
||
msgid "Finished" | ||
msgstr "" | ||
|
||
msgid "Welcome" | ||
msgstr "Bienvenidos" | ||
|
||
msgid "Game Name" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: \n" | ||
"POT-Creation-Date: \n" | ||
"PO-Revision-Date: \n" | ||
"Last-Translator: \n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"X-Generator: Poedit 3.4.1\n" | ||
|
||
# LANGUAGE translation for OpenGamepadUI | ||
# | ||
# William Edwards <shadowapex@gmail.com>, 2023. | ||
# | ||
msgid "PROJECT DESCRIPTION" | ||
msgstr "" | ||
"Project-Id-Version: Open Gamepad UI\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8-bit\n" | ||
|
||
# Main Menu Messages | ||
msgid "Home" | ||
msgstr "" | ||
|
||
msgid "Library" | ||
msgstr "" | ||
|
||
msgid "Settings" | ||
msgstr "" | ||
|
||
msgid "Power" | ||
msgstr "" | ||
|
||
# General messages | ||
msgid "Accept" | ||
msgstr "" | ||
|
||
msgid "Back" | ||
msgstr "" | ||
|
||
msgid "Cancel" | ||
msgstr "" | ||
|
||
# Help Menu Messages | ||
msgid "Open Main Menu" | ||
msgstr "" | ||
|
||
msgid "Open Quick Access Menu" | ||
msgstr "" | ||
|
||
msgid "Open On-Screen Keyboard" | ||
msgstr "" | ||
|
||
msgid "Scroll container" | ||
msgstr "" | ||
|
||
msgid "Switch to left tab" | ||
msgstr "" | ||
|
||
msgid "Switch to right tab" | ||
msgstr "" | ||
|
||
msgid "Backspace" | ||
msgstr "" | ||
|
||
msgid "Close keyboard" | ||
msgstr "" | ||
|
||
msgid "Toggle Shift" | ||
msgstr "" | ||
|
||
msgid "Enter" | ||
msgstr "" | ||
|
||
msgid "Bluetooth service unavailable" | ||
msgstr "" | ||
|
||
msgid "Steam Deck" | ||
msgstr "" | ||
|
||
msgid "Global" | ||
msgstr "" | ||
|
||
msgid "Unable to save gamepad profile" | ||
msgstr "" | ||
|
||
msgid "Failed to save gamepad profile" | ||
msgstr "" | ||
|
||
msgid "Gamepad profile saved" | ||
msgstr "" | ||
|
||
msgid "Play Now" | ||
msgstr "" | ||
|
||
msgid "Install" | ||
msgstr "" | ||
|
||
msgid "Resume" | ||
msgstr "" | ||
|
||
msgid "Queued" | ||
msgstr "" | ||
|
||
msgid "Installing" | ||
msgstr "" | ||
|
||
msgid "Quick Access Menu" | ||
msgstr "" | ||
|
||
msgid "Finished" | ||
msgstr "" | ||
|
||
msgid "Welcome" | ||
msgstr "" | ||
|
||
msgid "Game Name" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.