Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Framasoft
myframa
Commits
81402705
Commit
81402705
authored
Sep 14, 2016
by
JosephK
Browse files
Bug translate
parent
ba7e23aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
shaarli/plugins/recovery/recovery.php
View file @
81402705
...
...
@@ -17,7 +17,9 @@ function hook_recovery_render_tools($data)
{
$html
=
file_get_contents
(
PluginManager
::
$PLUGINS_PATH
.
'/recovery/tools.html'
);
function
translate
(
$matches
)
{
return
t
(
$matches
[
1
]);
}
if
(
!
function_exists
(
translate
))
{
function
translate
(
$matches
)
{
return
t
(
$matches
[
1
]);
}
}
$html
=
preg_replace_callback
(
'/\{\'(.+)\'\|t\}/i'
,
translate
,
$html
);
if
(
isset
(
$GLOBALS
[
'config'
][
'email'
]))
{
...
...
shaarli/plugins/tags_advanced/tags_advanced.php
View file @
81402705
...
...
@@ -10,7 +10,9 @@ function tags_advanced_config($taData)
$html
=
file_get_contents
(
PluginManager
::
$PLUGINS_PATH
.
'/tags_advanced/tools.html'
);
$html
=
str_replace
(
'{$token}'
,
getToken
()
,
$html
);
function
translate
(
$matches
)
{
return
t
(
$matches
[
1
]);
}
if
(
!
function_exists
(
translate
))
{
function
translate
(
$matches
)
{
return
t
(
$matches
[
1
]);
}
}
$html
=
preg_replace_callback
(
'/\{\'(.+)\'\|t\}/i'
,
translate
,
$html
);
if
(
!
isset
(
$taData
)
||
empty
(
$taData
))
{
...
...
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