+2009-09-09 Tobias Liebig <mail_typo3@etobi.de>
+
+ * Fixed bug #11841: Hardcoded labels in t3editor (thanks to Christopher Stelmaszyk)
+
2009-09-07 Steffen Kamper <info@sk-typo3.de>
* Follow-up to feature #11397: Added unit tests for t3lib_pageremder
*
* @author Tobias Liebig <mail_typo3@etobi.de>
*/
+
+$GLOBALS['LANG']->includeLLFile('EXT:t3editor/locallang.xml');
+
class tx_t3editor {
/**
'id="t3editor_disableEditor_' . $this->editorCounter.'_checkbox" ' .
$checked.' /> ' .
'<label for="t3editor_disableEditor_' . $this->editorCounter . '_checkbox">' .
- 'deactivate t3editor' .
+ $GLOBALS['LANG']->getLL('deactivate') .
'</label>' .
'<br /><br />';
'wrap="off" ' .
$pObj->pObj->doc->formWidthText(48, 'width:98%;height:60%', 'off');
- $title = 'Template: ' . htmlspecialchars($parameters['tplRow']['title']) . ': Constants';
+ $title = $GLOBALS['LANG']->getLL('template') . ' ' .
+ htmlspecialchars($parameters['tplRow']['title']) .
+ $GLOBALS['LANG']->getLL('delimiter') . ' ' .
+ $GLOBALS['LANG']->getLL('constants');
$outCode = $GLOBALS['T3_VAR']['t3editorObj']->getCodeEditor(
'data[constants]',
'wrap="off" ' .
$pObj->pObj->doc->formWidthText(48, 'width:98%;height:60%', 'off');
- $title = 'Template: ' . htmlspecialchars($parameters['tplRow']['title']) . ': Setup';
+ $title = $GLOBALS['LANG']->getLL('template') . ' ' .
+ htmlspecialchars($parameters['tplRow']['title']) .
+ $GLOBALS['LANG']->getLL('delimiter') . ' ' .
+ $GLOBALS['LANG']->getLL('setup');
$outCode = $GLOBALS['T3_VAR']['t3editorObj']->getCodeEditor(
'data[config]',
// TODO: fileadmin, extmng, TCEform, ...
default:
- $ajaxObj->setError('Unknown content type: ' . $codeType);
+ $ajaxObj->setError($GLOBALS['LANG']->getLL('unknownContentType') . ' ' . $codeType);
}
$ajaxObj->setContent(array('result' => $savingsuccess));
}
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
+$GLOBALS['LANG']->includeLLFile('EXT:t3editor/locallang.xml');
+
class tx_t3editor_codecompletion {
/** @var TYPO3AJAX */
protected $ajaxObj;
$templates = $this->getMergedTemplates($pageId);
// Otherwise, set an error:
} else {
- $this->ajaxObj->setError('Syntax error: Parameter pageId must be a valid integer.');
+ $this->ajaxObj->setError($GLOBALS['LANG']->getLL('pageIDInteger'));
}
// Set an error if user has no access to sys_template records:
} else {
- $this->ajaxObj->setError('Access denied: No permission to template records.');
+ $this->ajaxObj->setError($GLOBALS['LANG']->getLL('noPermission'));
}
return $templates;
* @author Stephan Petzl <spetzl@gmx.at>
* @author Christian Kartnig <office@hahnepeter.de>
*/
+
+$GLOBALS['LANG']->includeLLFile('EXT:t3editor/locallang.xml');
+
class tx_t3editor_TSrefLoader {
/** @var DOMDocument */
protected $xmlDoc;
*/
protected function getDescription($typeId, $parameterName = '') {
if (!$typeId) {
- $this->ajaxObj->setError('Syntax error: At least parameter typeId has to be supplied.');
+ $this->ajaxObj->setError($GLOBALS['LANG']->getLL('typeIDMissing'));
return '';
}
--- /dev/null
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3locallang>
+ <meta type="array">
+ <description>Labels for t3editor</description>
+ <type>module</type>
+ </meta>
+ <data type="array">
+ <languageKey index="default" type="array">
+ <label index="deactivate">Deactivate t3editor</label>
+ <label index="template">Template</label>
+ <label index="delimiter">:</label>
+ <label index="constants">Constants</label>
+ <label index="setup">Setup</label>
+ <label index="unknownContentType">Unknown content type:</label>
+ <label index="pageIDInteger">Syntax error: Parameter pageID must be a valid integer.</label>
+ <label index="noPermission">Access denied: No permission to template records.</label>
+ <label index="typeIDMissing">Syntax error: At least parameter typeID has to be supplied.</label>
+ </languageKey>
+ </data>
+</T3locallang>
\ No newline at end of file