Skip to content

Commit

Permalink
move i18n folder out
Browse files Browse the repository at this point in the history
  • Loading branch information
myin142 committed Jul 31, 2023
1 parent 6ba31ac commit 86b29e4
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 107 deletions.
40 changes: 0 additions & 40 deletions godot/addons/i18n/de.po

This file was deleted.

34 changes: 0 additions & 34 deletions godot/addons/i18n/menu/LanguageSelect.gd

This file was deleted.

6 changes: 0 additions & 6 deletions godot/addons/i18n/menu/LanguageSelect.tscn

This file was deleted.

Binary file removed godot/addons/i18n/messages.mo
Binary file not shown.
File renamed without changes.
File renamed without changes.
26 changes: 10 additions & 16 deletions godot/addons/i18n/en.po → i18n/en.po
Original file line number Diff line number Diff line change
@@ -1,40 +1,34 @@
# Translations template for PROJECT.
# Copyright (C) 2022 ORGANIZATION
# Copyright (C) 2023 ORGANIZATION
# This file is distributed under the same license as the PROJECT project.
# Automatically generated, 2022.
# Automatically generated, 2023.
#
msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2023-01-22 09:53+0100\n"
"PO-Revision-Date: 2022-07-20 19:18+0200\n"
"POT-Creation-Date: 2023-07-31 17:23+0200\n"
"PO-Revision-Date: 2023-07-31 17:23+0200\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.10.3\n"
"Generated-By: Babel 2.12.1\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

msgid "Master"
msgstr ""
msgstr "Master"

msgid "Press any key..."
msgstr ""
msgstr "Press any key..."

msgid "Resume"
msgstr ""
msgstr "Resume"

msgid "Options"
msgstr ""
msgstr "Options"

msgid "Back to Menu"
msgstr ""

msgid "LANG_EN"
msgstr "English"

msgid "LANG_DE"
msgstr "German"
msgstr "Back to Menu"
Binary file added i18n/messages.mo
Binary file not shown.
10 changes: 2 additions & 8 deletions godot/addons/i18n/messages.pot → i18n/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2023-01-22 09:56+0100\n"
"POT-Creation-Date: 2023-07-31 17:23+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.10.3\n"
"Generated-By: Babel 2.12.1\n"

msgid "Master"
msgstr ""
Expand All @@ -32,9 +32,3 @@ msgstr ""
msgid "Back to Menu"
msgstr ""

msgid "LANG_EN"
msgstr ""

msgid "LANG_DE"
msgstr ""

File renamed without changes.
6 changes: 3 additions & 3 deletions scripts/translations.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/sh

DIR="godot/addons/i18n"
DIR="i18n"

pybabel extract -F "$DIR/babelrc" -k text -k LineEdit/placeholder_text -k tr -k items --no-location -o "$DIR/messages.pot" \
src "$DIR/menu"
godot/src

cd $DIR

LANGS=(en de)
LANGS=(en)

for LANG in "${LANGS[@]}"; do
if [[ ! -f $LANG.po ]]; then
Expand Down

0 comments on commit 86b29e4

Please sign in to comment.