diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-10-14 12:48:32 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-10-14 12:48:32 +0300 |
commit | c7b8053f463a6a6fdcc039908ff399f4c1f591d1 (patch) | |
tree | df864efc0612bb910447139cdf66be1f609efecf /scripts | |
parent | 5656af9cf31c053ad97815692a0c0736c7e4bc42 (diff) | |
download | librpm-tizen-c7b8053f463a6a6fdcc039908ff399f4c1f591d1.tar.gz librpm-tizen-c7b8053f463a6a6fdcc039908ff399f4c1f591d1.tar.bz2 librpm-tizen-c7b8053f463a6a6fdcc039908ff399f4c1f591d1.zip |
find-lang Qt translation support (Ville Skyttä)
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/find-lang.sh | 14 |
1 files changed, 14 insertions, 0 deletions
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]\+/\):: |