On Tue, Feb 13, 2007 at 07:07:16AM +0100, sgp wrote:
> Hello, I'm new to PmWiki, and I'm hooked!
>
> How can I change Site.PageNotFound so that it shows a localized message
> with the multilanguage recipe? Multilanguage adds markup (:if userlang
> de:) etc. so I tried (2 lines below, all on one line from (:if to \\ )
> both lines:
>
> (:if (userlang de) && (! group Category) :)(:title Seite nicht
> gefunden:)"{$RequestedPage}" nicht gefunden.\\
> (:if (userlang en) && (! group Category) :)(:title Page not found
> :)"{$RequestedPage}" not found.\\
>
> But '''both''' lines are displayed at the same time, that is the if
> conditions are always true. What am I doing wrong? Thanks
Complex conditionals require 'expr' at the front, and parens
and other operators require spaces around them.
(:if expr ( userlang de ) && ( ! group Category ) :) ...
(:if expr ( userlang en ) && ( ! group Category ) :) ...
Pm
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users