aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorpapoteur-mga <yves.brungard_git@gadz.org>2013-11-02 16:49:47 +0100
committerpapoteur-mga <yves.brungard_git@gadz.org>2013-11-02 16:49:47 +0100
commit4f85b80a44855c37a4da5c918d6bb925d35a1540 (patch)
treeb6a512e89d99379c190c202135f90556de98eb6c /tools
parent05ac087387d64da87d948db975ec7e85ef0398ea (diff)
downloadisodumper-4f85b80a44855c37a4da5c918d6bb925d35a1540.tar
isodumper-4f85b80a44855c37a4da5c918d6bb925d35a1540.tar.gz
isodumper-4f85b80a44855c37a4da5c918d6bb925d35a1540.tar.bz2
isodumper-4f85b80a44855c37a4da5c918d6bb925d35a1540.tar.xz
isodumper-4f85b80a44855c37a4da5c918d6bb925d35a1540.zip
Updating po files with last modifications. Correction to update-po.sh.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/po-update.sh19
1 files changed, 8 insertions, 11 deletions
diff --git a/tools/po-update.sh b/tools/po-update.sh
index a4147b5..4968ea7 100755
--- a/tools/po-update.sh
+++ b/tools/po-update.sh
@@ -10,13 +10,9 @@ fi
cd "$(readlink -f "$(dirname "$0")/..")"
-#VERSION=(0.1)
+VERSION=(0.11)
DOMAIN=(isodumper)
-intltool-extract --type=gettext/glade ../share/isodumper/isodumper.glade
-
-SOURCE_FILES=$(/bin/mktemp --tmpdir $DOMAIN-po-update-XXXXXX)
-find "lib" -name '*.py' >"$SOURCE_FILES"
-find "share/isodumper" -name '*.glade.h' >"$SOURCE_FILES"
+intltool-extract --type=gettext/glade share/isodumper/isodumper.glade
POT_DIR="$PWD/po"
test -d "$POT_DIR"
@@ -26,15 +22,16 @@ POT_FILE="$POT_DIR/$DOMAIN.pot"
/usr/bin/xgettext \
--package-name "$DOMAIN" \
--package-version "$VERSION" \
- --default-domain="$L_NAME" \
- --language=Python --from-code=UTF-8 --files-from="$SOURCE_FILES" \
+ --language=Python --from-code=UTF-8 --keyword=_ --keyword=N_ \
--no-escape --add-location --sort-by-file \
--add-comments=I18N \
- --output="$POT_FILE"
+ --output="$POT_FILE" \
+ lib/isodumper.py share/isodumper/isodumper.glade.h
/bin/sed --in-place --expression="s/charset=CHARSET/charset=UTF-8/" "$POT_FILE"
-rm -f ../share/isodumper/isodumper.glade.h
+rm -f share/isodumper/isodumper.glade.h
+
update_po() {
local LL_CC="$1"
@@ -53,7 +50,7 @@ update_po() {
if test "$1"; then
update_po "$1"
else
- for l in $(ls -1 "$POT_DIR"/??.po); do
+ for l in $(ls -1 "$POT_DIR"/*.po); do
l="$(basename "$l")"
update_po "${l%.po}"
done