aboutsummaryrefslogtreecommitdiffstats
path: root/check_trans.pl
diff options
context:
space:
mode:
authorJosip Rodin <joy>2001-03-19 13:00:12 +0000
committerJosip Rodin <joy>2001-03-19 13:00:12 +0000
commit63e33a0260fb76b26a5f8dc88865c8f4179c31e2 (patch)
treea83d058398ea4e24ac4d36b997575461a6c23420 /check_trans.pl
parentce143d6b0ef733f0bdc147c98f22160ced73aa93 (diff)
changed the message that is displayed for files that have no translation-check tag
CVS version numbers check_trans.pl: 1.17 -> 1.18
Diffstat (limited to 'check_trans.pl')
-rwxr-xr-xcheck_trans.pl9
1 files changed, 7 insertions, 2 deletions
diff --git a/check_trans.pl b/check_trans.pl
index 2ecf9938393..bdb406d851c 100755
--- a/check_trans.pl
+++ b/check_trans.pl
@@ -410,8 +410,13 @@ sub check_file {
$translator =~ s/^\s*(.*?)\s*/$1/;
- $oldr ||= '1.1';
- my $str = "NeedToUpdate $name from version $oldr to version $revision";
+ my $str;
+ if (!$oldr) {
+ $oldr = '1.1';
+ $str = "Unknown status of $name (revision should be $revision)"
+ } else {
+ $str = "NeedToUpdate $name from version $oldr to version $revision";
+ }
$str .= " (maintainer: $translator)" if $translator;
$str .= "\n";
print $str unless $opt_Q;

© 2014-2024 Faster IT GmbH | imprint | privacy policy