translation file: exact format

Old Nick

Well-known member
Hello,

In what format exactly should we offer a translation file ?

I use XF's internal system to translate sentences.
For each phrase I modify the text in English for text in French. Should the title text also be changed ? (the value that must be unique).
After exporting the file in XML will it make a difference if this value is modified or not ?

This is how my XML file is formatted :

<phrase title="old" addon_id="XF" version_id="2000970" version_string="2.0.9"><![CDATA[Ancien]]></phrase>

should it be rather like this to be a real translation file ?

<phrase title="ancien" addon_id="XF" version_id="2000970" version_string="2.0.9"><![CDATA[Ancien]]></phrase>

thanks !
 
That's what I thought (and hoped !) but as the field was open to modification I had a doubt.

So the only thing to do to finalize the file is edit this paragraph at the top of XML, isn't it ?
XML:
<language title="English (US)" date_format="j F Y" time_format="H:i" currency_format="{value} {symbol}" week_start="0" decimal_point="." thousands_separator="," label_separator=":" comma_separator=", " ellipsis="…" parenthesis_open="(" parenthesis_close=")" language_code="en-US" text_direction="LTR" addon_id="XF" export_version="2">

Many thanks Lukas.
 
Back
Top Bottom