projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28919cb
)
locales.pl: bei Existierendem mit unterschiedlicher Groß-/Kleinschreibung warnen
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 13 May 2013 07:59:11 +0000
(09:59 +0200)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 15 May 2013 09:59:58 +0000
(11:59 +0200)
scripts/locales.pl
patch
|
blob
|
history
diff --git
a/scripts/locales.pl
b/scripts/locales.pl
index
8105abd
..
93b34fd
100755
(executable)
--- a/
scripts/locales.pl
+++ b/
scripts/locales.pl
@@
-166,6
+166,14
@@
close($js_file);
my @new_missing = grep { !$self->{texts}{$_} } sort keys %alllocales;
if (@new_missing) {
+ if ($opt_c) {
+ my %existing_lc = map { (lc $_ => $_) } grep { $self->{texts}->{$_} } keys %{ $self->{texts} };
+ foreach my $entry (@new_missing) {
+ my $other = $existing_lc{lc $entry};
+ print "W: No entry for '${entry}' exists, but there is one with different case: '${other}'\n" if $other;
+ }
+ }
+
generate_file(
file => "$locales_dir/missing",
header => $MISSING_HEADER,