[pmwiki-users] How to process localisations when defining Markup?

Patrick R. Michaud pmichaud at pobox.com
Thu Aug 4 18:34:38 CDT 2005


On Wed, Aug 03, 2005 at 05:47:42PM +0200, Mateusz Czapli?ski wrote:
> Hi,
> I've got a problem, trying to write a certain Cookbook-recipe.
> I wanted to do that:
> 
>  Markup( ..., ...,
>   'aaa' . FmtPageName( '$[Category]', ... ) . 'aaa',
>   ... );
> 
> where certainly ... and 'aaa' mean something; however, the 
> localisation-substitution by FmtPageName at this point seems not to work 
> yet. How can I still achieve it?

The problem is going to be that the localization of "Category"
hasn't been loaded at the time the third argument to Markup() is
being built.  If XLPage() is done before the above Markup(), then 
any translation should be available.

Pm




More information about the pmwiki-users mailing list