Difference between revisions of "Translation"

From JOTA-JOTI Wiki
Jump to: navigation, search
m (ToDo added)
m (ToDo)
Line 42: Line 42:
 
Possible additional i18n:
 
Possible additional i18n:
 
* countries: new cols in db-table "countries"
 
* countries: new cols in db-table "countries"
* longer info texts about JOTA and JOTI
+
* longer and better "info texts" about JOTA and JOTI

Revision as of 00:02, 1 June 2014

Most of the texts can be displayed in different languages.

All the text ist stored in XML-Language-Files.

XML file format

Example code:

<website>
<text key="this_language_short">en</text>
<text key="this_language_name">english</text>
<text key="this_language_en">english</text>
...
</website>

The file must start end end with a <website>-Tag. Each text has a KEY-name and a content:

<text key="this_language_name">english</text>

Note: For some tags (eg: mail_message), the linebreaks will be preserved by the program.

specials in the content

Only the following tags will work!

  • Link:

To integrate a weblink to the content, enter a <link>-Tag and include TARGET, TO and the text to be displayed

example:

<link><target>_blank</target><to>http://www.scoutlink.net</to>ScoutLink</link>

That example will be converted to:

<a href="http://www.scoutlink.net" target="_blank">ScoutLink</a>
  • Bold:

Use Tags like <b> or <strong> as usual.

  • Linebreak:

Use <br /> exact with the slash in XML-format!

ToDo

Possible additional i18n:

  • countries: new cols in db-table "countries"
  • longer and better "info texts" about JOTA and JOTI