[BUGFIX] Pootle: Multi-line labels are not rendered properly
authorXavier Perseguers <xavier@typo3.org>
Thu, 20 Oct 2011 11:31:19 +0000 (13:31 +0200)
committerXavier Perseguers <xavier@typo3.org>
Thu, 20 Oct 2011 11:31:19 +0000 (13:31 +0200)
In order to ensure that multi-line labels can be properly translated on Pootle or
any 3rd party tool, it turns out that an additional attribute xml:space="preserve"
should be added to each and every <trans-unit> tag in the localization files.

Change-Id: If96e68f21279d68c0c702128c735ddf6e12f8edc
Relates: #31141
Releases: 4.6

typo3/sysext/extbase/Resources/Private/Language/locallang_db.xlf

index 409a679..f98d8a4 100644 (file)
@@ -3,22 +3,22 @@
        <file source-language="en" datatype="plaintext" original="messages" date="2011-10-17T20:22:32Z" product-name="extbase">
                <header/>
                <body>
-                       <trans-unit id="fe_users.tx_extbase_type">
+                       <trans-unit id="fe_users.tx_extbase_type" xml:space="preserve">
                                <source>Record Type</source>
                        </trans-unit>
-                       <trans-unit id="fe_users.tx_extbase_type.0">
+                       <trans-unit id="fe_users.tx_extbase_type.0" xml:space="preserve">
                                <source>undefined</source>
                        </trans-unit>
-                       <trans-unit id="fe_users.tx_extbase_type.Tx_Extbase_Domain_Model_FrontendUser">
+                       <trans-unit id="fe_users.tx_extbase_type.Tx_Extbase_Domain_Model_FrontendUser" xml:space="preserve">
                                <source>Tx_Extbase_Domain_Model_FrontendUser</source>
                        </trans-unit>
-                       <trans-unit id="fe_groups.tx_extbase_type">
+                       <trans-unit id="fe_groups.tx_extbase_type" xml:space="preserve">
                                <source>Record Type</source>
                        </trans-unit>
-                       <trans-unit id="fe_groups.tx_extbase_type.0">
+                       <trans-unit id="fe_groups.tx_extbase_type.0" xml:space="preserve">
                                <source>undefined</source>
                        </trans-unit>
-                       <trans-unit id="fe_groups.tx_extbase_type.Tx_Extbase_Domain_Model_FrontendUserGroup">
+                       <trans-unit id="fe_groups.tx_extbase_type.Tx_Extbase_Domain_Model_FrontendUserGroup" xml:space="preserve">
                                <source>Tx_Extbase_Domain_Model_FrontendUserGroup</source>
                        </trans-unit>
                </body>