Revision [15569]
This is an old revision of WikkaLocalization made by LenguaoWiki on 2006-10-30 12:05:21.
Wikka Wiki Localization
See also:
- List of WikkaSites sites powered by Wikka in 35 languages.
- Current CategoryDevelopmentI18n i18n/l10n development pages.
See in particular:
- Test page for WikkaMultilanguageTestPage multilanguage support
The WikkaReleaseNotes latest Wikka release supports only English as a user interface language. WikkaInternationalization Interface localization in different languages and HandlingUTF8 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
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:
- <?php
- $message = $this->GetRedirectMessage();
- $user = $this->GetUser();
modified:
- <?php
- $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")
- {
- print($this->Method($this->method));
- }
modified
- // raw page handler
- elseif ($this->method == "raw")
- {
- print($this->Method($this->method));
- }
Selected Wikka-sites with specific charsets
(special fonts may be needed to display these sites)- Chinese (simplified) - 简体中文 (UTF-8)
- Czech - Česky (WINDOWS-1250)
- Czech - Česky (ISO-8859-2)
- Hungarian - Magyarul (ISO-8859-2)
- Japanese - 日本語 (EUC-JP)
- Korean - 한국 (UTF-8)
- Polish - Polski (ISO-8859-2)
- Thai - ไทย (ISO-8859-1)
- Turkish - Türkçe (ISO-8859-9)
- Urdu - اردو (UTF-8)
- Vietnamese - Tiếng Việt (UTF-8)
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 UnderDevelopment 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:
modified:
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 - 正體中文
Author | CityPig |
---|---|
Code base | 1.1.6.0 |
Charset | UTF-8 |
Size | 612.62Kb |
Last update | 2005-02-14 |
URL | http://www.vixual.net/wikka/wikka.php?wakka=Archive2005021701 |
Download | wikka_1160_vixual_20050214.tgz |
Japanese - 日本語
Author | ShoTanaka |
---|---|
Code base | 1.1.6.0 |
Charset | UTF-8 |
Size | 624.84Kb |
Last update | 2005-07-08 |
URL | http://wiki.netabi.com/DownLoad |
Download | Japanese_Wikka_UTF8.zip |
Spanish
Author | Antonio Martín |
---|---|
Code base | 1.1.6.2 |
Charset | UTF-8 |
Size | 793 KB |
Last update | 2006-10-30 |
URL | http://www.lenguao.com/weblog/index.php/2006/10/30/traduccion-de-wikka-al-castellano/ |
Download | WikkaES.zip |
CategoryDevelopmentI18n