Thanks again. I set it up fine as a trial here: <a href="http://www.panafril10n.org/wikidoc/pmwiki.php/CM-L10n/HomePage">http://www.panafril10n.org/wikidoc/pmwiki.php/CM-L10n/HomePage</a> . It is kind of funky the delay / need to reload to get the commands in synch. Can imagine a new user switching back and forth on a page and absolutely not getting why the commands and text are different).
<br><br>However I have had a couple of difficulties:<br>1) (:selectlang:) seems to want to always be above the (:if ...:) command (makes sense I guess) so the formatting is limited<br>2) Found out that (:selectlang:) only presents the language options when there is an (:if ...:) language command in the text. (Yes it works between the sidebar and the main page). I had hoped to use it to permit the users the option of changing the command interface even when there was no text in more than one lang.
<br><br>Is there any script for the config / group.php files that lets the site automatically detect & respond to the user's system default? Here the main object would be to give them the commands in their presumed language of preference without a need to choose.
<br><br>Don<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, 7:16:36 PM, Donald wrote:<br><br>> 1a) if I set up a multilingual interface (commands) in the config.php, then<br>> that will hold for all wikigroups that do not have a specific language<br>
> setting ?<br>> 1b) if I set up a multilingual interface (commands) for 4 languages in<br>> config.php, and one for only 2 languages on two specific wikigroups, will<br>> the 2-language setting prevail over the 4 language one in those wikigroups ?
<br><br>I don't know. I have not tested this.<br><br>> 2) I think I will have to examine the multilingual content options. It<br>> appears too simple: IOW, install multilanguage.php in the cookbook<br>> directory, a line in
config.php and then the (: :) commands with the text in<br>> the wikipage.<br><br>For fun I just installed it. Well, be prepared that it may not be as<br>simple as that. I copied a few XLPage files from various languages
<br>into wikilib.d, and created in config.php conditional switches for<br>these pages.<br><br>a) I had to instal utf-8 support with<br>include_once("$FarmD/scripts/xlpage-utf-8.php");<br>before loading multilanguage.php
<br><br>b) After some frustration I found that (:selectlang:) will only<br>display links to switch to languages if there were corresponding<br>(:if userlang xx:) conditionals in the page content.<br>Now this may be a very useful feature, as a user will not be
<br>confronted with a switch option when there is no alternative content.<br><br>c) Placing (:selectlang:) in the sidebar worked fine.<br><br>d) When switching the language the content switched immediately, but<br>it needed a further page refresh to have the interface commands
<br>appearing in the new language.<br><br>Overall quite a good result I think.<br>With some national flags as gifs for the links in the sidebar or<br>header it may look quite acceptable.<br><br>As I said I have not experimented in having this loaded in
Group.php<br>files etc.<br>I am not an expert with this recipe, just a novice.<br><br><br>Hans<br><br></blockquote></div><br>