summaryrefslogtreecommitdiff
path: root/scripts/find-lang.sh
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2009-01-29 20:42:43 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-01-30 08:13:08 +0200
commitfe720f6c3c0657d0ed4fc3855ac85a727dac47ce (patch)
tree187d06913754b71694903029a5ccd75ea9152bcc /scripts/find-lang.sh
parentdbc1f4ccf66451568a0a6b6ffd4252475a30b341 (diff)
downloadlibrpm-tizen-fe720f6c3c0657d0ed4fc3855ac85a727dac47ce.tar.gz
librpm-tizen-fe720f6c3c0657d0ed4fc3855ac85a727dac47ce.tar.bz2
librpm-tizen-fe720f6c3c0657d0ed4fc3855ac85a727dac47ce.zip
Improve Qt translation support, particularly --all-name.
Diffstat (limited to 'scripts/find-lang.sh')
-rwxr-xr-xscripts/find-lang.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/find-lang.sh b/scripts/find-lang.sh
index 283bcacee..2dd9e0ded 100755
--- a/scripts/find-lang.sh
+++ b/scripts/find-lang.sh
@@ -161,8 +161,11 @@ fi
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:
+'"$NO_ALL_NAME$QT"'s:\(.*/'"$NAME"'_\([a-zA-Z]\{2\}\(_[a-zA-Z]\{2\}\)\?\)\.qm$\):%lang(\2) \1:
+'"$ALL_NAME$QT"'s:\(.*/[^/_]\+_\([a-zA-Z]\{2\}_[a-zA-Z]\{2\}\)\.qm$\):%lang(\2) \1:
+'"$ALL_NAME$QT"'s:\(.*/[^/_]\+_\([a-zA-Z]\{2\}\)\.qm$\):%lang(\2) \1:
+'"$ALL_NAME$QT"'s:^\([^%].*/[^/]\+_\([a-zA-Z]\{2\}_[a-zA-Z]\{2\}\)\.qm$\):%lang(\2) \1:
+'"$ALL_NAME$QT"'s:^\([^%].*/[^/]\+_\([a-zA-Z]\{2\}\)\.qm$\):%lang(\2) \1:
s:^[^%].*::
s:%lang(C) ::
/^$/d' >> $MO_NAME