[pmwiki-users] Questions re Multilingual feature on PmWiki

Hans design5 at softflow.co.uk
Tue Mar 6 14:22:45 CST 2007


Tuesday, March 6, 2007, 7:16:36 PM, Donald wrote:

> 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 ?
> 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 ?

I don't know. I have not tested this.

> 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.

For fun I just installed it. Well, be prepared that it may not be as
simple as that. I copied a few XLPage files from various languages
into wikilib.d, and created in config.php conditional switches for
these pages.

a) I had to instal utf-8 support with
include_once("$FarmD/scripts/xlpage-utf-8.php");
before loading multilanguage.php

b) After some frustration I found that (:selectlang:) will only
display links to switch to languages if there were corresponding
(:if userlang xx:) conditionals in the page content.
Now this may be a very useful feature, as a user will not be
confronted with  a switch option when there is no alternative content.

c) Placing (:selectlang:) in the sidebar worked fine.

d) When switching the language the content switched immediately, but
it needed a further page refresh to have the interface commands
appearing in the new language.

Overall quite a good result I think.
With some national flags as gifs for the links in the sidebar or
header it may look quite acceptable.

As I said I have not experimented in having this loaded in Group.php
files etc.
I am not an expert with this recipe, just a  novice.


Hans




More information about the pmwiki-users mailing list