[BUGFIX] Pootle: Multi-line labels are not rendered properly
authorXavier Perseguers <xavier@typo3.org>
Thu, 20 Oct 2011 11:29:14 +0000 (13:29 +0200)
committerXavier Perseguers <xavier@typo3.org>
Thu, 20 Oct 2011 11:29:14 +0000 (13:29 +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: Ia1d8bfd0dfbb87ba3d10b1d06155fcab46d7d530
Relates: #31141
Releases: 4.6

typo3/sysext/dbal/mod1/locallang.xlf
typo3/sysext/dbal/mod1/locallang_mod.xlf

index 75775cc..77f4d8d 100644 (file)
@@ -3,16 +3,16 @@
        <file source-language="en" datatype="plaintext" original="messages" date="2011-10-17T20:22:32Z" product-name="dbal">
                <header/>
                <body>
-                       <trans-unit id="title">
+                       <trans-unit id="title" xml:space="preserve">
                                <source>DBAL Analysis Module</source>
                        </trans-unit>
-                       <trans-unit id="Debug_log">
+                       <trans-unit id="Debug_log" xml:space="preserve">
                                <source>Debug log</source>
                        </trans-unit>
-                       <trans-unit id="Cached_info">
+                       <trans-unit id="Cached_info" xml:space="preserve">
                                <source>Cached info</source>
                        </trans-unit>
-                       <trans-unit id="SQL_check">
+                       <trans-unit id="SQL_check" xml:space="preserve">
                                <source>SQL Check</source>
                        </trans-unit>
                </body>
index 82d1b92..1e1d458 100644 (file)
@@ -3,7 +3,7 @@
        <file source-language="en" datatype="plaintext" original="messages" date="2011-10-17T20:22:32Z" product-name="dbal">
                <header/>
                <body>
-                       <trans-unit id="mlang_tabs_tab">
+                       <trans-unit id="mlang_tabs_tab" xml:space="preserve">
                                <source>DBAL Debug</source>
                        </trans-unit>
                </body>