Revision [14639]

This is an old revision of WikkaLocalization made by DarTar on 2006-06-19 16:27:25.

 

Wikka Wiki Localization


Wikka i18n picture
See also:
 

The latest Wikka release supports only English as a user interface language. Interface localization in different languages and unicode support are currently discussed in the development section. Several users, though, have adapted the Wikka engine to work with different languages and writing systems. On this page you will find some short instructions on how to modify Wikka to support your language.

Table of contents
  1. Using different charsets
  2. Translating UI strings
  3. Localized packages

Using different charsets


The default charset used by Wikka is ISO-8859-1. The following hack allows to change the default charset to UTF-8. Two lines have to be modified in actions/header.php:

original:
  1. <?php
  2.     $message = $this->GetRedirectMessage();
  3.     $user = $this->GetUser();


modified:
  1. <?php
  2.     header('Content-type: text/html; charset=UTF-8');
  3.     $message = $this->GetRedirectMessage();
  4.     $user = $this->GetUser();


original:
  1.     <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />


modified:
  1.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />


A similar hack has to be applied to the /raw handler to correctly display the source as unicode. The following change must be done in libs/Wakka.class.php:

original:
  1.     // raw page handler
  2.     elseif ($this->method == "raw")
  3.     {
  4.         header("Content-type: text/plain");
  5.         print($this->Method($this->method));
  6.     }


modified
  1.     // raw page handler
  2.     elseif ($this->method == "raw")
  3.     {
  4.         header("Content-type: text/plain; charset=UTF-8");
  5.         print($this->Method($this->method));
  6.     }


Selected Wikka-sites with specific charsets
(special fonts may be needed to display these sites)
 


Translating UI strings


The source of Wikka is currently not optimized for UI strings translation, although we are progressively making the code i18n-ready. Most of the new actions and handlers announced on this site already contain a UI string section that can be easily modified. To translate UI strings, edit the constant values without removing the variables (strings introduced by a % sign, like: %d, %s etc.), for example:

original:
    define('ACTION_DELETE_LINK_TITLE','Delete %s');


modified:
    define('ACTION_DELETE_LINK_TITLE','Elimina %s');



Localized packages


Some user-contributed packages with a localized interface are available for downloading. Please note that these packages have not been tested by the Wikka Development Team (you should contact the authors for issues related to the use of these packages).

Chinese - 正體中文
AuthorCityPig
Code base1.1.6.0
CharsetUTF-8
Size612.62Kb
Last update2005-02-14
URLhttp://www.vixual.net/wikka/wikka.php?wakka=Archive2005021701
Downloadwikka_1160_vixual_20050214.tgz


Japanese - 日本語
AuthorShoTanaka
Code base1.1.6.0
CharsetUTF-8
Size624.84Kb
Last update2005-07-08
URLhttp://wiki.netabi.com/DownLoad
DownloadJapanese_Wikka_UTF8.zip



CategoryDevelopmentI18n
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki