Wiki source for WikkaLocalization


Show raw source

===== Wikka Wiki Localization =====

{{image class="left" alt="Wikka i18n picture" title="Wikka i18n example" url="images/i18n/wikka_japanese.jpg"}}>>**See also:**
~-List of [[WikkaSites sites powered by Wikka]] in 35 languages.
~-Current [[CategoryDevelopmentI18n i18n/l10n]] development pages. --- //See in particular://
~~-WikkaInternationalization
~~-HandlingUTF8
~-Test page for [[WikkaMultilanguageTestPage multilanguage support]]
>>::c:: The [[Docs: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==
""<ol>
<li><a href="http://wikkawiki.org/WikkaLocalization#hn_Using_different_charsets">Using different charsets</a></li>
<li><a href="http://wikkawiki.org/WikkaLocalization#hn_Translating_UI_strings">Translating UI strings</a></li>
<li><a href="http://wikkawiki.org/WikkaLocalization#hn_Localized_packages">Localized packages</a></li>
<ul>
<li><a href="http://wikkawiki.org/WikkaLocalization#hn_Chinese_-">Chinese - 正體中文</a></li>
<li><a href="http://wikkawiki.org/WikkaLocalization#hn_French_-_Franais">French - Français</a></li>
<li><a href="http://wikkawiki.org/WikkaLocalization#hn_Japanese_-">Japanese - 日本語</a></li>
<li><a href="http://wikkawiki.org/WikkaLocalization#hn_Spanish_-_Espaol">Spanish - Español</a></li>
</ul>
</ol>
""
===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;1)
<?php
$message = $this->GetRedirectMessage();
$user = $this->GetUser();
%%

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

**original:**
%%(php;13)
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
%%

**modified:**
%%(php;13)
<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:**
%%(php;1012)
// raw page handler
elseif ($this->method == "raw")
{
header("Content-type: text/plain");
print($this->Method($this->method));
}
%%

**modified**
%%(php;1012)
// 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==
{{colour hex="#666666" text="(special fonts may be needed to display these sites)"}}
- [[http://www.ctex.org/ Chinese (simplified) - 简体中文]] (UTF-8)
- [[http://www.hermesmedia.cz/wikki/ Czech - Česky]] (WINDOWS-1250)
- [[http://funtom.webz.cz/wiki/ Czech - Česky]] (ISO-8859-2)
- [[http://wiki.rubyonrails.hu/ Hungarian - Magyarul]] (ISO-8859-2)
- [[http://e-parlor.org/HomePage Japanese - 日本語]] (EUC-JP)
- [[http://plugd.net/KoreaTasteHongDae Korean - 한국]] (UTF-8)
- [[http://www.diabetycy.pl/ Polish - Polski]] (ISO-8859-2)
- [[http://www.siamdev.net/staff/notes/ Thai - ไทย]] (ISO-8859-1)
- [[http://wiki.omuz.net/ Turkish - Türkçe]] (ISO-8859-9)
- [[http://www.urduweb.org/wiki/UrduHome Urdu - اردو]] (UTF-8)
- [[http://nguyenthaivinh.free.fr/ Vietnamese - Tiếng Việt]] (UTF-8)
<<::c::

=== 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:**
%%(php)
define('ACTION_DELETE_LINK_TITLE','Delete %s');
%%

**modified:**
%%(php)
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 **{{color c="red" text="these distributions have not been tested"}}** by the [[CreditsPage Wikka Development Team]] (you should contact the authors for issues related to the use of these packages). Packages not using the [[Docs:WhatsNew latest stable release]] as a codebase may suffer from old **bugs** and **vulnerabilities** or lack the most recent **functionality**.<<::c::
==Chinese - 正體中文==
""<table>
<tr>
<th scope="row">Author</th><td>CityPig</td>
</tr>
<tr>
<th scope="row">Code base</th><td>1.1.6.0</td>
</tr>
<tr>
<th scope="row">Charset</th><td>UTF-8</td>
</tr>
<tr>
<th scope="row">Size</th><td>612.62Kb</td>
</tr>
<tr>
<th scope="row">Last update</th><td>2005-02-14</td>
</tr>
<tr>
<th scope="row">URL</th><td><a href="http://www.vixual.net/wikka/wikka.php?wakka=Archive2005021701">http://www.vixual.net/wikka/wikka.php?wakka=Archive2005021701</a></td>
</tr>
<tr>
<th scope="row">Download</th><td><a href="http://www.vixual.net/wikka/wikka.php?wakka=Archive2005021701/files.xml&action=download&file=wikka_1160_vixual_20050214.tgz">wikka_1160_vixual_20050214.tgz</a></td>
</tr>
</table>""

==French - Français==
""<table>
<tr>
<th scope="row">Author</th><td><a href="http://r0ro.free.fr/">r0ro</a></td>
</tr>
<tr>
<th scope="row">Code base</th><td>1.1.6.3</td>
</tr>
<tr>
<th scope="row">Charset</th><td>ISO-8859-1</td>
</tr>
<tr>
<th scope="row">Size</th><td>703 KB</td>
</tr>
<tr>
<th scope="row">Last update</th><td>2007-09-28</td>
</tr>
<tr>
<th scope="row">URL</th><td><a href="http://wikkawikifr.free.fr/">http://wikkawikifr.free.fr/</a></td>
</tr>
<tr>
<th scope="row">Download</th><td><a href="http://wikkawikifr.free.fr/dl/Wikka-1.1.6.3-FR.tar.gz">Wikka-1.1.6.3-FR.tar.gz</a></td>
</tr>
</table>""

==Japanese - 日本語 ==
""<table>
<tr>
<th scope="row">Author</th><td>ShoTanaka</td>
</tr>
<tr>
<th scope="row">Code base</th><td>1.1.6.0</td>
</tr>
<tr>
<th scope="row">Charset</th><td>UTF-8</td>
</tr>
<tr>
<th scope="row">Size</th><td>624.84Kb</td>
</tr>
<tr>
<th scope="row">Last update</th><td>2005-07-08</td>
</tr>
<tr>
<th scope="row">URL</th><td><a href="http://wiki.netabi.com/DownLoad">http://wiki.netabi.com/DownLoad</a></td>
</tr>
<tr>
<th scope="row">Download</th><td><a href="http://wiki.netabi.com/DownLoad/files.xml?action=download&file=Japanese_Wikka_UTF8.zip">Japanese_Wikka_UTF8.zip</a></td>
</tr>
</table>""
""<table>
<tr>
<th scope="row">Author</th><td>h_b</td>
</tr>
<tr>
<th scope="row">Code base</th><td>1.1.6.0</td>
</tr>
<tr>
<th scope="row">Charset</th><td>UTF-8</td>
</tr>
<tr>
<th scope="row">Size</th><td>525.0 KB</td>
</tr>
<tr>
<th scope="row">Last update</th><td>2008-02-02</td>
</tr>
<tr>
<th scope="row">URL</th><td><a href="https://sourceforge.jp/projects/localizehelper/files/">Localize Wiki</a></td>
</tr>
<tr>
<th scope="row">Download</th><td><a href="http://prdownloads.sourceforge.jp/localizehelper/29160/wikka-1.1.6.0-ja.tar.gz">wikka-1.1.6.0-ja.tar.gz</a></td>
</tr>
</table>""

==Spanish - Español==
""<table>
<tr>
<th scope="row">Author</th><td>Antonio Martín</td>
</tr>
<tr>
<th scope="row">Code base</th><td>1.1.6.2</td>
</tr>
<tr>
<th scope="row">Charset</th><td>UTF-8</td>
</tr>
<tr>
<th scope="row">Size</th><td>793 KB</td>
</tr>
<tr>
<th scope="row">Last update</th><td>2006-10-30</td>
</tr>
<tr>
<th scope="row">URL</th><td><a href="http://www.lenguao.com/weblog/index.php/2006/10/30/traduccion-de-wikka-al-castellano/">http://www.lenguao.com/weblog/index.php/2006/10/30/traduccion-de-wikka-al-castellano/</a></td>
</tr>
<tr>
<th scope="row">Download</th><td><a href="http://www.lenguao.com/xDownload/download.php?id=012">WikkaES.zip</a></td>
</tr>
</table>""


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