[pmwiki-users] Language: PmWiki group configuration for dummies - II

Donald Z. Osborn dzosborn at gmail.com
Fri Nov 10 19:53:52 CST 2006


I'm finally getting to test how to set up separate languages for wikigroups.
And I'm stirring up more trouble.

Per instructions last month and the PmWiki page on
internationalization -
http://pmwiki.org/wiki/PmWiki/Internationalizations
- I have downloading the
i18n.tgz<http://www.pmichaud.com/pub/pmwiki/i18n.tgz>into a folder
i18n. Per instructions as I understood them I then put this
folder in the directory with the *pmwiki.php* installation.This may not have
been the correct procedure since apparently some or all of the files
actually should go to the wikilib.d folder (if so can I manually translfer
them?). But I will continue...

Next, on the test wikigroup config I've been adding the script suggested
below, and various permutations thereof, but getting consistently one of 2
results:
1) English, not French
2) (When removing the $Skin='pmwiki' thinking that having both it and
$Skin='french' may be a problem A retrurn that looks like this: PmWiki can't
process your request
?unable to find skin from list french
We are sorry for any inconvenience.

#2 makes sense, since I did not put a file in the pub/skins/ named french.
Is that correct (is there such a skin?)

So, I tried adding this to the main config.php file to help the wikigroup
find the French:
$xlpage = FmtPageName('$Group.XLPage', $pagename);
if (PageExists($xlpage)) XLPage($xlpage, $xlpage);

But I still get the same results.

Presumably I went wrong in the first step. Should I transfer the contents of
the i18n folder into the wikilib-d folder?

TIA...

Don




On 10/8/06, Crisses <crisses at kinhost.org> wrote:
>
>
> On Oct 7, 2006, at 11:15 PM, Donald Z. Osborn wrote:
>
> ...
> > * different language settings (many English, many French, a few
> > Portuguese. I'll get to the language later, I think, but maybe
> > those commands should be done at the same time; language will be
> > set once and for all for each case, in principle
>
> Skins & Languages:
> http://pmwiki.org/wiki/PmWiki/Internationalizations tells you how to
> set up the language translations
>
> Thus you can make a local/GroupName.php
>
> <?php if (!defined('PmWiki')) exit();
>
> //change to French language
> XLPage('fr','PmWikiFr.XLPage');
>
> // Set the skin for the group
> $Skin = 'french';
>
> Since this file is only read when loading a page in a specific group,
> it sets the skin for any pages viewed in that group.
>
> ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20061110/b7e265dd/attachment.html 


More information about the pmwiki-users mailing list