summaryrefslogtreecommitdiffstats
path: root/po/messages.sh
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-05-03 18:45:04 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-05-03 18:45:04 +0200
commit97fd61d068803ca9ddc12aeb2ba47600226978e7 (patch)
treeb5e8de4caf3926f4d8c08d0202cbb93859c014ef /po/messages.sh
parent58a301e1eb83e36f853c31173364f6e0c973f45c (diff)
downloadtdeio-gopher-97fd61d068803ca9ddc12aeb2ba47600226978e7.tar.gz
tdeio-gopher-97fd61d068803ca9ddc12aeb2ba47600226978e7.zip
Remove the original translation directory layout.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'po/messages.sh')
-rwxr-xr-xpo/messages.sh63
1 files changed, 0 insertions, 63 deletions
diff --git a/po/messages.sh b/po/messages.sh
deleted file mode 100755
index c6fd829..0000000
--- a/po/messages.sh
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/sh
-
-# Inspired by Makefile.common from coolo
-# this script is used to update the .po files
-
-# To update the translations, you will need a specific gettext
-# patched for kde and a lot of patience, tenacity, luck, time ..
-
-
-# I guess one should only update the .po files when all .cpp files
-# are generated (after a make or scons)
-#
-
-SRCDIR=../src
-TIPSDIR=$SRCDIR/appdata
-
-TDEDIR=`tde-config --prefix`
-EXTRACTRC=extractrc
-KDEPOT=`tde-config --prefix`/include/tde/kde.pot
-XGETTEXT="xgettext -C -ki18n -ktr2i18n -kI18N_NOOP -ktranslate -kaliasLocale -x $KDEPOT "
-
-## check that kde.pot is available
-if ! test -e $KDEPOT; then
- echo "$KDEPOT does not exist, there may be something wrong with your installation!"
- XGETTEXT="xgettext -C -ki18n -ktr2i18n -kI18N_NOOP -ktranslate -kaliasLocale "
-fi
-
-## extract the strings
-echo "extracting the strings"
-
-echo -e 'i18n("_: NAME OF TRANSLATORS\\n"\n"Your names")\ni18n("_: EMAIL OF TRANSLATORS\\n"\n"Your emails")' > $SRCDIR/_translatorinfo.cpp
-
-## bad hack to get strings from *.ui files
-# Armin Straub <linux@arminstraub.de>
-UIC="uic -tr i18n"
-TMPHACK="$SRCDIR/tmphack"
-mkdir $TMPHACK || exit 1
-for F in "$SRCDIR/"*.ui; do
- echo ".. preparing $F"
- FN=$TMPHACK/$(basename "$F")
- $UIC "$F" > "$FN.h" && $UIC -impl "$FN.h" "$F" > "$FN.cpp"
-done
-tdeconfig_compiler -d $TMPHACK $SRCDIR/*.kcfg $SRCDIR/*.kcfgc
-## bad hack to get strings from *.ui files
-
-$XGETTEXT `find $SRCDIR -name "*.cpp"` -o tdeio_gopher.pot
-
-## bad hack to get strings from *.ui files
-rm -rf "$TMPHACK"
-## bad hack to get strings from *.ui files
-
-# remove the intermediate files
-rm -f $SRCDIR/_translatorinfo.cpp
-
-## now merge the .po files ..
-echo "merging the .po files"
-
-for i in `ls *.po`; do
- msgmerge $i tdeio_gopher.pot -o $i || exit 1
-done
-
-## finished
-echo "Done"