1
0
mirror of https://github.com/pyrollo/display_modpack.git synced 2025-07-03 08:30:42 +02:00

fix translation + remove old files

This commit is contained in:
Niklp09
2023-06-11 15:11:54 +02:00
parent a50f095ae5
commit 0a3e3f8034
12 changed files with 5 additions and 155 deletions

View File

@ -1,25 +0,0 @@
#! /bin/bash
# To create a new translation:
# msginit --locale=ll_CC -o locale/ll_CC.po -i locale/template.pot
cd "$(dirname "${BASH_SOURCE[0]}")/..";
# Extract translatable strings.
xgettext --from-code=UTF-8 \
--language=Lua \
--sort-by-file \
--keyword=S \
--keyword=NS:1,2 \
--keyword=N_ \
--keyword=F \
--add-comments='Translators:' \
--add-location=file \
-o locale/template.pot \
$(find . -name '*.lua')
# Update translations.
find locale -name '*.po' | while read -r file; do
echo $file
msgmerge --update $file locale/template.pot;
done

View File

@ -1,25 +0,0 @@
#! /bin/bash
# To create a new translation:
# msginit --locale=ll_CC -o locale/ll_CC.po -i locale/template.pot
cd "$(dirname "${BASH_SOURCE[0]}")/..";
# Extract translatable strings.
xgettext --from-code=UTF-8 \
--language=Lua \
--sort-by-file \
--keyword=S \
--keyword=NS:1,2 \
--keyword=N_ \
--keyword=F \
--add-comments='Translators:' \
--add-location=file \
-o locale/template.pot \
$(find . -name '*.lua')
# Update translations.
find locale -name '*.po' | while read -r file; do
echo $file
msgmerge --update $file locale/template.pot;
done

View File

@ -1,25 +0,0 @@
#! /bin/bash
# To create a new translation:
# msginit --locale=ll_CC -o locale/ll_CC.po -i locale/template.pot
cd "$(dirname "${BASH_SOURCE[0]}")/..";
# Extract translatable strings.
xgettext --from-code=UTF-8 \
--language=Lua \
--sort-by-file \
--keyword=S \
--keyword=NS:1,2 \
--keyword=N_ \
--keyword=F \
--add-comments='Translators:' \
--add-location=file \
-o locale/template.pot \
$(find . -name '*.lua')
# Update translations.
find locale -name '*.po' | while read -r file; do
echo $file
msgmerge --update $file locale/template.pot;
done

View File

@ -54,7 +54,7 @@ function signs_api.set_formspec(pos)
else else
local extralabel = "" local extralabel = ""
if maxlines then if maxlines then
extralabel = S(" (first %s lines only)"):format(maxlines) extralabel = S(" (first @1 lines only)", maxlines)
end end
fs = "textarea[0.5,0.7;5.5,2;display_text;"..S("Text").."".. fs = "textarea[0.5,0.7;5.5,2;display_text;"..S("Text")..""..

View File

@ -1,5 +1,5 @@
# textdomain: signs_api # textdomain: signs_api
Text=Text Text=Text
(first %s lines only)= (nur die ersten %s-Zeilen) (first @1 lines only)= (nur die ersten @1 Zeilen)
Font=Schriftart Font=Schriftart
Write=Schreiben Write=Schreiben

View File

@ -1,5 +1,5 @@
# textdomain: signs_api # textdomain: signs_api
Text=Texte Text=Texte
(first %s lines only)= (uniquement les %s premières lignes) (first @1 lines only)= (uniquement les @1 premières lignes)
Font= Font=
Write=Écrire Write=Écrire

View File

@ -1,5 +1,5 @@
# textdomain: signs_api # textdomain: signs_api
Text=Teks Text=Teks
(first %s lines only)= (%s baris pertama sahaja) (first @1 lines only)= (@1 baris pertama sahaja)
Font= Font=
Write=Tulis Write=Tulis

View File

@ -1,5 +1,5 @@
# textdomain: signs_api # textdomain: signs_api
Text= Text=
(first %s lines only)= (first @1 lines only)=
Font= Font=
Write= Write=

View File

@ -1,25 +0,0 @@
#! /bin/bash
# To create a new translation:
# msginit --locale=ll_CC -o locale/ll_CC.po -i locale/template.pot
cd "$(dirname "${BASH_SOURCE[0]}")/..";
# Extract translatable strings.
xgettext --from-code=UTF-8 \
--language=Lua \
--sort-by-file \
--keyword=S \
--keyword=NS:1,2 \
--keyword=N_ \
--keyword=F \
--add-comments='Translators:' \
--add-location=file \
-o locale/template.pot \
$(find . -name '*.lua')
# Update translations.
find locale -name '*.po' | while read -r file; do
echo $file
msgmerge --update $file locale/template.pot;
done

View File

@ -1,25 +0,0 @@
#! /bin/bash
# To create a new translation:
# msginit --locale=ll_CC -o locale/ll_CC.po -i locale/template.pot
cd "$(dirname "${BASH_SOURCE[0]}")/..";
# Extract translatable strings.
xgettext --from-code=UTF-8 \
--language=Lua \
--sort-by-file \
--keyword=S \
--keyword=NS:1,2 \
--keyword=N_ \
--keyword=F \
--add-comments='Translators:' \
--add-location=file \
-o locale/template.pot \
$(find . -name '*.lua')
# Update translations.
find locale -name '*.po' | while read -r file; do
echo $file
msgmerge --update $file locale/template.pot;
done

View File

@ -1,25 +0,0 @@
#! /bin/bash
# To create a new translation:
# msginit --locale=ll_CC -o locale/ll_CC.po -i locale/template.pot
cd "$(dirname "${BASH_SOURCE[0]}")/..";
# Extract translatable strings.
xgettext --from-code=UTF-8 \
--language=Lua \
--sort-by-file \
--keyword=S \
--keyword=NS:1,2 \
--keyword=N_ \
--keyword=F \
--add-comments='Translators:' \
--add-location=file \
-o locale/template.pot \
$(find . -name '*.lua')
# Update translations.
find locale -name '*.po' | while read -r file; do
echo $file
msgmerge --update $file locale/template.pot;
done