Thanks Hans,<br><br>So, one set of questions and a thought:<br><br>1a) if I set up a multilingual interface (commands) in the config.php, then that will hold for all wikigroups that do not have a specific language setting ?
<br>1b) if I set up a multilingual interface (commands) for 4 languages in config.php, and one for only 2 languages on two specific wikigroups, will the 2-language setting prevail over the 4 language one in those wikigroups ?
<br><br>2) I think I will have to examine the multilingual content options. It appears too simple: IOW, install multilanguage.php in the cookbook directory, a line in config.php and then the (: :) commands with the text in the wikipage.
<br><br>Don<br><br><br><br><br><div><span class="gmail_quote">On 3/6/07, <b class="gmail_sendername">Hans</b> <<a href="mailto:design5@softflow.co.uk">design5@softflow.co.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Tuesday, March 6, 2007, 1:31:08 PM, Donald wrote:<br><br>> If I understand correctly (my reach not infrequently exceeds my grasp in<br>> some of these things), the multilanguage.php file lets the user's system<br>
> preferences determine the language of interface (per<br>> <a href="http://www.pmwiki.org/wiki/Cookbook/MultiLanguage">http://www.pmwiki.org/wiki/Cookbook/MultiLanguage</a> ). This is apparently<br>> site-wide ... or can it be only in the wikigroups so defined by adding
<br>> include_once('cookbook/multilanguage.php');<br>> in the relevant group local/*.php files?<br><br>> If one adds the abovementioned line in the config.php file, that would<br>> surely activate multilanguage in all groups. What happens if there are
<br>> XLpage language preferences already defined for specific wikigroups? Which<br>> prevails?<br><br>multilanguage.php will allow you to create pages with alternative<br>language content inside the same page, and allows users to chose their
<br>preferred language, so they will see th epage content in their<br>language. A cookie will hold the users language choice.<br><br>The recipe will not change the language of the PmWiki interface, as<br>the terms displayed for the action links, button labels etc.
<br>These can be displayed in different languages using the XL function<br>and the respective XL pages. In order for these to switch at user's<br>choice with multilanguage.php you need to provide switch definitions<br>
for the XLPages, as briefly mentioned on the recipe's cookbook page:<br><br>if ($_COOKIE['userlang'] == 'de') {<br>XLPage('de','PmWikiDe.XLPageCookbook');<br>XLPage('de','PmWikiDe.XLPage
');<br>XLPage('de','PmWikiDe.XLPageLocal');<br>}<br>if ($_COOKIE['userlang'] == 'it') {<br>XLPage('it','PmWikiIt.XLPageCookbook');<br>XLPage('it','PmWikiIt.XLPage
');<br>XLPage('it','PmWikiIt.XLPageLocal');<br>}<br>etc.<br><br>I think it should be okay to install the recipe for selected groups<br>only in their local/GroupName.php files. There you can also define
<br>which languages a user may select from, using the DefaultLanguages<br>array, as the example below:<br><br><?php if (!defined('PmWiki')) exit();<br># Group.php file<br><br># user languages for this group<br>
$DefaultLanguages = array('en','it','de');<br>include_once("$FarmD/cookbook/multilanguages.php");<br><br><br>Hans<br><br></blockquote></div><br>