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 is a hack allowing to use UTF-8 as a default charset.
You can test a modified version of Wikka 1.1.6.2 with this hack at: http://int.wikkawiki.org/

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 distributions with a localized interface are available for downloading.
Disclaimer
Please note that these distributions have not been tested by the Wikka Development Team (you should contact the authors for issues related to the use of these packages). Packages not using the latest stable release as a codebase may suffer from old bugs and vulnerabilities or lack the most recent functionality.
 

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


French - Français
Authorr0ro
Code base1.1.6.3
CharsetISO-8859-1
Size703 KB
Last update2007-09-28
URLhttp://wikkawikifr.free.fr/
DownloadWikka-1.1.6.3-FR.tar.gz


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

Authorh_b
Code base1.1.6.0
CharsetUTF-8
Size525.0 KB
Last update2008-02-02
URLLocalize Wiki
Downloadwikka-1.1.6.0-ja.tar.gz


Spanish - Español
AuthorAntonio Martín
Code base1.1.6.2
CharsetUTF-8
Size793 KB
Last update2006-10-30
URLhttp://www.lenguao.com/weblog/index.php/2006/10/30/traduccion-de-wikka-al-castellano/
DownloadWikkaES.zip




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