Revision f16a89c9
Von Sven Schöling vor mehr als 10 Jahren hinzugefügt
scripts/locales.pl | ||
---|---|---|
30 | 30 |
my $opt_v = 0; |
31 | 31 |
my $opt_n = 0; |
32 | 32 |
my $opt_c = 0; |
33 |
my $opt_f = 0; |
|
33 | 34 |
my $debug = 0; |
34 | 35 |
|
35 | 36 |
parse_args(); |
... | ... | |
175 | 176 |
} |
176 | 177 |
} |
177 | 178 |
|
179 |
if ($opt_f) { |
|
180 |
for my $string (@new_missing) { |
|
181 |
print "new string '$string' in files:\n"; |
|
182 |
for my $file (keys %cached) { |
|
183 |
print " $file", $/ if $cached{$file}{all}{$string}; |
|
184 |
} |
|
185 |
} |
|
186 |
} |
|
187 |
|
|
178 | 188 |
generate_file( |
179 | 189 |
file => "$locales_dir/missing", |
180 | 190 |
header => $MISSING_HEADER, |
... | ... | |
244 | 254 |
'check-files' => \$ignore_for_compatiblity, |
245 | 255 |
'no-check-files' => \$opt_no_c, |
246 | 256 |
'verbose' => \$opt_v, |
257 |
'filenames' => \$opt_f, |
|
247 | 258 |
'help' => \$help, |
248 | 259 |
'man' => \$man, |
249 | 260 |
'debug' => \$debug, |
... | ... | |
739 | 750 |
Options: |
740 | 751 |
-n, --no-custom-files Do not process files whose name contains "_" |
741 | 752 |
-c, --check-files Run extended checks on HTML files |
753 |
-f, --filenames Show the filenames where new strings where found |
|
742 | 754 |
-v, --verbose Be more verbose |
743 | 755 |
-h, --help Show this help |
744 | 756 |
|
Auch abrufbar als: Unified diff
locales.pl: Optional die Quelldatei von neuen Strings anzeigen
falls mal wieder ein String auftaucht, und man ihn einfach nicht findet