summaryrefslogtreecommitdiffstats
path: root/po
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2022-02-02 09:46:01 +0100
committerSlávek Banko <[email protected]>2022-02-02 09:47:33 +0100
commitf404beea525cde0e93fb0e2579daaa789a8ece04 (patch)
tree8729dbd03456be035e33af5e1690ab08e2c88c61 /po
parentb048fd5e18ccc25617eec7592552602eaf459101 (diff)
downloadtde-style-qtcurve-f404beea525cde0e93fb0e2579daaa789a8ece04.tar.gz
tde-style-qtcurve-f404beea525cde0e93fb0e2579daaa789a8ece04.zip
Copy translations to a new directory layout.
Use common rules for build and install translations. Added translation of .desktop files. Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'po')
-rw-r--r--po/CMakeLists.txt5
-rwxr-xr-xpo/generate.sh48
2 files changed, 0 insertions, 53 deletions
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
deleted file mode 100644
index deef1da..0000000
--- a/po/CMakeLists.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po )
-
-if( _srcs )
- tde_create_translation( LANG auto OUTPUT_NAME qtcurve )
-endif( )
diff --git a/po/generate.sh b/po/generate.sh
deleted file mode 100755
index efd9121..0000000
--- a/po/generate.sh
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/sh
-BASEDIR=".." # root of translatable sources
-PROJECT="qtcurve" # project name
-BUGADDR="http://sourceforge.net/tracker/?group_id=50231&atid=459007" # MSGID-Bugs
-WDIR=`pwd` # working dir
-echo "Preparing rc files"
-cd ${BASEDIR}
-# we use simple sorting to make sure the lines do not jump around too much from system to system
-find . -name '*.rc' -o -name '*.ui' -o -name '*.kcfg' | sort > ${WDIR}/rcfiles.list
-xargs --arg-file=${WDIR}/rcfiles.list extractrc > ${WDIR}/rc.cpp
-# additional string for TDEAboutData
-echo 'i18nc("NAME OF TRANSLATORS","Your names");' >> ${WDIR}/rc.cpp
-echo 'i18nc("EMAIL OF TRANSLATORS","Your emails");' >> ${WDIR}/rc.cpp
-cd ${WDIR}
-echo "Done preparing rc files"
-
-echo "Extracting messages"
-cd ${BASEDIR}
-# see above on sorting
-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; }
-
-#Fix charset...
-cat ${PROJECT}.pot | sed s^charset=CHARSET^charset=UTF-8^g > ${PROJECT}.pot-new
-mv ${PROJECT}.pot-new ${PROJECT}.pot
-
-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"