Thanks Hans,<br><br>So, one set of questions and a thought:<br><br>1a)&nbsp; 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> &lt;<a href="mailto:design5@softflow.co.uk">design5@softflow.co.uk</a>&gt; 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>&gt; If I understand correctly (my reach not infrequently exceeds my grasp in<br>&gt; some of these things), the multilanguage.php file lets the user&#39;s system<br>
&gt; preferences determine the language of interface (per<br>&gt; <a href="http://www.pmwiki.org/wiki/Cookbook/MultiLanguage">http://www.pmwiki.org/wiki/Cookbook/MultiLanguage</a> ). This is apparently<br>&gt; site-wide ... or can it be only in the wikigroups so defined by adding
<br>&gt; include_once(&#39;cookbook/multilanguage.php&#39;);<br>&gt; in the relevant group local/*.php files?<br><br>&gt; If one adds the abovementioned line in the config.php file, that would<br>&gt; surely activate multilanguage in all groups. What happens if there are
<br>&gt; XLpage language preferences already defined for specific wikigroups? Which<br>&gt; 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&#39;s<br>choice with multilanguage.php you need to provide switch definitions<br>
for the XLPages, as briefly mentioned on the recipe&#39;s cookbook page:<br><br>if ($_COOKIE[&#39;userlang&#39;] == &#39;de&#39;) {<br>XLPage(&#39;de&#39;,&#39;PmWikiDe.XLPageCookbook&#39;);<br>XLPage(&#39;de&#39;,&#39;PmWikiDe.XLPage
&#39;);<br>XLPage(&#39;de&#39;,&#39;PmWikiDe.XLPageLocal&#39;);<br>}<br>if ($_COOKIE[&#39;userlang&#39;] == &#39;it&#39;) {<br>XLPage(&#39;it&#39;,&#39;PmWikiIt.XLPageCookbook&#39;);<br>XLPage(&#39;it&#39;,&#39;PmWikiIt.XLPage
&#39;);<br>XLPage(&#39;it&#39;,&#39;PmWikiIt.XLPageLocal&#39;);<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>&lt;?php if (!defined(&#39;PmWiki&#39;)) exit();<br># Group.php file<br><br># user languages for this group<br>
$DefaultLanguages = array(&#39;en&#39;,&#39;it&#39;,&#39;de&#39;);<br>include_once(&quot;$FarmD/cookbook/multilanguages.php&quot;);<br><br><br>Hans<br><br></blockquote></div><br>