Custom action : fix translation on display onSuccessMsgFormat
authorBenjamin Renard <brenard@easter-eggs.com>
Tue, 13 Mar 2012 09:29:31 +0000 (10:29 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Tue, 13 Mar 2012 09:29:37 +0000 (10:29 +0100)
public_html/custom_action.php

index ae55395..41612da 100644 (file)
@@ -44,7 +44,7 @@ if(LSsession :: startLSsession()) {
                 if ($config['function']($object)) {
                   if ($config['disableOnSuccessMsg']!=true) {
                     if ($config['onSuccessMsgFormat']) {
-                      LSsession :: addInfo(getFData($config['onSuccessMsgFormat'],$objectname));
+                      LSsession :: addInfo(getFData(__($config['onSuccessMsgFormat']),$objectname));
                     }
                     else {
                       LSsession :: addInfo(getFData(_('The custom action %{customAction} have been successfully execute on %{objectname}.'),array('objectname' => $objectname,'customAction' => $_GET['customAction'])));