[pmwiki-users] Switching languages
claude at montpetit.net
claude at montpetit.net
Thu Jan 27 15:44:07 CST 2005
>
> I think I found my own answer. Adding this to my config.php did the job:
Argh!... I got confused with all my browsers tabs openned ... I was
using pmwiki.org instead of my site, no wonder it worked.
So I still need a hint on this one. Sorry for the noise.
> if ($Group == 'PmWikiFr') {
> XLPage('fr','PmWikiFr.XLPage');
> }else {
> XLPage('en','PmWikiEn.XLPage');
> }
>
> This could be geralized but I get the idea. It allows me to set two
> branches on my site:
>
> http://example.com/en
> http://example.com/fr
>
> One group per language I want to support.
>
> If this is not a good way to do this, please let me know.
>
> Claude.
>
>
>>
>> I want to replicate the functionality that is on pmwiki.org where the
>> wiki displayed strings are changed when going to different language
>> groups. For example, if I go to
>>
>> http://www.pmwiki.org/wiki/PmWikiFr/PmWikiFr
>>
>> I get French UI, and if I go to
>>
>> http://www.pmwiki.org/wiki/PmWikiEn/PmWikiEn
>>
>> I get the English strings.
>>
>> I have installed the i18n support on my installation. I was able to
>> force the French version by modifying my config.php file and adding
>>
>> XLPage('fr','PmWikiFr.XLPage');
>>
>> But then the page strings were always in French, never going back to
>> english.
>>
>> Just got into the pmwiki world and I am impressed by what I see there.
>>
>> I looked in all documentation pages I could find related to this
>> subject but did not get an answer to this probably obvious question.
>> So any helps would be appreciated on this subject.
>>
>> Thanks,
>
>
More information about the pmwiki-users
mailing list