[!!!][TASK] Move language file of EXT:opendocs 54/40354/4
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 17 Jun 2015 12:22:25 +0000 (14:22 +0200)
committerBenjamin Mack <benni@typo3.org>
Wed, 17 Jun 2015 17:15:36 +0000 (19:15 +0200)
Move the language file to Resources/Private/Language/locallang.xlf.

Resolves: #67557
Releases: master
Change-Id: I46eb8a7931d82babda1fee78b925367cd12bf59d
Reviewed-on: http://review.typo3.org/40354
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
typo3/sysext/core/Documentation/Changelog/master/Breaking-67557-LanguageFileOfOpendocsWasMoved.rst [new file with mode: 0644]
typo3/sysext/opendocs/Classes/Backend/ToolbarItems/OpendocsToolbarItem.php
typo3/sysext/opendocs/Resources/Private/Language/locallang.xlf [new file with mode: 0644]
typo3/sysext/opendocs/locallang_opendocs.xlf [deleted file]

diff --git a/typo3/sysext/core/Documentation/Changelog/master/Breaking-67557-LanguageFileOfOpendocsWasMoved.rst b/typo3/sysext/core/Documentation/Changelog/master/Breaking-67557-LanguageFileOfOpendocsWasMoved.rst
new file mode 100644 (file)
index 0000000..d2415d3
--- /dev/null
@@ -0,0 +1,26 @@
+======================================================
+Breaking: #67557 - Language file of Opendocs was moved
+======================================================
+
+Description
+===========
+
+The language file locallang_opendocs.xlf of EXT:opendocs has been moved to Resources/Private/locallang.xlf.
+
+
+Impact
+======
+
+Inclusion of the file via ``$this->getLanguageService()->includeLLFile()`` or usage in ``<f:translate key="LLL:EXT:opendocs/locallang_opendocs.xlf:foobar" />.`` will fail.
+
+
+Affected Installations
+======================
+
+Every extension relying on the existence of locallang_opendocs.xlf will be affected.
+
+
+Migration
+=========
+
+Use Resources/Private/Language/locallang.xlf, if required.
\ No newline at end of file
index 166de8a..97f307b 100644 (file)
@@ -40,7 +40,7 @@ class OpendocsToolbarItem implements ToolbarItemInterface {
         * Constructor
         */
        public function __construct() {
-               $this->getLanguageService()->includeLLFile('EXT:opendocs/locallang_opendocs.xlf');
+               $this->getLanguageService()->includeLLFile('EXT:opendocs/Resources/Private/Language/locallang.xlf');
                $this->loadDocsFromUserSession();
                $pageRenderer = $this->getPageRenderer();
                $pageRenderer->loadRequireJsModule('TYPO3/CMS/Opendocs/Toolbar/OpendocsMenu');
diff --git a/typo3/sysext/opendocs/Resources/Private/Language/locallang.xlf b/typo3/sysext/opendocs/Resources/Private/Language/locallang.xlf
new file mode 100644 (file)
index 0000000..296a9a2
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff">
+       <file t3:id="1415814901" source-language="en" datatype="plaintext" original="messages" date="2011-10-17T20:22:34Z" product-name="opendocs">
+               <header/>
+               <body>
+                       <trans-unit id="toolbaritem">
+                               <source>Open and Recently Used Documents</source>
+                       </trans-unit>
+                       <trans-unit id="open_docs">
+                               <source>Open Documents</source>
+                       </trans-unit>
+                       <trans-unit id="recent_docs">
+                               <source>Recently Used Documents</source>
+                       </trans-unit>
+                       <trans-unit id="no_docs">
+                               <source>There are no open documents at this time.</source>
+                       </trans-unit>
+               </body>
+       </file>
+</xliff>
diff --git a/typo3/sysext/opendocs/locallang_opendocs.xlf b/typo3/sysext/opendocs/locallang_opendocs.xlf
deleted file mode 100644 (file)
index 296a9a2..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff">
-       <file t3:id="1415814901" source-language="en" datatype="plaintext" original="messages" date="2011-10-17T20:22:34Z" product-name="opendocs">
-               <header/>
-               <body>
-                       <trans-unit id="toolbaritem">
-                               <source>Open and Recently Used Documents</source>
-                       </trans-unit>
-                       <trans-unit id="open_docs">
-                               <source>Open Documents</source>
-                       </trans-unit>
-                       <trans-unit id="recent_docs">
-                               <source>Recently Used Documents</source>
-                       </trans-unit>
-                       <trans-unit id="no_docs">
-                               <source>There are no open documents at this time.</source>
-                       </trans-unit>
-               </body>
-       </file>
-</xliff>