LSldapobject / Custom Action : Fixed error message on custom action execution failed

This commit is contained in:
Benjamin Renard 2011-04-07 19:31:56 +02:00
parent 15d93a94ec
commit 8d4c8b33a0
5 changed files with 20 additions and 6 deletions

View file

@ -51,7 +51,7 @@ if(LSsession :: startLSsession()) {
LSsession :: redirect('view.php?LSobject='.$_GET['LSobject'].'&refresh'); LSsession :: redirect('view.php?LSobject='.$_GET['LSobject'].'&refresh');
} }
else { else {
LSerror :: addErrorCode('LSldapObject_15',$objectname); LSerror :: addErrorCode('LSldapObject_31',array('objectname' => $objectname,'customAction' => $_GET['customAction']));
} }
} }
else { else {

View file

@ -2105,6 +2105,10 @@ LSerror :: defineError('LSldapObject_30',
_("LSldapObject : Error during generate LDAP filter for %{LSobject}.") _("LSldapObject : Error during generate LDAP filter for %{LSobject}.")
); );
LSerror :: defineError('LSldapObject_31',
_("LSldapObject : Error during execution of the custom action %{customAction} on %{objectname}.")
);
// LSrelation // LSrelation
LSerror :: defineError('LSrelations_05', LSerror :: defineError('LSrelations_05',
_("LSrelation : Some parameters are missing in the call of methods to handle standard relations (Method : %{meth}).") _("LSrelation : Some parameters are missing in the call of methods to handle standard relations (Method : %{meth}).")

View file

@ -7,8 +7,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: LdapSaisie\n" "Project-Id-Version: LdapSaisie\n"
"Report-Msgid-Bugs-To: \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: 2011-03-25 18:08+0100\n" "PO-Revision-Date: 2011-04-07 19:29+0100\n"
"Last-Translator: Benjamin Renard <brenard@easter-eggs.com>\n" "Last-Translator: Benjamin Renard <brenard@easter-eggs.com>\n"
"Language-Team: LdapSaisie <ldapsaisie-users@lists.labs.libre-entreprise.org>\n" "Language-Team: LdapSaisie <ldapsaisie-users@lists.labs.libre-entreprise.org>\n"
"Language: \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}." msgid "LSldapObject : Error during generate LDAP filter for %{LSobject}."
msgstr "LSldapObject : Erreur durant la génération du filtre LDAP de l'objet %{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})." 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." msgstr "LSrelation : Des paramètres sont manquant dans l'appel des méthodes de manipulation des relations standards."

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -391,7 +391,13 @@ msgstr ""
msgid "LSldapObject : Error during generate LDAP filter for %{LSobject}." msgid "LSldapObject : Error during generate LDAP filter for %{LSobject}."
msgstr "" 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 "" msgid ""
"LSrelation : Some parameters are missing in the call of methods to handle " "LSrelation : Some parameters are missing in the call of methods to handle "
"standard relations (Method : %{meth})." "standard relations (Method : %{meth})."