summaryrefslogtreecommitdiff
path: root/homedecor_i18n/tools
diff options
context:
space:
mode:
Diffstat (limited to 'homedecor_i18n/tools')
-rwxr-xr-xhomedecor_i18n/tools/updatepo.sh24
1 files changed, 0 insertions, 24 deletions
diff --git a/homedecor_i18n/tools/updatepo.sh b/homedecor_i18n/tools/updatepo.sh
deleted file mode 100755
index 52de990..0000000
--- a/homedecor_i18n/tools/updatepo.sh
+++ /dev/null
@@ -1,24 +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_ \
- --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