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('fr','PmWikiFr.XLPage');
PmWikiFr.XLPage ('fr')()
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
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
""
WikiLinks""(umlauts)PmWiki
PmWikiXLPage( XLPageTemplate)
- 'Locale' => 'deu', <- WindowsMSDN List of locale identifiers
- 'Locale' => 'de_DE', <- Linux
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