diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-04-29 11:17:51 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-04-29 11:17:51 +0200 |
commit | fb1903e2c2ac12251d490370dba073519e5ac937 (patch) | |
tree | b73c3d465e85926ee13838e02ab42e7785b6070c | |
parent | Other optimizations on MainWindow loading (diff) | |
download | rekonq-fb1903e2c2ac12251d490370dba073519e5ac937.tar.xz |
Renaming Message.sh to not let it be executed from KDE scripty
-rwxr-xr-x | scripts/Messages.sh | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/scripts/Messages.sh b/scripts/Messages.sh deleted file mode 100755 index e9b5444d..00000000 --- a/scripts/Messages.sh +++ /dev/null @@ -1,41 +0,0 @@ -#! /usr/bin/env bash - -BASEDIR="../src/" -PROJECT="rekonq" -BUGADDR="http://sourceforge.net/tracker/?group_id=252277&atid=1126949" -WDIR="../po/" - -cd ${BASEDIR} -echo "Preparing rc files" -find . -name '*.rc' -o -name '*.ui' -o -name '*.kcfg' | sort > ${WDIR}/rcfiles.list -xargs --arg-file=${WDIR}/rcfiles.list extractrc > ${WDIR}/rc.cpp -cd ${WDIR} -echo "Done preparing rc files" - -echo "Extracting messages" -cd ${BASEDIR} -find . -name '*.cpp' -o -name '*.h' -o -name '*.c' | sort > ${WDIR}/infiles.list -echo "rc.cpp" >> ${WDIR}/infiles.list -cd ${WDIR} -xgettext --from-code=UTF-8 -C -kde -ci18n -ki18n:1 -ki18nc:1c,2 -ki18np:1,2 -ki18ncp:1c,2,3 -ktr2i18n:1 \ - -kI18N_NOOP:1 -kI18N_NOOP2:1c,2 -kaliasLocale -kki18n:1 -kki18nc:1c,2 -kki18np:1,2 -kki18ncp:1c,2,3 \ - --msgid-bugs-address="${BUGADDR}" \ - --files-from=infiles.list -D ${BASEDIR} -D ${WDIR} -o ${PROJECT}.pot || { echo "error while calling xgettext. aborting."; exit 1; } -echo "Done extracting messages" - -echo "Merging translations" -catalogs=`find . -name '*.po'` -for cat in $catalogs; do - echo $cat - msgmerge -o $cat.new $cat ${PROJECT}.pot - mv $cat.new $cat -done -echo "Done merging translations" - -echo "Cleaning up" -cd ${WDIR} -rm rcfiles.list -rm infiles.list -rm rc.cpp -echo "Done" - |