Mike (2009-12-27 12:30): > Hello everyone, > > I am using multilanguage.php on my website to offer it in three > languages, working fine. > > Now I'm adding additional features to the page, like e.g. a contact form > (which I took from emailform). > > That way I came across the internationalization options around XLPage > etc. Obviously I'd like all the strings in emailform to be translated to > the respective language the user has chosen. > > I.e., I need to make XLPage work together with multilanguage. > > Is this documented anywhere?
It is described in the cookbook pages of both multilanguage recipes. Excerpts follow. 1. http://pmwiki.org/wiki/Cookbook/MultiLanguage If you use translation pages (see: Internationalizations) you probably want to switch the XLPage definition too. To do this, use an if statement in your local configuration (config.php): if ($_COOKIE['userlang'] == 'XX') { XLPage('XX','PmWikiXX.XLPageCookbook'); XLPage('XX','PmWikiXX.XLPage'); XLPage('XX','PmWikiXX.XLPageLocal'); } Use PmWikiXX.XLPageLocal for your own phrases 2. http://pmwiki.org/wiki/Cookbook/MultiLanguageViews For changing the wiki interface language according to the language view add to conflig.php something like this, after including the langviews.php script: if ($_COOKIE['userlang'] == 'de') { XLPage('de','Site.XLDePageCookbook'); XLPage('de','Site.XLDeLocalPage'); XLPage('de','Site.XLDePage'); } etc. for other language's XL pages -- -- Rogutės Sparnuotos _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
