[pmwiki-users] Best way to set wiki interface language for different users?

Harald C. haraldc at gmx.net
Sat Jan 23 09:50:24 CST 2010

Rogutės Sparnuotos schrieb am / wrote on 22.01.2010 22:18:

> I guess it depends on the authentication mechanism you are using... Is it
> AuthUser? If it is, you could skim through PmWiki/AuthUser documentation
> and notice this example:
>      include_once("$FarmD/scripts/authuser.php");
>      $Author = $AuthId; # after include_once()
> Then visit
>    http://pmwiki.org/wiki/PmWiki/BasicVariables#AuthId
> to see that $AuthId is indeed what you want.
> if ($AuthId == 'harald') {
>    XLPage('de','PmWikiDe.XLPage');
> }
> Hope it works!

Hi Rogutės,
and thanks for your suggestions.
I do use AuthUser and I had seen those points in the documentation. 
Problem was that as a newbie I had difficulties to put the puzzle together.


> Harald C. (2010-01-22 01:54):
>> Hello,
>> I want to create a multilingual site using MultiLanguageViews, and I
>> have editors from different countries. How can I set the wiki interface
>> language via the XLPage for each editor?
>> MultiLanguageViews proposes to do it according to the language view
>> chosen by the user (editor), but I think it won't be very useful to
>> change the language each time if e.g. a French person edits a page, then
>> looks at the result in e.g. first French and then in English.
>> A fixed setting for all the editors in config.php is not desired either.
>> A conditional setting according to the editor (or a user group) would be
>> better, but where and how?
>> Thanks for tips.

More information about the pmwiki-users mailing list