Wikka Wiki Localization

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
- Using different charsets
- Translating UI strings
- 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:
<?php
$message = $this->GetRedirectMessage();
$user = $this->GetUser();
modified:
<?php
header('Content-type: text/html; charset=UTF-8');
$message = $this->GetRedirectMessage();
$user = $this->GetUser();
original:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
modified:
<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:
// raw page handler
elseif ($this->method == "raw")
{
header("Content-type: text/plain");
print($this->
Method($this->
method));
}
modified
// raw page handler
elseif ($this->method == "raw")
{
header("Content-type: text/plain; charset=UTF-8");
print($this->
Method($this->
method));
}
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 - 正體中文
French - Français
Japanese - 日本語
Spanish - Español
CategoryDevelopmentI18n