Fixed bug #11656: Extension Manager is not translatable
authorOliver Hader <oliver.hader@typo3.org>
Tue, 25 Aug 2009 15:35:39 +0000 (15:35 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Tue, 25 Aug 2009 15:35:39 +0000 (15:35 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5823 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/mod/tools/em/class.em_index.php
typo3/sysext/lang/locallang_mod_tools_em.xml

index 5b06475..08839b0 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
        * Fixed bug #11657: Extension sys_action uses hardcoded labels (thanks to Christopher Stelmaszyk)
        * Fixed bug #11660: Hardcoded labels in backend.php (thanks to Christopher Stelmaszyk)
        * Fixed bug #11772: Hardcoded strings in TCA of template module (thanks to Christopher Stelmaszyk)
+       * Fixed bug #11656: Extension Manager is not translatable (thanks to Christopher Stelmaszyk)
 
 2009-08-25  Ingo Renner  <ingo@typo3.org>
 
index c59b06c..bf9a209 100644 (file)
@@ -172,6 +172,8 @@ require_once('class.em_xmlhandler.php');
 require_once('class.em_terconnection.php');
 require_once('class.em_unzip.php');
 
+$GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_mod_tools_em.xml');
+
        // from tx_ter by Robert Lemke
 define('TX_TER_RESULT_EXTENSIONSUCCESSFULLYUPLOADED', '10504');
 
@@ -217,35 +219,9 @@ class SC_mod_tools_em_index extends t3lib_SCbase {
                )
        );
 
-       /**
-        * Extension Categories (static var)
-        * Content must be redundant with the same internal variable as in class.tx_extrep.php!
-        */
-       var $categories = Array(
-               'be' => 'Backend',
-               'module' => 'Backend Modules',
-               'fe' => 'Frontend',
-               'plugin' => 'Frontend Plugins',
-               'misc' => 'Miscellaneous',
-               'services' => 'Services',
-               'templates' => 'Templates',
-               'example' => 'Examples',
-               'doc' => 'Documentation'
-       );
+       var $categories = array();                      // Extension Categories (static var); see init()
 
-       /**
-        * Extension States
-        * Content must be redundant with the same internal variable as in class.tx_extrep.php!
-        */
-       var $states = Array (
-               'alpha' => 'Alpha',
-               'beta' => 'Beta',
-               'stable' => 'Stable',
-               'experimental' => 'Experimental',
-               'test' => 'Test',
-               'obsolete' => 'Obsolete',
-               'excludeFromUpdates' => 'Exclude From Updates'
-       );
+       var $states = array();                          // Extension States; see init()
 
        /**
         * Colors for extension states
@@ -261,18 +237,10 @@ class SC_mod_tools_em_index extends t3lib_SCbase {
        );
 
        /**
-        * "TYPE" information; labels, paths, description etc.
+        * "TYPE" information; labels, paths, description etc. See init()
         */
-       var $typeLabels = Array (
-               'S' => 'System',
-               'G' => 'Global',
-               'L' => 'Local',
-       );
-       var $typeDescr = Array (
-               'S' => 'System extension (typo3/sysext/) - Always distributed with source code (Static).',
-               'G' => 'Global extensions (typo3/ext/) - Available for shared source on server (Dynamic).',
-               'L' => 'Local extensions (typo3conf/ext/) - Local for this TYPO3 installation only (Dynamic).',
-       );
+       var $typeLabels = array();
+       var $typeDescr = array();
        var $typePaths = Array();                       // Also static, set in init()
        var $typeBackPaths = Array();           // Also static, set in init()
 
@@ -296,8 +264,8 @@ class SC_mod_tools_em_index extends t3lib_SCbase {
                'password' => '',
        );
 
-       var $privacyNotice = 'When you interact with the online repository, server information may be sent and stored in the repository for statistics.';
-       var $securityHint = '<strong>Found a security problem? Please get in touch with us!</strong><br />If you think you have found a security issue in TYPO3 or an extension, please contact the <a href="http://typo3.org/teams/security/" target="_blank">TYPO3 security team</a>! Thank you!';
+       var $privacyNotice;                                     // Set in init()
+       var $securityHint;                                      // Set in init()
        var $editTextExtensions = 'html,htm,txt,css,tmpl,inc,php,sql,conf,cnf,pl,pm,sh,xml,ChangeLog';
        var $nameSpaceExceptions = 'beuser_tracking,design_components,impexp,static_file_edit,cms,freesite,quickhelp,classic_welcome,indexed_search,sys_action,sys_workflows,sys_todos,sys_messages,direct_mail,sys_stat,tt_address,tt_board,tt_calender,tt_guest,tt_links,tt_news,tt_poll,tt_rating,tt_products,setup,taskcenter,tsconfig_help,context_help,sys_note,tstemplate,lowlevel,install,belog,beuser,phpmyadmin,aboutmodules,imagelist,setup,taskcenter,sys_notepad,viewpage,adodb';
 
@@ -357,6 +325,50 @@ class SC_mod_tools_em_index extends t3lib_SCbase {
        function init() {
                global $BE_USER,$LANG,$BACK_PATH,$TYPO3_CONF_VARS;
 
+               /**
+                * Extension Categories (static var)
+                * Content must be redundant with the same internal variable as in class.tx_extrep.php!
+                */
+               $this->categories = array(
+                       'be' => $GLOBALS['LANG']->getLL('category_BE'),
+                       'module' => $GLOBALS['LANG']->getLL('category_BE_modules'),
+                       'fe' => $GLOBALS['LANG']->getLL('category_FE'),
+                       'plugin' => $GLOBALS['LANG']->getLL('category_FE_plugins'),
+                       'misc' => $GLOBALS['LANG']->getLL('category_miscellanous'),
+                       'services' => $GLOBALS['LANG']->getLL('category_services'),
+                       'templates' => $GLOBALS['LANG']->getLL('category_templates'),
+                       'example' => $GLOBALS['LANG']->getLL('category_examples'),
+                       'doc' => $GLOBALS['LANG']->getLL('category_documentation')
+               );
+
+               /**
+                * Extension States
+                * Content must be redundant with the same internal variable as in class.tx_extrep.php!
+                */
+               $this->states = array(
+                       'alpha' => $GLOBALS['LANG']->getLL('state_alpha'),
+                       'beta' => $GLOBALS['LANG']->getLL('state_beta'),
+                       'stable' => $GLOBALS['LANG']->getLL('state_stable'),
+                       'experimental' => $GLOBALS['LANG']->getLL('state_experimental'),
+                       'test' => $GLOBALS['LANG']->getLL('state_test'),
+                       'obsolete' => $GLOBALS['LANG']->getLL('state_obsolete'),
+                       'excludeFromUpdates' => $GLOBALS['LANG']->getLL('state_exclude_from_updates')
+               );
+
+               /**
+                * "TYPE" information; labels, paths, description etc.
+                */
+               $this->typeLabels = array(
+                       'S' => $GLOBALS['LANG']->getLL('type_system'),
+                       'G' => $GLOBALS['LANG']->getLL('type_global'),
+                       'L' => $GLOBALS['LANG']->getLL('type_local'),
+               );
+               $this->typeDescr = array(       
+                       'S' => $GLOBALS['LANG']->getLL('descr_system'),
+                       'G' => $GLOBALS['LANG']->getLL('descr_global'),
+                       'L' => $GLOBALS['LANG']->getLL('descr_local'),
+               );
+       
                        // Setting paths of install scopes:
                $this->typePaths = Array (
                        'S' => TYPO3_mainDir.'sysext/',
@@ -369,6 +381,12 @@ class SC_mod_tools_em_index extends t3lib_SCbase {
                        'L' => '../../../../'.TYPO3_mainDir
                );
 
+               $this->privacyNotice = $GLOBALS['LANG']->getLL('privacy_notice');
+               $this->securityHint = '<strong>' . $GLOBALS['LANG']->getLL('security_header') . '</strong><br />' .
+                       sprintf($GLOBALS['LANG']->getLL('security_descr'),
+                               '<a href="http://typo3.org/teams/security/" target="_blank">', '</a>'
+                       );
+
                $this->excludeForPackaging = $GLOBALS['TYPO3_CONF_VARS']['EXT']['excludeForPackaging'];
 
                        // Setting module configuration:
index 18bfe1e..febe7fe 100755 (executable)
@@ -9,6 +9,31 @@
                        <label index="mlang_labels_tablabel">TYPO3 Extension Manager</label>
                        <label index="mlang_labels_tabdescr">Manages TYPO3 extensions from a central repository,  which includes plugins, modules, class extensions, configuration code etc.</label>
                        <label index="mlang_tabs_tab">Ext Manager</label>
+                       <label index="category_BE">Backend</label>
+                       <label index="category_BE_modules">Backend Modules</label>
+                       <label index="category_FE">Frontend</label>
+                       <label index="category_FE_plugins">Frontend Plugins</label>
+                       <label index="category_miscellanous">Miscellaneous</label>
+                       <label index="category_services">Services</label>
+                       <label index="category_templates">Templates</label>
+                       <label index="category_examples">Examples</label>
+                       <label index="category_documentation">Documentation</label>
+                       <label index="state_alpha">Alpha</label>
+                       <label index="state_beta">Beta</label>
+                       <label index="state_stable">Stable</label>
+                       <label index="state_experimental">Experimental</label>
+                       <label index="state_test">Test</label>
+                       <label index="state_obsolete">Obsolete</label>
+                       <label index="state_exclude_from_updates">Exclude From Updates</label>
+                       <label index="type_system">System</label>
+                       <label index="type_global">Global</label>
+                       <label index="type_local">Local</label>
+                       <label index="descr_system">System extension (typo3/sysext/) - Always distributed with source code (Static).</label>
+                       <label index="descr_global">Global extensions (typo3/ext/) - Available for shared source on server (Dynamic).</label>
+                       <label index="descr_local">Local extensions (typo3conf/ext/) - Local for this TYPO3 installation only (Dynamic).</label>
+                       <label index="privacy_notice">When you interact with the online repository, server information may be sent and stored in the repository for statistics.</label>
+                       <label index="security_header">Found a security problem? Please get in touch with us!</label>
+                       <label index="security_descr">If you think you have found a security issue in TYPO3 or an extension, please contact the %sTYPO3 security team%s! Thank you!</label>
                        <label index="display_nle">Include not loaded extensions into listing</label>
                        <label index="display_files">Display the list of changed files</label>
                        <label index="header_upd_ext">There are new versions of the following extensions in the TER</label>