summaryrefslogtreecommitdiff
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
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
-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>) {
440 print STDERR "$input:$line:1: warning: voice before line lacks quotes ($voice)!\n"; 440 print STDERR "$input:$line:1: warning: voice before line lacks quotes ($voice)!\n";
441 $voice='""'; 441 $voice='""';
442 } 442 }
443 if($dest eq '""' && $phrase{'desc'} !~ /deprecated/i && $idstr !~ /^VOICE/) {
444 print STDERR "$input:$line:1: warning: empty dest before line in non-deprecated phrase!\n";
445 }
443 446
444 # Use the ID name to figure out which id number range we 447 # Use the ID name to figure out which id number range we
445 # should use for this phrase. Voice-only strings are 448 # should use for this phrase. Voice-only strings are