Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Maxime Besson
lemonldap-ng
Commits
b777007f
Commit
b777007f
authored
Feb 09, 2019
by
Christophe Maudoux
🐛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Override msg by reading a file (#1595)
parent
94574f2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Init.pm
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Init.pm
+5
-5
lemonldap-ng-portal/site/templates/localeTranslations.txt
lemonldap-ng-portal/site/templates/localeTranslations.txt
+1
-1
No files found.
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Init.pm
View file @
b777007f
...
...
@@ -96,18 +96,18 @@ sub init {
}
);
# Load override messages from file and lemonldap-ng.ini
if
(
$self
->
{
localConfig
}
->
{
translations
}
)
{
open
my
$tr_file
,
'
<
',
$self
->
{
localConfig
}
->
{
translations
}
or
die
"
c
an't open
"
or
die
"
C
an't open
"
.
$self
->
{
localConfig
}
->
{
translations
}
.
"
: $!
";
while
(
<
$tr_file
>
)
{
chomp
;
my
@kv
=
split
/
\s+=\s+/
;
$self
->
{
localConfig
}
->
{
$
kv
[
0
]
}
=
$
kv
[
1
]
;
$_
=~
/^([\w_]+)
\s+=\s+
(.+)$
/
;
$self
->
{
localConfig
}
->
{
$
1
}
=
$
2
;
}
close
$tr_file
or
die
"
c
an't close
$tr_file
: $!
";
close
$tr_file
or
die
"
C
an't close
$tr_file
: $!
";
}
foreach
my
$k
(
keys
%
{
$self
->
localConfig
}
)
{
if
(
$k
=~
/tpl_(.*)/
)
{
$self
->
customParameters
->
{
$
1
}
=
$self
->
localConfig
->
{
$k
};
...
...
lemonldap-ng-portal/site/templates/localeTranslations.txt
View file @
b777007f
error_en_5 = Big brother is watching you, authenticated user
error_fr_0 = Souriez
. V
ous êtes surveillés !
error_fr_0 = Souriez
, v
ous êtes surveillés !
msg_fr_selectIdP = Portail de Fédération des Identités
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment