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

Merge branch 'fleaditlater'

Conflicts:
	fleaditlater/fleaditlater.plugin.disabled.php
parents 4281e987 e46bb9d9
......@@ -4,7 +4,7 @@
@author Idleman <idleman@idleman.fr>
@link http://blog.idleman.fr
@licence CC by nc sa http://creativecommons.org/licenses/by-nc-sa/2.0/fr/
@version 1.1.3
@version 1.1.4
@description Le plugin FleadItLater ajoute un bouton permettant de marquer un evenement comme "a lire plus tard" qui s'affichera dans un menu de droite.
*/
......@@ -13,7 +13,7 @@ function fleaditlater_plugin_AddButton(&$event){
$count = mysql_query('SELECT COUNT(id) FROM `'.MYSQL_PREFIX.'plugin_feaditlater` WHERE event='.$eventId);
$count = mysql_fetch_row($count);
if(!$count[0]){
echo '<button onclick="fleadItLater('.$eventId.',\'add\',this);">Lire + Tard</button>&nbsp;';
echo '<button onclick="fleadItLater('.$eventId.',\'add\',this);">'._t('P_FLEADITLATER_READLATER').'</button>&nbsp;';
}
}
......@@ -22,7 +22,7 @@ function fleaditlater_plugin_displayEvents(&$myUser){
if($query!=null){
echo '<aside class="fleaditLaterMenu">
<h3 class="left">A lire</h3>
<h3 class="left">'._t('P_FLEADITLATER_TOREAD').'</h3>
<ul class="clear">
<li>
<ul> ';
......@@ -36,7 +36,7 @@ function fleaditlater_plugin_displayEvents(&$myUser){
'.Functions::truncate($data['title'],38).'
</a>
<button class="right" onclick="fleadItLater('.$data['id'].',\'delete\',this)" style="margin-left:5px;margin-top:5px;">
<span title="marquer comme lu" alt="marquer comme lu">Lu</span>
<span title="'._t('P_FLEADITLATER_MARK_AS_READ').'" alt="'._t('P_FLEADITLATER_MARK_AS_READ').'">'._t('P_FLEADITLATER_MARK_AS_READ_SHORT').'</span>
</button>
</li>';
}
......@@ -51,7 +51,7 @@ function fleaditlater_plugin_displayEvents(&$myUser){
function fleaditlater_plugin_action($_,$myUser){
if ($_['action']=='fleadItLater') {
if($myUser==false) exit('Vous devez vous connecter pour cette action.');
if($myUser==false) exit(_t('P_FLEADITLATER_NOT_CONNECTED_ERROR'));
if (isset($_['id'])){
if(isset($_['state']) && $_['state']=='add'){
$return = mysql_query('INSERT INTO `'.MYSQL_PREFIX.'plugin_feaditlater` (event)VALUES(\''.$_['id'].'\')');
......
{
"P_FLEADITLATER_READLATER":"Read later",
"P_FLEADITLATER_TOREAD":"To read",
"P_FLEADITLATER_MARK_AS_READ":"Set as read",
"P_FLEADITLATER_MARK_AS_READ_SHORT":"Read",
"P_FLEADITLATER_NOT_CONNECTED_ERROR":"You can't acess that without login."
}
{
"P_FLEADITLATER_READLATER":"Lire + tard",
"P_FLEADITLATER_TOREAD":"À lire",
"P_FLEADITLATER_MARK_AS_READ":"Marquer comme lu",
"P_FLEADITLATER_MARK_AS_READ_SHORT":"Lu",
"P_FLEADITLATER_NOT_CONNECTED_ERROR":"Vous devez vous connectez pour accéder à cette fonction."
}
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