Added feature #11378: Constant Editor uses hardcoded texts
authorOliver Hader <oliver.hader@typo3.org>
Fri, 26 Jun 2009 13:20:12 +0000 (13:20 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Fri, 26 Jun 2009 13:20:12 +0000 (13:20 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5633 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/tstemplate_ceditor/class.tx_tstemplateceditor.php
typo3/sysext/tstemplate_ceditor/locallang.xml [new file with mode: 0644]

index 5f01d0b..84c5228 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2009-06-26  Oliver Hader  <oliver@typo3.org>
 
        * Added feature #11373: Template-module "ts" uses hardcoded texts (thanks to Christopher Stelmaszyk)
+       * Added feature #11378: Constant Editor uses hardcoded texts (thanks to Christopher Stelmaszyk)
 
 2009-06-24  Steffen Kamper  <info@sk-typo3.de>
 
index c9b72bd..7b98ccd 100644 (file)
  * Module Include-file
  *
  * localconf-variables:
- * $TYPO3_CONF_VARS["MODS"]["web_ts"]["onlineResourceDir"] = "fileadmin/fonts/";               // This is the path (must be in "fileadmin/" !!) where the web_ts/constant-editor submodule fetches online resources. Put fonts (ttf) and standard images here!
+ * $TYPO3_CONF_VARS['MODS']['web_ts']['onlineResourceDir'] = 'fileadmin/fonts/';               // This is the path (must be in "fileadmin/" !!) where the web_ts/constant-editor submodule fetches online resources. Put fonts (ttf) and standard images here!
  *
  * @author     Kasper Skårhøj <kasperYYYY@typo3.com>
  */
 
+$GLOBALS['LANG']->includeLLFile('EXT:tstemplate_ceditor/locallang.xml');
+
 class tx_tstemplateceditor extends t3lib_extobjbase {
        function initialize_editor($pageId,$template_uid=0)     {
                        // Initializes the module. Done in this function because we may need to re-initialize if data is submitted!
@@ -144,7 +146,7 @@ class tx_tstemplateceditor extends t3lib_extobjbase {
                                // Resetting the menu (stop)
 
                        $theOutput.=$this->pObj->doc->spacer(5);
-                       $theOutput.=$this->pObj->doc->section("Edit constants for template:",'<img '.t3lib_iconWorks::skinImg($BACK_PATH, t3lib_iconWorks::getIcon('sys_template', $tplRow)).' align="top" /> <b>'.$this->pObj->linkWrapTemplateTitle($tplRow["title"],"constants").'</b>'.htmlspecialchars(trim($tplRow["sitetitle"])?' - ('.$tplRow["sitetitle"].')':''),0,1);
+                       $theOutput.=$this->pObj->doc->section($GLOBALS['LANG']->getLL('editConstants', true),'<img '.t3lib_iconWorks::skinImg($BACK_PATH, t3lib_iconWorks::getIcon('sys_template', $tplRow)).' align="top" /> <b>'.$this->pObj->linkWrapTemplateTitle($tplRow["title"],"constants").'</b>'.htmlspecialchars(trim($tplRow["sitetitle"])?' - ('.$tplRow["sitetitle"].')':''),0,1);
 
                        if ($manyTemplatesMenu) {
                                $theOutput.=$this->pObj->doc->section("",$manyTemplatesMenu);
@@ -153,10 +155,10 @@ class tx_tstemplateceditor extends t3lib_extobjbase {
 
                        $theOutput.=$this->pObj->doc->spacer(5);
                        if (count($this->pObj->MOD_MENU["constant_editor_cat"]))        {
-                               $menu = "Category: ".t3lib_BEfunc::getFuncMenu($this->pObj->id,"SET[constant_editor_cat]",$this->pObj->MOD_SETTINGS["constant_editor_cat"],$this->pObj->MOD_MENU["constant_editor_cat"]);
+                               $menu = $GLOBALS['LANG']->getLL('category', true)." ".t3lib_BEfunc::getFuncMenu($this->pObj->id,"SET[constant_editor_cat]",$this->pObj->MOD_SETTINGS["constant_editor_cat"],$this->pObj->MOD_MENU["constant_editor_cat"]);
                                $theOutput.=$this->pObj->doc->section("",'<NOBR>'.$menu.'</NOBR>');
                        } else {
-                               $theOutput.=$this->pObj->doc->section("No constants available","There are no editable constants available for the Constant Editor.",1,0,1);
+                               $theOutput.=$this->pObj->doc->section($GLOBALS['LANG']->getLL('noConstants', true),$GLOBALS['LANG']->getLL('noConstantsDescription', true),1,0,1);
                        }
 
 
diff --git a/typo3/sysext/tstemplate_ceditor/locallang.xml b/typo3/sysext/tstemplate_ceditor/locallang.xml
new file mode 100644 (file)
index 0000000..76087b6
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3locallang>
+       <meta type="array">
+               <description>Labels for the constant editor</description>
+               <type>module</type>
+       </meta>
+       <data type="array">
+               <languageKey index="default" type="array">
+                       <label index="editConstants">Edit constants for template:</label>
+                       <label index="category">Category:</label>
+                       <label index="noConstants">No constants available</label>
+                       <label index="noConstantsDescription">There are no editable constants available for the Constant Editor.</label>
+               </languageKey>
+       </data>
+</T3locallang>
\ No newline at end of file