X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=Messages.sh;h=f69bd55238535007a9bedbeb71260dded0c8a12b;hb=c3302003093710ee247ad84c0fe2ef3c579d417f;hp=d63c76e54ebe9ec6b6df68b42270b65930c22f1b;hpb=6084ae81e5af06b5cf88fe76214ed162300a0674;p=kdenlive diff --git a/Messages.sh b/Messages.sh index d63c76e5..f69bd552 100755 --- a/Messages.sh +++ b/Messages.sh @@ -1,26 +1,9 @@ -#! /bin/sh -EXTRACTRC=`which extractrc` -# XGETTEXT="`which xgettext` --kde -ki18n --no-location -s " -XGETTEXT="`which xgettext` -s " -podir=`pwd`/po -kdenlive_subdirs="src src/widgets renderer plugins" +#!bin/sh +kdenlive_subdirs="plugins renderer src src/widgets" -kde_inc=${includedir:-${KDEDIR:-@CMAKE_INSTALL_PREFIX@}/include/kde}/kde.pot +$EXTRACTRC --tag=name --tag=description --tag=label --tag=comment --tag=paramlistdisplay effects/*.xml data/kdenliveeffectscategory.rc >> rc.cpp +$EXTRACTRC `find $kdenlive_subdirs -name \*.rc -a ! -name encodingprofiles.rc -o -name \*.ui` >> rc.cpp -if [ -f ${kde_inc} ]; then - kde_inc=" -x ${kde_inc} " -else - kde_inc="" -fi - -$EXTRACTRC --tag=name --tag=description --tag=label effects/*.xml data/*.rc >> rc.cpp || exit 11 - -$EXTRACTRC `find $kdenlive_subdirs -name \*.ui` >> rc.cpp || exit 11 -$EXTRACTRC `find $kdenlive_subdirs -name \*.rc` >> rc.cpp || exit 11 - -$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 -ktranslate -kaliasLocale -kki18n:1 -kki18nc:1c,2 -kki18np:1,2 -kki18ncp:1c,2,3 --add-comments=\"TRANSLATORS:\" ${kde_inc} `find $kdenlive_subdirs -name \*.cpp -o -name \*.h` *.cpp -o $podir/kdenlive.pot - -#$XGETTEXT -C -kki18n -ki18n -ktr2i18n -kI18N_NOOP -ktr `find $kdenlive_subdirs -name \*.cpp -o -name \*.h` *.cpp -o $podir/kdenlive.pot +$XGETTEXT `find $kdenlive_subdirs -name \*.cpp -o -name \*.h` *.cpp -o $podir/kdenlive.pot rm -f rc.cpp