Revision f770f74a
Von Moritz Bunkus vor mehr als 8 Jahren hinzugefügt
scripts/locales.pl | ||
---|---|---|
54 | 54 |
|
55 | 55 |
my %ignore_unused_templates = ( |
56 | 56 |
map { $_ => 1 } qw(ct/testpage.html generic/autocomplete.html oe/periodic_invoices_email.txt part/testpage.html t/render.html t/render.js task_server/failure_notification_email.txt |
57 |
failed_background_jobs_report/email.txt) |
|
57 |
failed_background_jobs_report/email.txt help/content)
|
|
58 | 58 |
); |
59 | 59 |
|
60 | 60 |
my (%referenced_html_files, %locale, %htmllocale, %alllocales, %cached, %submit, %jslocale); |
... | ... | |
683 | 683 |
|
684 | 684 |
foreach my $entry (<$dir/*>) { |
685 | 685 |
if (-d $entry) { |
686 |
push @unscanned_dirs, $entry; |
|
686 |
push @unscanned_dirs, $entry unless $ignore_unused_templates{strip_base($entry)};
|
|
687 | 687 |
|
688 | 688 |
} elsif (!$ignore_unused_templates{strip_base($entry)} && -f $entry && !$referenced_html_files{$entry}) { |
689 | 689 |
print "W: unused HTML template: " . strip_base($entry) . "\n"; |
Auch abrufbar als: Unified diff
Hilfeseiten: Markdown-Seiten in help/content bei locales.pl ignorieren