Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
Leed-market
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Adrien Dorsaz
Leed-market
Commits
7e831d41
Commit
7e831d41
authored
Oct 21, 2014
by
Adrien Dorsaz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[intheleed] Add i18n for French and English
parent
ce0808b6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
7 deletions
+29
-7
intheleed/intheleed.plugin.disabled.php
intheleed/intheleed.plugin.disabled.php
+7
-7
intheleed/locale/en.json
intheleed/locale/en.json
+11
-0
intheleed/locale/fr.json
intheleed/locale/fr.json
+11
-0
No files found.
intheleed/intheleed.plugin.disabled.php
View file @
7e831d41
...
...
@@ -22,13 +22,13 @@ function intheleed_plugin_button(&$event){
$title
=
$result
[
1
];
echo
'
<a title="
partager sur poche" target="_blank" href="'
.
$shareOption
.
'?action=add&url='
.
base64_encode
(
$link
)
.
'">Poche !
</a>
<a title="
'
.
_t
(
'P_INTHELEED_SHARE_WITH_POCHE'
)
.
'" target="_blank" href="'
.
$shareOption
.
'?action=add&url='
.
base64_encode
(
$link
)
.
'">'
.
_t
(
'P_INTHELEED_POCHE_EXCLAMATION'
)
.
'
</a>
'
;
}
function
intheleed_plugin_setting_link
(
&
$myUser
){
echo
'
<li class="pointer" onclick="$(\'#main section\').hide();$(\'#main #pocheBloc\').fadeToggle(200);">
poche
</li>
<li class="pointer" onclick="$(\'#main section\').hide();$(\'#main #pocheBloc\').fadeToggle(200);">
'
.
_t
(
'P_INTHELEED_POCHE'
)
.
'
</li>
'
;
}
...
...
@@ -38,14 +38,14 @@ function intheleed_plugin_setting_bloc(&$myUser){
echo
'
<section id="pocheBloc" style="display:none;">
<form action="action.php?action=intheleed_update" method="POST">
<h2>
Plugin poche
</h2>
<h2>
'
.
_t
(
'P_INTHELEED_PLUGIN_TITLE'
)
.
'
</h2>
<p class="pocheBlock">
<label for="plugin_poche_link">
Lien vers votre poche :
</label>
<label for="plugin_poche_link">
'
.
_t
(
'P_INTHELEED_POCHE_LINK'
)
.
'
</label>
<input style="width:50%;" type="text" placeholder="http://poche.mondomaine.com" value="'
.
$configurationManager
->
get
(
'plugin_poche_link'
)
.
'" id="plugin_poche_link" name="plugin_poche_link" />
<input type="submit" class="button" value="
Enregistrer
"><br/>
<input type="submit" class="button" value="
'
.
_t
(
'P_INTHELEED_SAVE'
)
.
'
"><br/>
</p>
<strong>
Nb:</strong> cette option affichera un bouton à côté de chaque article pour vous proposer de le stocker sur poche.
<strong>
'
.
_t
(
'P_INTHELEED_NB'
)
.
'</strong> '
.
_t
(
'P_INTHELEED_NB_INFO'
)
.
'
</form>
</section>
'
;
...
...
@@ -66,4 +66,4 @@ Plugin::addHook('setting_post_link', 'intheleed_plugin_setting_link');
Plugin
::
addHook
(
'setting_post_section'
,
'intheleed_plugin_setting_bloc'
);
Plugin
::
addHook
(
"action_post_case"
,
"intheleed_plugin_update"
);
?>
\ No newline at end of file
?>
intheleed/locale/en.json
0 → 100644
View file @
7e831d41
{
"P_INTHELEED_SHARE_WITH_POCHE"
:
"Share with Poche"
,
"P_INTHELEED_POCHE_EXCLAMATION"
:
"Poche !"
,
"P_INTHELEED_POCHE"
:
"poche"
,
"P_INTHELEED_PLUGIN_TITLE"
:
"Poche plugin"
,
"P_INTHELEED_POCHE_LINK"
:
"Your Poche link :"
,
"P_INTHELEED_SAVE"
:
"Save"
,
"P_INTHELEED_NB"
:
"NB:"
,
"P_INTHELEED_NB_INFO"
:
"This option will display a button beside every news to save it on your Poche service."
,
"P_INTHELEED_CONNECTION_ERROR"
:
"You have to be logged for this action."
}
intheleed/locale/fr.json
0 → 100644
View file @
7e831d41
{
"P_INTHELEED_SHARE_WITH_POCHE"
:
"partager sur poche"
,
"P_INTHELEED_POCHE_EXCLAMATION"
:
"Poche !"
,
"P_INTHELEED_POCHE"
:
"poche"
,
"P_INTHELEED_PLUGIN_TITLE"
:
"Plugin poche"
,
"P_INTHELEED_POCHE_LINK"
:
"Lien vers votre poche :"
,
"P_INTHELEED_SAVE"
:
"Enregistrer"
,
"P_INTHELEED_NB"
:
"NB:"
,
"P_INTHELEED_NB_INFO"
:
"Cette option affichera un bouton à côté de chaque article pour vous proposer de le stocker sur poche."
,
"P_INTHELEED_CONNECTION_ERROR"
:
"Vous devez être connecté pour cette action."
}
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