[英]TYPO3 xliff localisation in extension ist not working as expected
我目前正在嘗試本地化某些Webforms。 這些是使用TYPO3 v8 Forms_formframework制作的。
前端始終顯示翻譯后的標簽,它會忽略所選的語言。
locallang.xlf
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff">
<file source-language="en" datatype="plaintext" original="messages" product-name="dm_layout">
<header/>
<body>
<trans-unit id="kontaktformular.element.text-1.properties.placeholder" xml:space="preserve">
<source>Original</source>
</trans-unit>
</body>
</file>
</xliff>
de.locallang.xlf
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff">
<file source-language="en" target-language="de" datatype="plaintext" original="messages" product-name="dm_layout">
<header/>
<body>
<trans-unit id="kontaktformular.element.text-1.properties.placeholder" xml:space="preserve">
<target>Kontakt DE</target>
</trans-unit>
</body>
</file>
</xliff>
language.ts(拼寫正確加載)
config.language = de
config.sys_language_uid = 0
config.locale_all = de_DE.utf8
[globalVar = GP:L=1]
config.language = en
config.sys_language_uid = 1
config.locale_all = en_GB.utf8
[global]
英文頁面應顯示:原始
德語頁面應顯示:Kontakt DE
但兩者都恢復了“ Kontakt DE”
我所做的操作幾乎與您如何在TYPO3 CMS 8.7 LTS中翻譯EXT:Form表單相同?
在您的de.localland.xlf中嘗試:
<trans-unit id="kontaktformular.element.text-1.properties.placeholder">
<source> Original </source>
<target>Kontakt DE</target>
</trans-unit>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.