Revision 24bff6e4
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
scripts/locales.pl | ||
---|---|---|
43 | 43 |
our $missing = {}; |
44 | 44 |
our @lost = (); |
45 | 45 |
|
46 |
my %ignore_unused_templates = ( |
|
47 |
map { $_ => 1 } qw(common/help_overlay.html ct/testpage.html generic/autocomplete.html oe/periodic_invoices_email.txt part/testpage.html t/render.html t/render.js) |
|
48 |
); |
|
49 |
|
|
46 | 50 |
my (%referenced_html_files, %locale, %htmllocale, %alllocales, %cached, %submit, %jslocale); |
47 | 51 |
my ($ALL_HEADER, $MISSING_HEADER, $LOST_HEADER); |
48 | 52 |
|
... | ... | |
655 | 659 |
if (-d $entry) { |
656 | 660 |
push @unscanned_dirs, $entry; |
657 | 661 |
|
658 |
} elsif (($entry =~ /_master.html$/) && -f $entry && !$referenced_html_files{$entry}) {
|
|
662 |
} elsif (!$ignore_unused_templates{strip_base($entry)} && -f $entry && !$referenced_html_files{$entry}) {
|
|
659 | 663 |
print "W: unused HTML template: " . strip_base($entry) . "\n"; |
660 | 664 |
|
661 | 665 |
} |
Auch abrufbar als: Unified diff
locales.pl: Suche nach nicht benutzten Templates gefixt