1
0
mirror of https://github.com/pyrollo/display_modpack.git synced 2025-06-29 22:50:56 +02:00

Seperate signs API from signs definitions

Change modnames from *_lib to *_api
This commit is contained in:
Thomas--S
2018-02-01 16:54:55 +01:00
parent 2acccd7261
commit f3970f641e
43 changed files with 831 additions and 327 deletions

25
signs_api/tools/updatepo.sh Executable file
View File

@ -0,0 +1,25 @@
#! /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