Skip to content

Instantly share code, notes, and snippets.

@a-r-m-i-n
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save a-r-m-i-n/3bf68a761519d18a76d1 to your computer and use it in GitHub Desktop.

Select an option

Save a-r-m-i-n/3bf68a761519d18a76d1 to your computer and use it in GitHub Desktop.
Basic XLIFF structure for two languages (TYPO3 6.2+)
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.0">
<file source-language="en" target-language="de" product-name="extension_key">
<header/>
<body>
<trans-unit id="labelKey"><source></source><target>Deutscher Wert des Labels</target></trans-unit>
</body>
</file>
</xliff>
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.0">
<file source-language="en" product-name="extension_key">
<header/>
<body>
<trans-unit id="labelKey"><source>English value of the label</source></trans-unit>
</body>
</file>
</xliff>
<f:translate key="LLL:path/to/locallang.xlf:labelKey" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment