diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2012-11-14 13:14:44 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2012-11-14 13:14:44 +0100 |
| commit | 7f13a829f40d0653753989073e212291bea61334 (patch) | |
| tree | 43726c291c2dde8278056c7f0c1312395610eab1 | |
| parent | 729b55dddfd587c7c4576db529dd4a031420e584 (diff) | |
| download | cgeo-7f13a829f40d0653753989073e212291bea61334.zip cgeo-7f13a829f40d0653753989073e212291bea61334.tar.gz cgeo-7f13a829f40d0653753989073e212291bea61334.tar.bz2 | |
Omit non-translatable strings from findmissingtranslations script
| -rwxr-xr-x | main/project/localization/findmissingtranslations.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/project/localization/findmissingtranslations.sh b/main/project/localization/findmissingtranslations.sh index 420f6f9..ea14f90 100755 --- a/main/project/localization/findmissingtranslations.sh +++ b/main/project/localization/findmissingtranslations.sh @@ -10,7 +10,8 @@ finddiffs () { echo "Only in values/strings.xml:" >> $1.missing grep "<\||" tmp.str | cut -d " " -f 1 | while read s; do egrep "<(string|plurals)" ../../res/values/strings.xml | grep "name=\"$s\"" - done | egrep -v '<string name="(contributors|changelog)">'>> $1.missing + done | egrep -v 'translatable="false"' \ + | egrep -v '<string name="(contributors|changelog)">'>> $1.missing echo "Only in values-$1/strings.xml:" >> $1.missing grep ">\||" tmp.str | sed "s/^/x/;s/\s\s*/ /g" | cut -d " " -f 3 | while read s; do egrep "<(string|plurals)" ../../res/values-$1/strings.xml | grep "name=\"$s\"" |
