Commit 7e831d41 authored by Adrien Dorsaz's avatar Adrien Dorsaz

[intheleed] Add i18n for French and English

parent ce0808b6
......@@ -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
?>
{
"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."
}
{
"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."
}
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