On Wed, Feb 14, 2007 at 12:43:08AM +0100, sgp wrote:
> I often wish I had a way to select from an inline 
> dictionary, something like (made-up syntax):
> 
> [hello|hola|hallo][en|es|de]{$userlang}
> 
> meaning, use 'hello' when userlang==en, 'hola' when userlang==es, 
> 'hallo' when userlang==de this would come very handy when 
> translating i.e., link text [http://| linktext] in a concise form

Hmmm, very interesting.  Maybe a variation of the $[...] syntax?

    $[en:hello|es:hola|de:hallo|hello]

This would say to display 'hello', 'hola', or 'hallo' depending
on the current userlang, otherwise it uses the default XLPage
translation of 'hello'.  Or something like that.

Pm


_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to