deutsch

Symfony I18N translation best practice

After trying several tools for making the translation of a symfony project convenient for our customer, I found the following best practice:

  1. 1. Install Heartsome XLIFF Translator
  2. 2. Modify language codes (Options->Language Codes). e.g. from de-De to de_De and en-GB to en_GB by replacing the dash by a underscore.
  3. 3. Open the xml-file with the File->Open File Menue item and select the language de_De
  4. 4. Save the file as FILENAME.en.xml (File->Save As)
  5. 5. Start translating the strings by editing the German strings in the left field and replacing them.
  6. 6. Finally save the file again.
  7. 7. Import the file into you symfony project

[Update] I missed something. You have to have to change the language code of the English file in the menue. IMPORTANT!

This entry was posted on Wednesday, March 26th, 2008 at 1:42 pm and is filed under Symfony. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply