Code snippets for symfony 1.x

Navigation

Refine Tags

Snippets tagged "i18n xml"

translate messages with html tags

Example:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xliff PUBLIC "-//XLIFF//DTD XLIFF//EN" "http://www.oasis-open.org/committees/xliff/documents/xliff.dtd">
<xliff version="1.0">
    <file original="global" source-language="en" datatype="plaintext" date="2009-08-12T12:32:00Z">
        <header/>
        <body>
            ...
            <trans-unit>
                <source>from %from_date%&lt;br /&gt;to %to_date%</source>
                <target>de %from_date%&lt;br /&gt;até %to_date%</target>
            </trans-unit>
        </body>
    </file>
</xliff>
 

Use '&lt;' and '&gt;' to replace '<' and '>'. respectively.

by Raphael Araújo on 2012-01-26, tagged i18n  translate  xml