summaryrefslogtreecommitdiffstats
path: root/tools/genlang
diff options
context:
space:
mode:
authorJonas Häggqvist <rasher@rasher.dk>2008-11-08 22:04:28 +0000
committerJonas Häggqvist <rasher@rasher.dk>2008-11-08 22:04:28 +0000
commit098a7d0c75c445e548149b5190db623e09604e41 (patch)
treee96084e49fae93ab34abecea097ec69c9f5da242 /tools/genlang
parent0058bdcf523055bb8cb6b52ebe60d523a7372e68 (diff)
downloadrockbox-098a7d0c75c445e548149b5190db623e09604e41.tar.gz
rockbox-098a7d0c75c445e548149b5190db623e09604e41.zip
Make genlang emit a warning if a translation file has an dest string for a phrase that isn't deprecated, since this will result in empty strings when using that translation. This will mess up the build table, but the plan is to either quickly update the translation, or simply delete the phrase and let the translator provide a full translation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19039 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/genlang')
-rwxr-xr-xtools/genlang3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/genlang b/tools/genlang
index 6348f6e1ad..f4eb698a8f 100755
--- a/tools/genlang
+++ b/tools/genlang
@@ -440,6 +440,9 @@ while(<LANG>) {
print STDERR "$input:$line:1: warning: voice before line lacks quotes ($voice)!\n";
$voice='""';
}
+ if($dest eq '""' && $phrase{'desc'} !~ /deprecated/i && $idstr !~ /^VOICE/) {
+ print STDERR "$input:$line:1: warning: empty dest before line in non-deprecated phrase!\n";
+ }
# Use the ID name to figure out which id number range we
# should use for this phrase. Voice-only strings are