summaryrefslogtreecommitdiff
path: root/scripts/find-lang.sh
diff options
context:
space:
mode:
authorFlorian Festi <ffesti@redhat.com>2016-04-15 15:59:58 +0200
committerFlorian Festi <ffesti@redhat.com>2016-04-15 16:33:03 +0200
commit8e744513df33ab436cf2446b15174e8d9c2797d0 (patch)
treefd3c7d4d142e991466b6a7365407c5f06dcbdc20 /scripts/find-lang.sh
parent69ed95eb422c59f9d99f75ccb78f32311a31702d (diff)
downloadrpm-8e744513df33ab436cf2446b15174e8d9c2797d0.tar.gz
Allow lang code only QT translation file names in find-lang.sh
Previously the file names hat to have appname_langcode.pm now just langcode.pm is supported. Resolves: RhBz:#729336
Diffstat (limited to 'scripts/find-lang.sh')
-rwxr-xr-xscripts/find-lang.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/find-lang.sh b/scripts/find-lang.sh
index c1177e349..c638f058b 100755
--- a/scripts/find-lang.sh
+++ b/scripts/find-lang.sh
@@ -222,8 +222,10 @@ s:%lang(C) ::
find "$TOP_DIR" -type f -o -type l|sed '
s:'"$TOP_DIR"'::
'"$NO_ALL_NAME$QT"'s:\(.*/'"$NAME"'_\([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\}\)\.qm$\):%lang(\2) \1:
+'"$ALL_NAME$QT"'s:^\([^%].*/\([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\}[_@].*\)\.qm$\):%lang(\2) \1:
+'"$ALL_NAME$QT"'s:^\([^%].*/[^/_]\+_\([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\}\)\.qm$\):%lang(\2) \1:
s:^[^%].*::