Extension:Ascii Translit

When article title contains non-ascii characters, they apear in URL as urlencoded, (i.e. Těžiště (centroid in Czech) is T%C4%9B%C5%BEi%C5%A1t%C4%9B), which is not so easy to read. AsciiTranslitExtension allows you to use Ascii aproximation (or so called transliteration) in URL, and nonASCII in titles (at the same time). So article Těžiště will be Teziste in URL.

Hack is done by adding coresponding #redirect pages, and translate some types of links.

'Redirected from' message can be suppresed.

Installation

 * 1) Untar AsciiTranslitExtension.php to /extensions/ directory
 * 2) Add this to LocalSettings.php:

require_once( "extensions/AsciiTranslitExtension.php");

Configuration

 * $wgAsciiTranslitExtensionHideRedir -- boolean; true -- suppres 'Redirected from *' message for transliterated pages (default: false).
 * $wgAsciiTranslitExtensionHack -- boolean; True lead to not to use iconv for transliteration, when it does not work. It use str_replace, and it translits only few UTF-8 characters (now only Latin characters are supported) (can be easily extended) (default: false).
 * $wgAsciiTranslitExtensionNS -- boolean; translit also spacename names (default: true).

Note: set these variables before 'require_once '.

Bugs

 * When added to non empty wiki, redirections to existining pages are not created.
 * When there is collision (two pages have the same transliteration), links are generated incorrectly.
 * Only main namespace is transliterated.
 * Probably more, tell me...

Who's using it?
Please add your wiki here! Add it to the top, and feel free to add a link to your favorite article or two.


 * wiki.maxthon.cz - simple modified to using Czech chars
 * Maxthon 2.x Guide
 * Maxthon 1.x Navigation menu: File
 * WordPress Türkiye
 * Sürüm yükseltme
 * Türkçe dil dosyası ve kurulumu
 * Windows üzerinde WordPress çalıştırmak