PmWikiZhCn /

PmWiki PmWiki


  1. UTF-8/wikilib.d/”“wikilib.d/”“wiki.d/”
  2. “scripts/”“xlpage-utf-8.php”“scripts/”
  3. “/local/config.php”XLPage('zh-cn.utf8','PmWikiZhCn.XLPage');

Wiki


 XLPage() function 

PmWikiwiki( XLPage)

PmWikiCs Česky (Czech) ~ XLPage
PmWikiAr Arabic ~ XLPage
PmWikiBg Bulgarian ~ XLPage
PmWikiZhTw Chinese (Traditional) ~ XLPage
PmWikiZhCn Chinese simplified ~ XLPage
PmWikiDa Dansk ~ XLPage
PmWikiDe Deutsch ~ XLPage
PmWikiEn English ~ XLPage
PmWikiEs Español ~ XLPage
PmWikiEo Esperanto ~ XLPage
PmWikiFa Farsi (Persian) ~ XLPage
PmWikiFr Français ~ XLPage
PmWikiEl Greek ~ XLPage
PmWikiId Indonesian ~ XLPage
PmWikiIt Italiano ~ XLPage
PmWikiJa Japanese ~ XLPage
PmWikiKr Korean ~ XLPage
PmWikiLv Latviešu (Latvian) ~ XLPage
PmWikiLt Lietuvių (Lithuanian) ~ XLPage
PmWikiMk Macedonian ~ XLPage
PmWikiHu Magyar (Hungarian) ~ XLPage
PmWikiNl Nederlands ~ XLPage
PmWikiNo Norsk ~ XLPage
PmWikiPl Polski ~ XLPage
PmWikiPt Portuguese ~ XLPage
PmWikiPtBr Portuguese (Br) ~ XLPage
PmWikiRo Românã ~ XLPage
PmWikiRu Russian ~ XLPage
PmWikiSq Shqip ~ XLPage
PmWikiSk Slovenčina ~ XLPage
PmWikiSi Slovenšina ~ XLPage
PmWikiFi Suomi ~ XLPage
PmWikiSv Svenska ~ XLPage
PmWikiTr Türkçe ~ XLPage
PmWikiTa Tamil ~ XLPage
PmWikiUk Ukrainian ~ XLPage
PmWikiVi Việt ngữ ~ XLPage

pmichaud.com http://www.pmwiki.org/pub/pmwiki/i18n/ pmwiki.php wikilib.d/ iso-8859-1 (PmWiki)UTF-8?

config.php

XLPage('zh-cn.utf8','PmWikiZhCn.XLPage');

PmWikiZhCn.XLPage ('ZhCn')()

XLPage('fr','PmWikiFr.XLPageLocal');  # 
XLPage('fr','PmWikiFr.XLPage');       # 

Wiki Group?( Group Customizations?)FrFr.php local/

<?php if (!defined('PmWiki')) exit();
##change to French language
XLPage('fr','PmWikiFr.XLPage');

PmwikiFr.php PmwikiFr En.php

config.php XLPage

    
$xlpage = FmtPageName('$Group.XLPage', $pagename);
if (PageExists($xlpage)) XLPage($xlpage, $xlpage);
 XLPage 

Cookbook:MultiLanguage

 XLPage 
'phrase' => 'translated phrase',

"phrase" (denoted by $[phrase]) in PmWiki's $...Fmt variables, "translated phrase" PmWikiFr.XLPage)

'Search' => 'Rechercher',

"$[Search]" "Rechercher"

 Localization:XLPageTemplate PmWiki

 PmWiki main PmWiki site
"i18n" "internationalization" "i" "n" 18

""

WikiLinks""(umlauts)PmWiki

PmWikiXLPage( XLPageTemplate)

Notes

wikiconfig.php

$XLLangs = array('en'); group customization?

wiki()()(configration file) XLPage('es','PmWikiEs.XLPage');

config.php

   XLPage('es','PmWikiEs.XLPage');
   XLPage('fr','PmWikiFr.XLPage');
   XLPage('ru','PmWikiRu.XLPage');
   $XLLangs = array('en');

()(configuration file) $XLLangs = array('es')()

(parameter)

XLPageXLPage

    XLPage('fr', 'PmWikiFr.XLPage');
    XLPage('fr-ca', 'PmWikiFrCa.XLPage');

PmWikiFr.XLPage PmWikiFrCA.XLPage "" --

config.php $XLLangs variable ()

    $XLLangs = array('fr', 'en');

PmWiki 'fr' 'en' ()XLPage()

PmWiki

PmWiki