a new version of the MultiLanguage recipe is available.

Change log:

1.1 - 05.07.2007
        Added new langinpage conditional.
        Added {$userlang} page variable (suggested by noskule).
        Fixed a problem with setting userlang cookie (fixed by SteP).


New documentation:

The page variable {$userlang} holds the currently selected language (eg.  
"en").

A new "langinpage" conditional is available, to test whether in a  
particular page a particular language is defined or not. The conditional  
takes two parameters, the language and the pagename.

eg.
(:if langinpage en MyGroup.MyPage:)
tests if in the page MyGroup.MyPage is defined the language 'en'.

eg.
(:pagelist if="langinpage {$userlang} {=$FullName}":)
lists all the pages in which is defined the language currently selected by  
the user.

blues


_______________________________________________
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to