diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2013-09-14 14:03:01 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2013-09-14 14:03:01 +0200 |
commit | 371f6e7fe5bfc68fb208374ca108893a14b44100 (patch) | |
tree | a7c061b53344cb7c5ff0b93fd180564ad32c3336 /main | |
parent | 4a963eec929a0a12d0bd4698c45a7ff7050a721e (diff) | |
download | cgeo-371f6e7fe5bfc68fb208374ca108893a14b44100.zip cgeo-371f6e7fe5bfc68fb208374ca108893a14b44100.tar.gz cgeo-371f6e7fe5bfc68fb208374ca108893a14b44100.tar.bz2 |
Rework missing translations script
Now that some languages use crowdin, translations are not necessarily in
the same order as in the reference file.
Diffstat (limited to 'main')
-rwxr-xr-x | main/project/localization/findmissingtranslations.sh | 2 | ||||
-rw-r--r-- | main/project/localization/funcs.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/main/project/localization/findmissingtranslations.sh b/main/project/localization/findmissingtranslations.sh index ea14f90..52fc053 100755 --- a/main/project/localization/findmissingtranslations.sh +++ b/main/project/localization/findmissingtranslations.sh @@ -5,7 +5,7 @@ cd `dirname "$0"` . ./funcs.sh finddiffs () { - echo "translations missing or not in the right place for language '$1':" > $1.missing + echo "translations missing for language '$1':" > $1.missing diff -y en.str $1.str > tmp.str echo "Only in values/strings.xml:" >> $1.missing grep "<\||" tmp.str | cut -d " " -f 1 | while read s; do diff --git a/main/project/localization/funcs.sh b/main/project/localization/funcs.sh index 198fbae..c61a12e 100644 --- a/main/project/localization/funcs.sh +++ b/main/project/localization/funcs.sh @@ -1,5 +1,5 @@ # Utility functions for location-aware programs getnames () { - sed -ne 's/^.*<\(string\|plurals\)\s*name\s*=\s*"\([^\"]*\)".*$/\2/p' $1 + sed -ne 's/^.*<\(string\|plurals\)\s*name\s*=\s*"\([^\"]*\)".*$/\2/p' $1 | sort } |