[pmwiki-users] need expert review - multilanguage recipe change

Hans design5 at softflow.co.uk
Thu Jul 16 09:39:54 CDT 2009


Thursday, July 16, 2009, 10:04:44 AM, SteP wrote:

> I would like to add a more flexible approach, but I'm not sure
> which one, so I'm open to suggestions. 
> One idea could be to match a set-PTV pattern, such as (:xyTitle:The
> xy title:). One advantage of PTV vs. 
> (:if:) is that it's easier to mix with other conditional markup. Thoughts / ideas?

I cannot help with multilanguage.php.
How about using PTVs to hold the respective titles,
something like

(:enTitle: An English Page Title:)
(:deTitle: Eine deutsche Überschrift:)
(:if userlang en:)(:title {$:enTitle}:)
(:if userlang de:)(:title {$:deTitle}:)
(:ifend:)


  ~Hans




More information about the pmwiki-users mailing list