[Pmwiki-users] pmwiki localization ?

Patrick R. Michaud pmichaud
Tue Aug 5 12:49:55 CDT 2003


On Tue, Aug 05, 2003 at 07:25:06PM +0200, Carlo Strozzi wrote:
> > The creation of the per-group pages with the [[include:]] text could 
> > even be easily automated by the i18n-it.php and other i18n files.
> 
> Can you show me an example ? To me it sounds like te best way to go.

Add something like the following to local.php (or local-it.php):

  $rc=FmtPageName('$Group.RecentChanges',$pagename);
  if (PageExists($rc)) {
    $rt=FmtPageName('$Group.ModificheRecenti',$pagename);
    if (!PageExists($rt))
      WritePage($rt,array('text'=>"[[include:$rc]]"));
  }

This checks to see if a RecentChanges page exists for the group,
if one does, then it creates the translated page if needed.

Pm



More information about the pmwiki-users mailing list