Revision e84dabe0
Von Sven Schöling vor mehr als 9 Jahren hinzugefügt
SL/DBUpgrade2.pm | ||
---|---|---|
59 | 59 |
my $control = { |
60 | 60 |
"priority" => 1000, |
61 | 61 |
"depends" => [], |
62 |
"locales" => [], |
|
62 | 63 |
}; |
63 | 64 |
|
64 | 65 |
while (<IN>) { |
... | ... | |
73 | 74 |
|
74 | 75 |
if ($fields[0] eq "depends") { |
75 | 76 |
push(@{$control->{"depends"}}, split(/\s+/, $fields[1])); |
77 |
} elsif ($fields[0] eq "locales") { |
|
78 |
push @{$control->{locales}}, $fields[1]; |
|
76 | 79 |
} else { |
77 | 80 |
$control->{$fields[0]} = $fields[1]; |
78 | 81 |
} |
Auch abrufbar als: Unified diff
DBUpgrade: locales parsen