diff options
author | Florian Festi <ffesti@redhat.com> | 2016-04-15 15:59:58 +0200 |
---|---|---|
committer | Florian Festi <ffesti@redhat.com> | 2016-04-15 16:33:03 +0200 |
commit | 8e744513df33ab436cf2446b15174e8d9c2797d0 (patch) | |
tree | fd3c7d4d142e991466b6a7365407c5f06dcbdc20 | |
parent | 69ed95eb422c59f9d99f75ccb78f32311a31702d (diff) | |
download | rpm-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
-rwxr-xr-x | scripts/find-lang.sh | 6 |
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:^[^%].*:: |