Symfony XLIFF

Symfony XLIFF files. Supporting keynames using resname attribute.

File Extensions .xlf, .xliff
API Extension symfony_xliff
Format Options No
Import Yes
Export Yes
Pluralization supported? No
Descriptions/Comments supported? Yes

Example

<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2">
  <file original="main" source-language="en" target-language="de">
    <body>
      <trans-unit id="app_title" resname="app_title">
        <source xml:lang="en">My Software Project</source>
        <target xml:lang="de">Mein Software Projekt</target>
        <note>Some description for translators</note>
      </trans-unit>
      <trans-unit id="greeting" resname="greeting">
        <source xml:lang="en">Hello 'User'!</source>
        <target xml:lang="de">Hallo 'Nutzer'!</target>
      </trans-unit>
    </body>
  </file>
</xliff>

Further Reading

  • How To Translate Symfony 3 Apps Like A Boss
  • XLIFF Specification