Fixed bug #11657: Extension sys_action uses hardcoded labels
authorOliver Hader <oliver.hader@typo3.org>
Tue, 25 Aug 2009 15:04:49 +0000 (15:04 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Tue, 25 Aug 2009 15:04:49 +0000 (15:04 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5819 709f56b5-9817-0410-a4d7-c38de5d9e867

typo3/sysext/sys_action/class.tx_sysaction.php
typo3/sysext/sys_action/locallang.xml

index f5b48d8..3e9bd65 100755 (executable)
@@ -196,14 +196,18 @@ class tx_sysaction extends mod_user_task {
                                                                                '&SET[search]=query'.
                                                                                '&storeControl[STORE]=-'.$actionRow["uid"].
                                                                                '&storeControl[LOAD]=1'.
-                                                                               '">Edit Query</a></strong>';
+                                                                               '">' . $GLOBALS['LANG']->getLL('action_editQuery') . '</a></strong>';
                                                                }
                                                                $theCode.= $this->pObj->doc->section($LANG->getLL("action_t2_result"),$actionContent,0,1);
                                                        } else {
                                                                $theCode.= $this->pObj->doc->section($LANG->getLL("action_error"),'<span class="typo3-red">'.$LANG->getLL("action_notReady").'</span>',0,1);
                                                        }
                                                } else {
-                                                       $theCode.= $this->pObj->doc->section($LANG->getLL("action_error"),'<span class="typo3-red">The extension "lowlevel" must be installed in order to create a quiry</span>',0,1);
+                                                       $theCode.= $this->pObj->doc->section(
+                                                               $GLOBALS['LANG']->getLL('action_error'),
+                                                               '<span class="typo3-red">' . $GLOBALS['LANG']->getLL('action_lowlevelMissing', true) . '</span>',
+                                                               0, 1
+                                                       );
                                                }
                                        break;
                                        case 3: //list records
index 8815f48..4d540c3 100755 (executable)
@@ -9,7 +9,9 @@
                        <label index="action_noType">Error: The action had no type defined.</label>
                        <label index="action_notReady">Error: The action configuration is not finished.</label>
                        <label index="action_download_file">Click here to download the exported data in a file</label>
+                       <label index="action_editQuery">Edit Query</label>
                        <label index="action_error">Action error!</label>
+                       <label index="action_lowlevelMissing">The extension "lowlevel" must be installed in order to create a query.</label>
                        <label index="action_BEu_hidden">Disable user</label>
                        <label index="action_BEu_username">Login name</label>
                        <label index="action_BEu_password">Password</label>