Pm Wiki supports internationalization of web pages, allowing accented characters to appear in page names and almost complete customization of Pm Wiki's prompts. Most customization is provided via the XLPage() function in Pm Wiki, which loads a set of translation variables from a wiki page (typically named XLPage, but it can be named anything you wish).
Loading Translation Pages
Pages for many languages such as French, German, Dutch, and Spanish have already been created and maintained at the pmichaud.com site. You can download an archive of these translations from http://www.pmichaud.com/pub/pmwiki/i18n.tgz. Simply unpack the archive into the directory containing your pmwiki.php installation. The archive contains a number of page files that are placed in your wikilib.d/ directory, and some special scripts for translations that use a character set other than iso-8859-1 (Pm Wiki's default).
Once the translation pages are installed, you enable a language by adding a call to XLPage() in your config.php file. For example, to select French language prompts, one would specify
XLPage('fr','PmWikiFr.XLPage'); # from i18n.tgz XLPage('fr','PmWikiFr.XLPageLocal'); # my local translations
<?php if (!defined('PmWiki')) exit(); ##change to French language XLPage('fr','PmWikiFr.XLPage');
An alternative to the above would be to add to config.php the following, which tests if there is an XLPage in a group, and if it finds one it gets loaded:
$xlpage = FmtPageName('$Group.XLPage', $pagename); if (PageExists($xlpage)) XLPage($xlpage, $xlpage);
Creating New Translations
If language pages don't exist for your desired language, it's easy to create one! An XLPage translation file simply contains lines of the form
'phrase' => 'translated phrase',
...) in Pm Wiki's $...Fmt variables, and "translated phrase" is what should be printed in your particular language. For example, the line (in
'SearchWiki' => 'Rechercher',
If you create new versions of Pm Wiki pages in other languages, please consider adding them to the main PmWiki site so that they can be made available to others in the i18n.tgz archive!
Tools for Pm Wiki Localization
You can help to localize Pm Wiki in your language in the original site:<< Uploads administration | DocumentationIndex | Wiki Farms >>