PmWikiZhCn

Pingree's Potato Patch
Studying the Economics of Detroit

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)

? 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