Commit 447c09c0 authored by Clément OUDOT's avatar Clément OUDOT

Remove old translation file (#1595)

parent 438d5bcb
......@@ -28,7 +28,6 @@ totp2fActivation = 1
totp2fSelfRegistration = 1
captcha_mail_enabled = 0
portalDisplayResetPassword = 1
translations = __pwd__/lemonldap-ng-portal/site/templates/localeTranslations.txt
[handler]
......
......@@ -204,7 +204,6 @@ languages = en, fr, vi, it, ar
;useOldMenuItems=1
; Override error codes
;error_0 = You are well authenticated!
;translations = __PORTALTEMPLATESDIR__/localeTranslations.txt
; Custom template parameters
; For example to use <TMPL_VAR NAME="myparam">
;tpl_myparam = test
......
......@@ -401,7 +401,6 @@ site/templates/common/redirect.tpl
site/templates/common/registerBrowser.tpl
site/templates/common/script.tpl
site/templates/common/trover.tpl
site/templates/localeTranslations.txt
t/01-AuthDemo.t
t/01-pdata.t
t/02-Password-Demo.t
......
......@@ -96,19 +96,7 @@ sub init {
}
);
# Load override messages from file and lemonldap-ng.ini
if ( $self->{localConfig}->{translations}
and -r $self->{localConfig}->{translations} )
{
open my $tr_file, '<', $self->{localConfig}->{translations}
or die "Can't open" . $self->{localConfig}->{translations} . " : $!";
while (<$tr_file>) {
chomp;
$_ =~ /^([\w_]+)\s+=\s+(.+)$/;
$self->{localConfig}->{$1} = $2;
}
close $tr_file or die "Can't close $tr_file : $!";
}
# Load override messages from lemonldap-ng.ini
foreach my $k ( keys %{ $self->localConfig } ) {
if ( $k =~ /tpl_(.*)/ ) {
$self->customParameters->{$1} = $self->localConfig->{$k};
......
error_en_5 = Big brother is watching you, authenticated user
error_en_9 = Do you really want to login ?
error_fr_0 = Souriez, vous êtes surveillés !
msg_fr_selectIdP = Portail de Fédération des Identités
\ No newline at end of file
......@@ -15,7 +15,6 @@ my $client = LLNG::Manager::Test->new( {
passwordDB => 'Demo',
portalRequireOldPassword => 1,
showLanguages => 0,
translations => 'site/templates/localeTranslations.txt',
error_de_85 => 'From lemonlap-ng.ini',
}
}
......@@ -32,19 +31,13 @@ ok( $res->[2]->[0] =~ m%"all":\{\}%, ' all found' )
ok( $res->[2]->[0] =~ m%"en":\{"PE9":"You are welcome! Please login..."\}%,
' en found' )
or print STDERR Dumper( $res->[2]->[0] );
ok( $res->[2]->[0] =~ m%"PE0":"Souriez, vous êtes surveillés !"%,
' PE0 found' )
or print STDERR Dumper( $res->[2]->[0] );
ok( $res->[2]->[0] =~ m%"selectIdP":"Portail de Fédération des Identités"%,
' selectIdP found' )
or print STDERR Dumper( $res->[2]->[0] );
ok( $res->[2]->[0] =~ m%"fr":\{%, ' fr found' )
or print STDERR Dumper( $res->[2]->[0] );
ok( $res->[2]->[0] =~ m%"PE85":"From lemonlap-ng.ini"%, ' PE85 found' )
or print STDERR Dumper( $res->[2]->[0] );
count(9);
count(7);
# Try yo authenticate
# Try to authenticate
# -------------------
ok(
$res = $client->_post(
......@@ -59,7 +52,7 @@ ok( $res->[2]->[0] =~ m%<span trmsg="40"></span>%, ' PE40 found' )
or print STDERR Dumper( $res->[2]->[0] );
count(2);
# Try yo authenticate
# Try to authenticate
# -------------------
ok(
$res = $client->_post(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment