Allow per-language custom lang files
This commit is contained in:
parent
b7936639ba
commit
08b9f5f1ee
@ -139,3 +139,4 @@ Sped up the loading of language files by pre-caching them in memory when Webmin
|
||||
Added support for Pardus Linux, thanks to Kaan Ozdincer.
|
||||
Major Dutch updates, thanks to Gandyman.
|
||||
Majoe French translation update, thanks to ButterflyOfFire.
|
||||
Allow per-language language overrides to be defined, in custom-lang-$code files.
|
||||
|
@ -4443,6 +4443,10 @@ if ($ol) {
|
||||
}
|
||||
}
|
||||
&read_file_cached("$config_directory/custom-lang", \%text);
|
||||
foreach my $o (@lang_order_list) {
|
||||
next if ($o eq "en");
|
||||
&read_file_cached("$config_directory/custom-lang-$o", \%text);
|
||||
}
|
||||
my $norefs = $text{'__norefs'};
|
||||
|
||||
if ($_[0]) {
|
||||
@ -4458,6 +4462,11 @@ if ($_[0]) {
|
||||
}
|
||||
}
|
||||
&read_file_cached("$config_directory/$_[0]/custom-lang", \%text);
|
||||
foreach my $o (@lang_order_list) {
|
||||
next if ($o eq "en");
|
||||
&read_file_cached("$config_directory/$_[0]/custom-lang-$o",
|
||||
\%text);
|
||||
}
|
||||
$norefs = $text{'__norefs'} if ($norefs);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user