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]\+/\)::