Both sides previous revisionPrevious revisionNext revision | Previous revision |
worlddomination [2007/01/24 09:43] – manni | worlddomination [2008/02/08 19:49] (current) – external edit 127.0.0.1 |
---|
| |
This page provides full details of how POPFile localization is done. | This page provides full details of how POPFile localization is done. |
| |
| |
===== The L10N Scheme ===== | ===== The L10N Scheme ===== |
| |
<code> | <code> |
- Identify the language and character set used for the interface | # Identify the language and character set used for the interface |
LanguageCode en | LanguageCode en |
LanguageCharset ISO-8859-1 | LanguageCharset ISO-8859-1 |
LanguageDirection ltr | LanguageDirection ltr |
| |
- This is used to get the appropriate subdirectory for the manual | # This is used to get the appropriate subdirectory for the manual |
ManualLanguage en | ManualLanguage en |
</code> | </code> |
| |
||Identifier || Meaning || Values || | ||Identifier || Meaning || Values || |
||//LanguageCode// || The base language for the user interface in HTML terms; used to set the //lang// attribute on the //<html>// tag of the UI.||See http://www.w3.org/TR/html401/struct/dirlang.html#adef-lang for details.|| | ||//%%LanguageCode%%// || The base language for the user interface in HTML terms; used to set the //lang// attribute on the //<html>// tag of the UI.||See http://www.w3.org/TR/html401/struct/dirlang.html#adef-lang for details.|| |
||//LanguageCharset// || Sets the character set for the UI; used in a //<meta>// tag that sets the //Content-Type// of the UI.||See http://www.w3.org/TR/html401/charset.html#h-5.2 for details.|| | ||//%%LanguageCharset%%// || Sets the character set for the UI; used in a //<meta>// tag that sets the //Content-Type// of the UI.||See http://www.w3.org/TR/html401/charset.html#h-5.2 for details.|| |
||//LanguageDirection//|| The direction in which the language is read. e.g. English is left to right, Arabic is right to left; used to set the //dir// attribute on the //<html>// tag of the UI. ||//ltr//, //rtl//; see http://www.w3.org/TR/html401/struct/dirlang.html#bidirection for details.|| | ||//%%LanguageDirection%%//|| The direction in which the language is read. e.g. English is left to right, Arabic is right to left; used to set the //dir// attribute on the //<html>// tag of the UI. ||//ltr//, //rtl//; see http://www.w3.org/TR/html401/struct/dirlang.html#bidirection for details.|| |
||//ManualLanguage// || The subdirectory of //manual/// that contains the manual for this language. If no translation use //en// English. Note that non-English manuals are not served locally, but come from //http://popfile.sourceforge.net/manual///. || Subject to change, check //http://popfile.sourceforge.net/manual/// || | ||//%%ManualLanguage%%// || The subdirectory of //manual// that contains the manual for this language. If no translation use //en// English. Note that non-English manuals are not served locally, but come from http://popfile.sourceforge.net/manual/. || Subject to change, check http://popfile.sourceforge.net/manual/ || |
||//Locale_Date//|| Two format strings that determine how the message dates will be formatted on the POPFile History screen. The first one determines the format used for messages that are less than 7 days old, the second one for older messages. Both format strings are devided by the '|' sign. ||The format specifiers you can use here are described on the DateFormat page.|| | ||//Locale_Date//|| Two format strings that determine how the message dates will be formatted on the POPFile History screen. The first one determines the format used for messages that are less than 7 days old, the second one for older messages. Both format strings are devided by the '%%|%%' sign. ||The format specifiers you can use here are described on the DateFormat page.|| |
| |
Some of the strings contain the character sequence %s. These are also format strings and the %s will be replaced by another string at run-time. For example, the string named 'Bucket_Error2' is set to "Bucket named %s already exists" in the Engish version. The %s symbol will be replaced by whatever bucket name the user entered on the Buckets page when this bucket name already exists to come up with a nice error string. | Some of the strings contain the character sequence %s. These are also format strings and the %s will be replaced by another string at run-time. For example, the string named 'Bucket_Error2' is set to "Bucket named %s already exists" in the Engish version. The %s symbol will be replaced by whatever bucket name the user entered on the Buckets page when this bucket name already exists to come up with a nice error string. |
===== Tools and helpers for translators ===== | ===== Tools and helpers for translators ===== |
| |
To make it easier for you to translate the POPFile UI, you can change the <code>html_test_language</code> variable and use the script <code>check.pl</code>. | To make it easier for you to translate the POPFile UI, you can change the ''html_test_language'' variable and use the script ''check.pl''. |
| |
==== html_test_language ==== | ==== html_test_language ==== |