Bug #70867
Updated by Xavier Perseguers over 8 years ago
Line breaks are not properly handled in XLIFF. See https://msdn.microsoft.com/en-us/library/ms256097(v=vs.110).aspx for background. h2. Problem Having a XLIFF like that: <pre> <trans-unit id="settings.tika_jar_path"> <source>Tika Application Path: Path to your Apache Tika application jar file (tika-app-x.x.jar). This path may be relative to the root of your website or absolute. Download the jar from: https://tika.apache.org/download.html </source> </trans-unit> </pre> A call to @\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate@ does not return the expected string. h3. Expected string <pre>Tika Application Path: Path to your Apache Tika application jar file (tika-app-x.x.jar). This path may be relative to the root of your website or absolute. Download the jar from: http://tika.apache.org/download.html</pre> h3. Actual string <pre> Tika Application Path: Path to your Apache Tika application jar file (tika-app-x.x.jar). This path may be relative to the root of your website or absolute. Download the jar from: https://tika.apache.org/download.html </pre> h2. Additional information Line breaks and blank spaces in XML should only be respected if the XLIFF is written as: <pre> <trans-unit id="settings.tika_jar_path" xml:space="preserve"> <source>Tika Application Path: Path to your Apache Tika application jar file (tika-app-x.x.jar). This path may be relative to the root of your website or absolute. Download the jar from: https://tika.apache.org/download.html </source> </trans-unit> </pre> Mind the *xml:space="preserve"* in @trans-unit@ tag.