Reputation: 15
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. 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
Upvotes: 0
Views: 228
Reputation: 3207
For create new translation file follow below steps.
Create language for this file. click on LIST->ROOT and click Plus icon.
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]
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>
Upvotes: 1