Revision 6d2b0892
Von Sven Schöling vor mehr als 2 Jahren hinzugefügt
scripts/locales.pl | ||
---|---|---|
43 | 43 |
my $bindir = "$basedir/bin/mozilla"; |
44 | 44 |
my @progdirs = ( "$basedir/SL" ); |
45 | 45 |
my @menufiles = glob("${basedir}/menus/*/*"); |
46 |
my @javascript_dirs = ($basedir .'/js', $basedir .'/templates/webpages', $basedir .'/templates/mobile_webpages'); |
|
46 |
my @webpages = qw(webpages mobile_webpages design40_webpages); |
|
47 |
my @javascript_dirs = ($basedir .'/js', map { $basedir .'/templates/' . $_ } @webpages); |
|
47 | 48 |
my $javascript_output_dir = $basedir .'/js'; |
48 | 49 |
my $submitsearch = qr/type\s*=\s*[\"\']?submit/i; |
49 | 50 |
our $self = {}; |
... | ... | |
440 | 441 |
} |
441 | 442 |
|
442 | 443 |
my $found_one = 0; |
443 |
for my $space (qw(webpages mobile_webpages)) {
|
|
444 |
for my $space (@webpages) {
|
|
444 | 445 |
for my $ext (qw(html js json)) { |
445 | 446 |
my $new_file = "$basedir/templates/$space/$new_file_name.$ext"; |
446 | 447 |
if (-f $new_file) { |
... | ... | |
695 | 696 |
close($fh); |
696 | 697 |
} |
697 | 698 |
sub search_unused_htmlfiles { |
698 |
my @unscanned_dirs = ('../../templates/webpages', '../../templates/mobile_webpages');
|
|
699 |
my @unscanned_dirs = map { '../../templates/' . $_ } @webpages;
|
|
699 | 700 |
|
700 | 701 |
while (scalar @unscanned_dirs) { |
701 | 702 |
my $dir = shift @unscanned_dirs; |
Auch abrufbar als: Unified diff
design40: neue webpages auch lokalisieren