[pmwiki-users] Questions re Multilingual feature on PmWiki

Donald Z. Osborn dzosborn at gmail.com
Wed Mar 7 15:34:31 CST 2007


Thanks again. I set it up fine as a trial here:
http://www.panafril10n.org/wikidoc/pmwiki.php/CM-L10n/HomePage . 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).

However I have had a couple of difficulties:
1) (:selectlang:) seems to want to always be above the (:if ...:) command
(makes sense I guess) so the formatting is limited
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.

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.

Don



On 3/6/07, Hans <design5 at softflow.co.uk> wrote:
>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20070307/d57ffcb2/attachment.html 


More information about the pmwiki-users mailing list