From 8d4c8b33a00ef55da2e10bac834b412b5c502f43 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 7 Apr 2011 19:31:56 +0200 Subject: [PATCH] LSldapobject / Custom Action : Fixed error message on custom action execution failed --- public_html/custom_action.php | 2 +- .../includes/class/class.LSldapObject.php | 4 ++++ .../lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.mo | Bin 32325 -> 32546 bytes .../lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.po | 10 +++++++--- public_html/lang/ldapsaisie.pot | 10 ++++++++-- 5 files changed, 20 insertions(+), 6 deletions(-) diff --git a/public_html/custom_action.php b/public_html/custom_action.php index af7a228f..18edce47 100644 --- a/public_html/custom_action.php +++ b/public_html/custom_action.php @@ -51,7 +51,7 @@ if(LSsession :: startLSsession()) { LSsession :: redirect('view.php?LSobject='.$_GET['LSobject'].'&refresh'); } else { - LSerror :: addErrorCode('LSldapObject_15',$objectname); + LSerror :: addErrorCode('LSldapObject_31',array('objectname' => $objectname,'customAction' => $_GET['customAction'])); } } else { diff --git a/public_html/includes/class/class.LSldapObject.php b/public_html/includes/class/class.LSldapObject.php index 52a2d1e2..2fbaa8e0 100644 --- a/public_html/includes/class/class.LSldapObject.php +++ b/public_html/includes/class/class.LSldapObject.php @@ -2105,6 +2105,10 @@ LSerror :: defineError('LSldapObject_30', _("LSldapObject : Error during generate LDAP filter for %{LSobject}.") ); +LSerror :: defineError('LSldapObject_31', +_("LSldapObject : Error during execution of the custom action %{customAction} on %{objectname}.") +); + // LSrelation LSerror :: defineError('LSrelations_05', _("LSrelation : Some parameters are missing in the call of methods to handle standard relations (Method : %{meth}).") diff --git a/public_html/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.mo b/public_html/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.mo index 39b1dd630d35b86e2ccfbc2e4ae1abd14296ff8a..031bee8697c8039de25820373568f421738cf565 100644 GIT binary patch delta 5249 zcmYk=33yId9>?($LiPv}5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k~gtf2=%g_kDk@I9)VJBRM(Rc)PywH{E`5WTI}g8FeF1j{YX>ig9=a*&XBmhW#pDgq&-0592X| zM?@>|4mQU1Gg$vnDj(6|i4~|3R^kw>I@8{g91Nzt7@K36<4M%>e;c)Rb!OR5Q4Df? z%qDEB{@L~xbi%5%$D$98pUwJfi7Yy_XUkCoS%o#Q1hq9=P%E?pHQ>XjmAQcpvE7?I zx~TGR!t3IB(Tb>OpekS4xZkkuN2)O$SDa4qBGDtcjw~lV$x))GLkDUcVMU)84M625 z@;&*Qq!N|(Hs+RNF; zf_*up?o!U@X!5V(AAI~h?iT;z6KY+feVm*jYlsd}eKMacBpt~)q7p+m4(>9B&%I9l zU2H)vI&JYIX-4u%KjKg7kRwDTk9_d#a>HqCQZFTe3{ZuVO%9U2YB*&E>LC98SqFYc zPC4yJ)XCmQ>XMI1XEK5GCpU=7r{pisr$ggCqWAP4h)#4GsX@}on?$ENk<2FD$g{G_ zsr(ZwNdrYIx16@00JBi9}8~6WUnnm4{1nG$#OeKqykzS-0QJH6B|F=H%v&CQ3uWxYcArr}A(wdwnwaHYXGTp}g>EqPDbWFkZ9NMeS`lGG~S7S diff --git a/public_html/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.po b/public_html/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.po index adda1132..5843039a 100644 --- a/public_html/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.po +++ b/public_html/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: LdapSaisie\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-03-25 18:05+0100\n" -"PO-Revision-Date: 2011-03-25 18:08+0100\n" +"POT-Creation-Date: 2011-04-07 19:27+0200\n" +"PO-Revision-Date: 2011-04-07 19:29+0100\n" "Last-Translator: Benjamin Renard \n" "Language-Team: LdapSaisie \n" "Language: \n" @@ -326,7 +326,11 @@ msgstr "LSldapObject : Erreur durant l'exécution de la méthode %{meth} lors de msgid "LSldapObject : Error during generate LDAP filter for %{LSobject}." msgstr "LSldapObject : Erreur durant la génération du filtre LDAP de l'objet %{LSobject}." -#: includes/class/class.LSldapObject.php:2110 +#: includes/class/class.LSldapObject.php:2109 +msgid "LSldapObject : Error during execution of the custom action %{customAction} on %{objectname}." +msgstr "LSldapObject : Erreur durant l'exécution de l'action personnalisée %{customAction} sur l'objet %{objectname}." + +#: includes/class/class.LSldapObject.php:2114 msgid "LSrelation : Some parameters are missing in the call of methods to handle standard relations (Method : %{meth})." msgstr "LSrelation : Des paramètres sont manquant dans l'appel des méthodes de manipulation des relations standards." diff --git a/public_html/lang/ldapsaisie.pot b/public_html/lang/ldapsaisie.pot index 6852ecef..ed25589e 100644 --- a/public_html/lang/ldapsaisie.pot +++ b/public_html/lang/ldapsaisie.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-03-25 18:05+0100\n" +"POT-Creation-Date: 2011-04-07 19:27+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -391,7 +391,13 @@ msgstr "" msgid "LSldapObject : Error during generate LDAP filter for %{LSobject}." msgstr "" -#: includes/class/class.LSldapObject.php:2110 +#: includes/class/class.LSldapObject.php:2109 +msgid "" +"LSldapObject : Error during execution of the custom action %{customAction} " +"on %{objectname}." +msgstr "" + +#: includes/class/class.LSldapObject.php:2114 msgid "" "LSrelation : Some parameters are missing in the call of methods to handle " "standard relations (Method : %{meth})."