|
From: Fredrik K. <sci...@us...> - 2010-09-22 17:00:57
|
Module: performous Branch: master Commit: aad1ea97b878ac80178e94366abb6510b8e73fb5 Author: Fredrik Klasson <sci...@gm...> Date: Wed Sep 22 18:59:45 2010 +0200 [ ] On closer examination, suffixing isn't required as -L/--language bypasses the filename based language guessing of xgettext. --- tools/scripts/xml_gettext.sh | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/scripts/xml_gettext.sh b/tools/scripts/xml_gettext.sh index dc8b678..d9176ed 100755 --- a/tools/scripts/xml_gettext.sh +++ b/tools/scripts/xml_gettext.sh @@ -98,8 +98,9 @@ shift shift # create the temporary file securely. -TEMP_SRC=$(mktemp --tmpdir xml2gettext.XXXXXXXXXX).c -append_temp_src "/* This is a automatically generated temp file, it's safe to remove*/" +TEMP_SRC="$(mktemp --tmpdir xml2gettext.XXXXXXXXXX)" + +append_temp_src "/* This is a automatically generated temp file, it's safe to remove */" # Start the dirty work for file in $* ; do @@ -107,7 +108,7 @@ for file in $* ; do done # Invoke xgettext, poedit will merge this with the rest of the strings -xgettext --force-po -L C -o "$POEDIT_FILE" --from-code="$ENC" -k_ "$TEMP_SRC" +xgettext --force-po --language=C -o "$POEDIT_FILE" --from-code="$ENC" -k_ "$TEMP_SRC" RV=$? # clean up |