Difference between revisions of "Translation"
From JOTA-JOTI Wiki
								
												
				|  (Created page with "Most of the texts can be displayed in different languages.  All the text ist stored in XML-Language-Files.  == XML file format == Example code: <code>  <website>  <text key="this...") | m | ||
| (7 intermediate revisions by one user not shown) | |||
| Line 1: | Line 1: | ||
| Most of the texts can be displayed in different languages. | Most of the texts can be displayed in different languages. | ||
| − | All  | + | All text is stored in XML-Language-Files. | 
| == XML file format == | == XML file format == | ||
| Line 7: | Line 7: | ||
| <code> | <code> | ||
|   <website> |   <website> | ||
| − |   <text key=" | + |   <text key="_this_language_short">en</text> | 
| − |   <text key=" | + |   <text key="_this_language_name">english</text> | 
| − |   <text key=" | + |   <text key="_this_language_en">english</text> | 
|   ... |   ... | ||
|   </website> |   </website> | ||
| Line 19: | Line 19: | ||
|   <text key="<span style="color:green">this_language_name</span>"><span style="color:blue">english</span></text> |   <text key="<span style="color:green">this_language_name</span>"><span style="color:blue">english</span></text> | ||
| − | Note: For some tags ( | + | Note: For some tags (e.g: mail_message), the linebreaks will be preserved by the program. | 
| === specials in the content === | === specials in the content === | ||
| Line 31: | Line 31: | ||
| That example will be converted to: | That example will be converted to: | ||
| − |   <nowiki><a href="http://www.scoutlink.net | + |   <nowiki><a target="_blank" href="http://www.scoutlink.net">ScoutLink</a></nowiki> | 
| * Bold: | * Bold: | ||
| − | Use Tags like <nowiki><b></nowiki> or <nowiki><strong></nowiki> as usual. | + | Use Tags like <nowiki><b></nowiki> (or <nowiki><strong></nowiki>) as usual. | 
| − | *  | + | * Line break: | 
| Use <nowiki><br /></nowiki> exact with the slash in XML-format! | Use <nowiki><br /></nowiki> exact with the slash in XML-format! | ||
| + | |||
| + | : Real line breaks are displayed in the content of | ||
| + | :* error messages, e.g. login_error | ||
| + | :* mails | ||
| + | |||
| + | == Sources to be translated == | ||
| + | * lang files .xml | ||
| + | * lang files for weblog .xml | ||
| + | * JOTI Information | ||
| + | * Help pages | ||
| + | * Challenge FAQ | ||
| + | * PDF files | ||
| + | |||
| + | == ToDo == | ||
| + | Possible additional i18n: | ||
| + | * countries: new cols in db-table "countries" | ||
| + | * longer and better "info texts" about JOTA and JOTI | ||
Latest revision as of 22:55, 5 September 2014
Most of the texts can be displayed in different languages.
All text is 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 (e.g: 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 target="_blank" href="http://www.scoutlink.net">ScoutLink</a>
- Bold:
Use Tags like <b> (or <strong>) as usual.
- Line break:
Use <br /> exact with the slash in XML-format!
-  Real line breaks are displayed in the content of
- error messages, e.g. login_error
- mails
 
Sources to be translated
- lang files .xml
- lang files for weblog .xml
- JOTI Information
- Help pages
- Challenge FAQ
- PDF files
ToDo
Possible additional i18n:
- countries: new cols in db-table "countries"
- longer and better "info texts" about JOTA and JOTI
