From 098a7d0c75c445e548149b5190db623e09604e41 Mon Sep 17 00:00:00 2001 From: Jonas Häggqvist Date: Sat, 8 Nov 2008 22:04:28 +0000 Subject: 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 --- tools/genlang | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/genlang') diff --git a/tools/genlang b/tools/genlang index 6348f6e1ad..f4eb698a8f 100755 --- a/tools/genlang +++ b/tools/genlang @@ -440,6 +440,9 @@ while() { 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 -- cgit v1.2.3