[TASK] Move language in taskcenter 50/41550/3
authorMichael Oehlhof <typo3@oehlhof.de>
Fri, 17 Jul 2015 08:54:44 +0000 (10:54 +0200)
committerAndreas Wolf <andreas.wolf@typo3.org>
Fri, 17 Jul 2015 09:59:31 +0000 (11:59 +0200)
Moved all language files in ext:taskcenter to Resources/Private/Language

Resolves: #68267
Releases: master
Change-Id: I7aebb7b73c6bd18cd2484beaac97ef242b213671
Reviewed-on: http://review.typo3.org/41550
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Andreas Wolf <andreas.wolf@typo3.org>
Tested-by: Andreas Wolf <andreas.wolf@typo3.org>
typo3/sysext/taskcenter/Classes/Controller/TaskModuleController.php
typo3/sysext/taskcenter/Resources/Private/Language/locallang.xlf [new file with mode: 0644]
typo3/sysext/taskcenter/Resources/Private/Language/locallang_mod.xlf [new file with mode: 0644]
typo3/sysext/taskcenter/Resources/Private/Language/locallang_task.xlf [new file with mode: 0644]
typo3/sysext/taskcenter/ext_tables.php
typo3/sysext/taskcenter/locallang.xlf [deleted file]
typo3/sysext/taskcenter/task/locallang.xlf [deleted file]
typo3/sysext/taskcenter/task/locallang_mod.xlf [deleted file]

