Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
worlddomination [2007/01/24 09:43] manniworlddomination [2008/02/08 19:49] (current) – external edit 127.0.0.1
Line 10: Line 10:
  
 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 =====
Line 16: Line 17:
  
 <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>
Line 30: Line 31:
  
 ||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 //&lt;html&gt;// 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 //&lt;html&gt;// 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 //&lt;meta&gt;// 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 //&lt;meta&gt;// 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 //&lt;html&gt;// 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 //&lt;html&gt;// 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.
Line 40: Line 41:
 ===== 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 ====
 
worlddomination.1169631788.txt.gz · Last modified: 2008/02/08 19:49 (external edit)
Old revisions

Should you find anything in the documentation that is incomplete, unclear, outdated or just plain wrong, please let us know and leave a note in the Documentation Forum.

Recent changes RSS feed Donate Driven by DokuWiki
The content of this wiki is protected by the GNU Fee Documentation License