From c7b8053f463a6a6fdcc039908ff399f4c1f591d1 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Sun, 14 Oct 2007 12:48:32 +0300 Subject: [PATCH] =?UTF-8?q?find-lang=20Qt=20translation=20support=20(Ville?= =?UTF-8?q?=20Skytt=C3=A4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/find-lang.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/find-lang.sh b/scripts/find-lang.sh index 6ada65d4e..c714ed0e4 100755 --- a/scripts/find-lang.sh +++ b/scripts/find-lang.sh @@ -32,6 +32,7 @@ to \$3. Additional options: --with-gnome find GNOME help files --with-kde find KDE help files + --with-qt find Qt translation files --with-man find localized man pages --all-name match all package/domain names --without-mo do not find locale files @@ -55,6 +56,7 @@ shift GNOME=# KDE=# +QT=# MAN=# MO= MO_NAME=$NAME.lang @@ -71,6 +73,10 @@ while test $# -gt 0 ; do KDE= shift ;; + --with-qt ) + QT= + shift + ;; --with-man ) MAN= shift @@ -136,6 +142,14 @@ s:^\([^%].*\):: s:%lang(C) :: /^$/d' >> $MO_NAME +find $TOP_DIR -type f -o -type l|sed ' +s:'"$TOP_DIR"':: +'"$NO_ALL_NAME$QT"'s:\(.*/'"$NAME"'_\([^/.]\+\)\.qm$\):%lang(\2) \1: +'"$ALL_NAME$QT"'s:\(.*[/_]\([^/_]\+\)\.qm$\):%lang(\2) \1: +s:^[^%].*:: +s:%lang(C) :: +/^$/d' >> $MO_NAME + find $TOP_DIR -type d|sed ' s:'"$TOP_DIR"':: '"$ALL_NAME$MAN"'s:\(.*/man/\([^/_]\+\).*/man[a-z0-9]\+/\)::