index 775aac9..41f6acc 100644 (file)
@@ -42,7 +42,7 @@ class TaskModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
         * Initializes the Module
         */
        public function __construct() {
-               $this->getLanguageService()->includeLLFile('EXT:taskcenter/task/locallang.xlf');
+               $this->getLanguageService()->includeLLFile('EXT:taskcenter/Resources/Private/Language/locallang_task.xlf');
                $this->MCONF = array(
                        'name' => $this->moduleName
                );
@@ -62,8 +62,8 @@ class TaskModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
         */
        public function menuConfig() {
                $this->MOD_MENU = array('mode' => array());
-               $this->MOD_MENU['mode']['information'] = $this->getLanguageService()->sL('LLL:EXT:taskcenter/locallang.xlf:task_overview');
-               $this->MOD_MENU['mode']['tasks'] =  $this->getLanguageService()->sL('LLL:EXT:taskcenter/locallang.xlf:task_tasks');
+               $this->MOD_MENU['mode']['information'] = $this->getLanguageService()->sL('LLL:EXT:taskcenter/Resources/Private/Language/locallang.xlf:task_overview');
+               $this->MOD_MENU['mode']['tasks'] =  $this->getLanguageService()->sL('LLL:EXT:taskcenter/Resources/Private/Language/locallang.xlf:task_tasks');
                /* Copied from parent::menuConfig, because parent is hardcoded to menu.function,
                 * however menu.function is already used for the individual tasks.
                 * Therefore we use menu.mode here.
@@ -153,8 +153,8 @@ class TaskModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
                } else {
                        $flashMessage = GeneralUtility::makeInstance(
                                FlashMessage::class,
-                               $this->getLanguageService()->sL('LLL:EXT:taskcenter/task/locallang_mod.xlf:mlang_labels_tabdescr'),
-                               $this->getLanguageService()->sL('LLL:EXT:taskcenter/task/locallang_mod.xlf:mlang_tabs_tab'),
+                               $this->getLanguageService()->sL('LLL:EXT:taskcenter/Resources/Private/Language/locallang_mod.xlf:mlang_labels_tabdescr'),
+                               $this->getLanguageService()->sL('LLL:EXT:taskcenter/Resources/Private/Language/locallang_mod.xlf:mlang_tabs_tab'),
                                FlashMessage::INFO
                        );
                        $actionContent .= $flashMessage->render();
@@ -173,7 +173,7 @@ class TaskModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
         * @return void
         */
        protected function renderInformationContent() {
-               $content = $this->description($this->getLanguageService()->getLL('mlang_tabs_tab'), $this->getLanguageService()->sL('LLL:EXT:taskcenter/task/locallang_mod.xlf:mlang_labels_tabdescr'));
+               $content = $this->description($this->getLanguageService()->getLL('mlang_tabs_tab'), $this->getLanguageService()->sL('LLL:EXT:taskcenter/Resources/Private/Language/locallang_mod.xlf:mlang_labels_tabdescr'));
                $content .= $this->getLanguageService()->getLL('taskcenter-about');
                if ($this->getBackendUser()->isAdmin()) {
                        $content .= '<br /><br />' . $this->description($this->getLanguageService()->getLL('taskcenter-adminheader'), $this->getLanguageService()->getLL('taskcenter-admin'));
diff --git a/typo3/sysext/taskcenter/Resources/Private/Language/locallang.xlf b/typo3/sysext/taskcenter/Resources/Private/Language/locallang.xlf
new file mode 100644 (file)
index 0000000..c758682
--- /dev/null
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff">
+       <file t3:id="1415815000" source-language="en" datatype="plaintext" original="messages" date="2011-10-17T20:22:37Z" product-name="taskcenter">
+               <header/>
+               <body>
+                       <trans-unit id="taskcenter">
+                               <source>Taskcenter</source>
+                       </trans-unit>
+                       <trans-unit id="choose_task">
+                               <source>Task:</source>
+                       </trans-unit>
+                       <trans-unit id="mlang_tabs_tab">
+                               <source>Tasks</source>
+                       </trans-unit>
+                       <trans-unit id="task_overview">
+                               <source>Overview</source>
+                       </trans-unit>
+                       <trans-unit id="task_tasks">
+                               <source>Tasks</source>
+                       </trans-unit>
+                       <trans-unit id="lReplyAddress">
+                               <source>Reply address is your email</source>
+                       </trans-unit>
+                       <trans-unit id="lSelf">
+                               <source>Self</source>
+                       </trans-unit>
+                       <trans-unit id="lSendNew">
+                               <source>Send message</source>
+                       </trans-unit>
+                       <trans-unit id="lSendReply">
+                               <source>Reply to message</source>
+                       </trans-unit>
+                       <trans-unit id="listSeparator_Groups">
+                               <source>__Groups:__</source>
+                       </trans-unit>
+                       <trans-unit id="lHomedir">
+                               <source>Home dir</source>
+                       </trans-unit>
+                       <trans-unit id="lNone">
+                               <source>[none]</source>
+                       </trans-unit>
+                       <trans-unit id="lCreate">
+                               <source>Create</source>
+                       </trans-unit>
+                       <trans-unit id="lCancel">
+                               <source>Cancel</source>
+                       </trans-unit>
+                       <trans-unit id="lDelete_warning">
+                               <source>Are you sure you want to delete this user?</source>
+                       </trans-unit>
+                       <trans-unit id="lDelete">
+                               <source>Delete</source>
+                       </trans-unit>
+                       <trans-unit id="lUpdate">
+                               <source>Update</source>
+                       </trans-unit>
+                       <trans-unit id="task_help_title">
+                               <source>About the taskcenter</source>
+                       </trans-unit>
+                       <trans-unit id="task_help_description">
+                               <source>Get more information about the taskcenter</source>
+                       </trans-unit>
+               </body>
+       </file>
+</xliff>
diff --git a/typo3/sysext/taskcenter/Resources/Private/Language/locallang_mod.xlf b/typo3/sysext/taskcenter/Resources/Private/Language/locallang_mod.xlf
new file mode 100644 (file)
index 0000000..bf561a4
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff">
+       <file t3:id="1415815002" source-language="en" datatype="plaintext" original="messages" date="2011-10-17T20:22:37Z" product-name="taskcenter">
+               <header/>
+               <body>
+                       <trans-unit id="mlang_labels_tablabel">
+                               <source>Task Center with overviews, messages, ToDo lists</source>
+                       </trans-unit>
+                       <trans-unit id="mlang_labels_tabdescr">
+                               <source>The task center provides access to your internal To-Do list, messages, Quick-note, actions etc. It also provides shortcuts to your available frontend modules and most recently edited pages. The Task Center is where you keep track of your daily tasks and workflows.</source>
+                       </trans-unit>
+                       <trans-unit id="mlang_tabs_tab">
+                               <source>Task center</source>
+                       </trans-unit>
+               </body>
+       </file>
+</xliff>
diff --git a/typo3/sysext/taskcenter/Resources/Private/Language/locallang_task.xlf b/typo3/sysext/taskcenter/Resources/Private/Language/locallang_task.xlf
new file mode 100644 (file)
index 0000000..3d58488
--- /dev/null
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff">
+       <file t3:id="1415815001" source-language="en" datatype="plaintext" original="messages" date="2011-10-17T20:22:37Z" product-name="taskcenter">
+               <header/>
+               <body>
+                       <trans-unit id="mlang_tabs_tab">
+                               <source>Tasks</source>
+                       </trans-unit>
+                       <trans-unit id="task_overview">
+                               <source>Overview</source>
+                       </trans-unit>
+                       <trans-unit id="error_header">
+                               <source>Error</source>
+                       </trans-unit>
+                       <trans-unit id="error-access">
+                               <source>No access to this module.</source>
+                       </trans-unit>
+                       <trans-unit id="error_no-instance">
+                               <source>The class "%s" does not implement the task interface "%s" which is necessary to be displayed here.</source>
+                       </trans-unit>
+                       <trans-unit id="no-tasks">
+                               <source>No tasks have been registered yet.</source>
+                       </trans-unit>
+                       <trans-unit id="lReplyAddress">
+                               <source>Reply address is your email</source>
+                       </trans-unit>
+                       <trans-unit id="lSelf">
+                               <source>Self</source>
+                       </trans-unit>
+                       <trans-unit id="lSendNew">
+                               <source>Send message</source>
+                       </trans-unit>
+                       <trans-unit id="lSendReply">
+                               <source>Reply to message</source>
+                       </trans-unit>
+                       <trans-unit id="listSeparator_Groups">
+                               <source>__Groups:__</source>
+                       </trans-unit>
+                       <trans-unit id="lHomedir">
+                               <source>Home dir</source>
+                       </trans-unit>
+                       <trans-unit id="lNone">
+                               <source>[none]</source>
+                       </trans-unit>
+                       <trans-unit id="lCreate">
+                               <source>Create</source>
+                       </trans-unit>
+                       <trans-unit id="lCancel">
+                               <source>Cancel</source>
+                       </trans-unit>
+                       <trans-unit id="lDelete_warning">
+                               <source>Are you sure you want to delete this user?</source>
+                       </trans-unit>
+                       <trans-unit id="lDelete">
+                               <source>Delete</source>
+                       </trans-unit>
+                       <trans-unit id="lUpdate">
+                               <source>Update</source>
+                       </trans-unit>
+                       <trans-unit id="taskcenter-about" xml:space="preserve">
+                               <source>
+&lt;p&gt;The menu on the left side shows all allowed tasks and let you allow to complete your tasks in an effecient way.&lt;/p&gt;
+&lt;ul class="withicons"&gt;
+&lt;li&gt;Clicking on the title of a task will open a detailed view of the task itself.&lt;/li&gt;
+&lt;li&gt;Click on the arrow on the right side will open/close the submenu of the task.&lt;/li&gt;
+&lt;/ul&gt;
+&lt;br /&gt;
+&lt;strong&gt;Note:&lt;/strong&gt; Set the taskcenter as the default module after your login to be even faster!
+
+</source>
+                       </trans-unit>
+                       <trans-unit id="taskcenter-adminheader">
+                               <source>Create a task</source>
+                       </trans-unit>
+                       <trans-unit id="taskcenter-admin">
+                               <source>It is simple to extend the taskcenter by a custom task. For more information please look into the manual of the extension 'taskcenter'.</source>
+                       </trans-unit>
+               </body>
+       </file>
+</xliff>
index e4e57d8..5d9d0e5 100644 (file)
@@ -19,7 +19,7 @@ if (TYPO3_MODE === 'BE') {
                                'tabs_images' => array(
                                        'tab' => '../Resources/Public/Icons/module-taskcenter.svg',
                                ),
-                               'll_ref' => 'LLL:EXT:taskcenter/task/locallang_mod.xlf',
+                               'll_ref' => 'LLL:EXT:taskcenter/Resources/Private/Language/locallang_mod.xlf',
                        ),
                )
        );
diff --git a/typo3/sysext/taskcenter/locallang.xlf b/typo3/sysext/taskcenter/locallang.xlf
deleted file mode 100644 (file)
index c758682..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff">
-       <file t3:id="1415815000" source-language="en" datatype="plaintext" original="messages" date="2011-10-17T20:22:37Z" product-name="taskcenter">
-               <header/>
-               <body>
-                       <trans-unit id="taskcenter">
-                               <source>Taskcenter</source>
-                       </trans-unit>
-                       <trans-unit id="choose_task">
-                               <source>Task:</source>
-                       </trans-unit>
-                       <trans-unit id="mlang_tabs_tab">
-                               <source>Tasks</source>
-                       </trans-unit>
-                       <trans-unit id="task_overview">
-                               <source>Overview</source>
-                       </trans-unit>
-                       <trans-unit id="task_tasks">
-                               <source>Tasks</source>
-                       </trans-unit>
-                       <trans-unit id="lReplyAddress">
-                               <source>Reply address is your email</source>
-                       </trans-unit>
-                       <trans-unit id="lSelf">
-                               <source>Self</source>
-                       </trans-unit>
-                       <trans-unit id="lSendNew">
-                               <source>Send message</source>
-                       </trans-unit>
-                       <trans-unit id="lSendReply">
-                               <source>Reply to message</source>
-                       </trans-unit>
-                       <trans-unit id="listSeparator_Groups">
-                               <source>__Groups:__</source>
-                       </trans-unit>
-                       <trans-unit id="lHomedir">
-                               <source>Home dir</source>
-                       </trans-unit>
-                       <trans-unit id="lNone">
-                               <source>[none]</source>
-                       </trans-unit>
-                       <trans-unit id="lCreate">
-                               <source>Create</source>
-                       </trans-unit>
-                       <trans-unit id="lCancel">
-                               <source>Cancel</source>
-                       </trans-unit>
-                       <trans-unit id="lDelete_warning">
-                               <source>Are you sure you want to delete this user?</source>
-                       </trans-unit>
-                       <trans-unit id="lDelete">
-                               <source>Delete</source>
-                       </trans-unit>
-                       <trans-unit id="lUpdate">
-                               <source>Update</source>
-                       </trans-unit>
-                       <trans-unit id="task_help_title">
-                               <source>About the taskcenter</source>
-                       </trans-unit>
-                       <trans-unit id="task_help_description">
-                               <source>Get more information about the taskcenter</source>
-                       </trans-unit>
-               </body>
-       </file>
-</xliff>
diff --git a/typo3/sysext/taskcenter/task/locallang.xlf b/typo3/sysext/taskcenter/task/locallang.xlf
deleted file mode 100644 (file)
index 3d58488..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff">
-       <file t3:id="1415815001" source-language="en" datatype="plaintext" original="messages" date="2011-10-17T20:22:37Z" product-name="taskcenter">
-               <header/>
-               <body>
-                       <trans-unit id="mlang_tabs_tab">
-                               <source>Tasks</source>
-                       </trans-unit>
-                       <trans-unit id="task_overview">
-                               <source>Overview</source>
-                       </trans-unit>
-                       <trans-unit id="error_header">
-                               <source>Error</source>
-                       </trans-unit>
-                       <trans-unit id="error-access">
-                               <source>No access to this module.</source>
-                       </trans-unit>
-                       <trans-unit id="error_no-instance">
-                               <source>The class "%s" does not implement the task interface "%s" which is necessary to be displayed here.</source>
-                       </trans-unit>
-                       <trans-unit id="no-tasks">
-                               <source>No tasks have been registered yet.</source>
-                       </trans-unit>
-                       <trans-unit id="lReplyAddress">
-                               <source>Reply address is your email</source>
-                       </trans-unit>
-                       <trans-unit id="lSelf">
-                               <source>Self</source>
-                       </trans-unit>
-                       <trans-unit id="lSendNew">
-                               <source>Send message</source>
-                       </trans-unit>
-                       <trans-unit id="lSendReply">
-                               <source>Reply to message</source>
-                       </trans-unit>
-                       <trans-unit id="listSeparator_Groups">
-                               <source>__Groups:__</source>
-                       </trans-unit>
-                       <trans-unit id="lHomedir">
-                               <source>Home dir</source>
-                       </trans-unit>
-                       <trans-unit id="lNone">
-                               <source>[none]</source>
-                       </trans-unit>
-                       <trans-unit id="lCreate">
-                               <source>Create</source>
-                       </trans-unit>
-                       <trans-unit id="lCancel">
-                               <source>Cancel</source>
-                       </trans-unit>
-                       <trans-unit id="lDelete_warning">
-                               <source>Are you sure you want to delete this user?</source>
-                       </trans-unit>
-                       <trans-unit id="lDelete">
-                               <source>Delete</source>
-                       </trans-unit>
-                       <trans-unit id="lUpdate">
-                               <source>Update</source>
-                       </trans-unit>
-                       <trans-unit id="taskcenter-about" xml:space="preserve">
-                               <source>
-&lt;p&gt;The menu on the left side shows all allowed tasks and let you allow to complete your tasks in an effecient way.&lt;/p&gt;
-&lt;ul class="withicons"&gt;
-&lt;li&gt;Clicking on the title of a task will open a detailed view of the task itself.&lt;/li&gt;
-&lt;li&gt;Click on the arrow on the right side will open/close the submenu of the task.&lt;/li&gt;
-&lt;/ul&gt;
-&lt;br /&gt;
-&lt;strong&gt;Note:&lt;/strong&gt; Set the taskcenter as the default module after your login to be even faster!
-
-</source>
-                       </trans-unit>
-                       <trans-unit id="taskcenter-adminheader">
-                               <source>Create a task</source>
-                       </trans-unit>
-                       <trans-unit id="taskcenter-admin">
-                               <source>It is simple to extend the taskcenter by a custom task. For more information please look into the manual of the extension 'taskcenter'.</source>
-                       </trans-unit>
-               </body>
-       </file>
-</xliff>
diff --git a/typo3/sysext/taskcenter/task/locallang_mod.xlf b/typo3/sysext/taskcenter/task/locallang_mod.xlf
deleted file mode 100644 (file)
index bf561a4..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff">
-       <file t3:id="1415815002" source-language="en" datatype="plaintext" original="messages" date="2011-10-17T20:22:37Z" product-name="taskcenter">
-               <header/>
-               <body>
-                       <trans-unit id="mlang_labels_tablabel">
-                               <source>Task Center with overviews, messages, ToDo lists</source>
-                       </trans-unit>
-                       <trans-unit id="mlang_labels_tabdescr">
-                               <source>The task center provides access to your internal To-Do list, messages, Quick-note, actions etc. It also provides shortcuts to your available frontend modules and most recently edited pages. The Task Center is where you keep track of your daily tasks and workflows.</source>
-                       </trans-unit>
-                       <trans-unit id="mlang_tabs_tab">
-                               <source>Task center</source>
-                       </trans-unit>
-               </body>
-       </file>
-</xliff>