简体   繁体   English

如何在typo3中添加新的翻译文件

[英]how to add new translation file in typo3

My defaut language is English, i have already a German xlf translation files for some pages and it's working perfectly, i tried to add a French translation so i copied the whole de.blabla.xlf file and change it to fr.blabla.xlf, and changed the field target-language="de" into fr. 我的默认语言是英语,我已经在某些页面上安装了德语xlf翻译文件,并且运行良好,我尝试添加法语翻译,因此我复制了整个de.blabla.xlf文件并将其更改为fr.blabla.xlf,并将字段target-language =“ de”更改为fr。 but it didn't work! 但这没用! this is the first 3 lines of the file 这是文件的前三行

<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff">
<file source-language="en" target-language="fr" datatype="plaintext" original="messages" date="2011-10-18T18:20:51Z" product-name="my-ext">

what else i have to do to make the language file working? 我还需要做什么才能使语言文件正常工作? Thank you in advance 先感谢您

For create new translation file follow below steps. 要创建新的翻译文件,请执行以下步骤。

  1. Create language for this file. 为此文件创建语言。 click on LIST->ROOT and click Plus icon. 单击列表->根,然后单击加号图标。

  2. Add Language Configuration 添加语言配置


[globalVar = GP:L = 3]
config.language = fr
config.sys_language_uid = 3
config.locale_all = fr_FR
config.htmlTag_langKey = fr-FR
[end]
  1. create language file. 创建语言文件。 fr.locallang.xlf . fr.locallang.xlf like below. 像下面

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
    <file source-language="de" target-language="fr" datatype="plaintext" original="messages" date="2015-05-06T16:16:41Z" product-name="extension_key">
        <header/>
        <body>
            <trans-unit id="sheet_titke">
                <target>Galería</target>
            </trans-unit>
        </body>
    </file>
</xliff>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM