diff --git a/misc/translator/tmpl_process3.pl b/misc/translator/tmpl_process3.pl index 46ceceb..ac0f0c4 100755 --- a/misc/translator/tmpl_process3.pl +++ b/misc/translator/tmpl_process3.pl @@ -274,6 +277,16 @@ if (defined $href) { # $charset_in = $candidate; # } # } + + for my $msgid (keys %$href) { + my $msgstr = $href->{$msgid}->msgstr; + + my $id_count = scalar(split(/%s/,$msgid)); + my $str_count = scalar(split(/%s/,$msgstr)); + + warn_normal "unconsistent '%s' count: msgid ($id_count)=$msgid / msgstr($str_count)=$msgstr\n", undef + if ( $id_count ne $str_count ); + } } # set our charset in to UTF-8