[pmwiki-users] Undo XLPage Selection for a Group
Patrick R. Michaud
pmichaud at pobox.com
Mon Dec 12 09:48:02 CST 2005
On Mon, Dec 12, 2005 at 04:11:17PM +0100, Thomas Lederer wrote:
> Hello,
>
> my first Email to this group. Aplogoies for any mistakes. I did however
> search the archives for some time.
>
> Here ist the question:
> I run a pmwiki, and configured it to have the i18n in German. Now i
> would like to display one group in English, so i have to "undo" the
> XLPage config somehow.
>
> I tried "Group Config" as in "overwrite" the XLPage with a new, but that
> did not work.
>
> So basically my config.php has
> > XLPage ('de','PmWikiDe.XLPage');
>
> and the Newgroup.php should have
> > XLPage ('de','PmWiki.XLPage');
>
> Or any other way to get the job done. I don't matter much as to how it
> is done :)
In your local/config.php, change your call to XLPage to be:
$group = FmtPageName('$Group', $pagename);
if ($group != 'Newgroup') XLPage('de', 'PmWikiDe.XLPage');
This will load the translation file for all groups except Newgroup
(and you don't need a call to XLPage in Newgroup.php).
Pm
More information about the pmwiki-users
mailing list