Partial revert (#1595)
This commit is contained in:
parent
62167a41f1
commit
28caeea3c2
|
@ -97,14 +97,16 @@ sub init {
|
||||||
);
|
);
|
||||||
|
|
||||||
# Load override messages from file and lemonldap-ng.ini
|
# Load override messages from file and lemonldap-ng.ini
|
||||||
if ( $self->{localConfig}->{translations} and -f $self->{localConfig}->{translations} and -r $self->{localConfig}->{translations} ) {
|
if ( $self->{localConfig}->{translations}
|
||||||
|
and -r $self->{localConfig}->{translations} )
|
||||||
|
{
|
||||||
open my $tr_file, '<', $self->{localConfig}->{translations}
|
open my $tr_file, '<', $self->{localConfig}->{translations}
|
||||||
or die "Can't open"
|
or die "Can't open"
|
||||||
. $self->{localConfig}->{translations} . " : $!";
|
. $self->{localConfig}->{translations} . " : $!";
|
||||||
while (<$tr_file>) {
|
while (<$tr_file>) {
|
||||||
chomp;
|
chomp;
|
||||||
$_ =~ /^([\w_]+)\s+=\s+(.+)$/;
|
$_ =~ /^([\w_]+)\s+=\s+(.+)$/;
|
||||||
$self->{localConfig}->{ $1 } = $2;
|
$self->{localConfig}->{$1} = $2;
|
||||||
}
|
}
|
||||||
close $tr_file or die "Can't close $tr_file : $!";
|
close $tr_file or die "Can't close $tr_file : $!";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user