[pmwiki-users] multilanguage redesign (was: PageNotFound translation)
Patrick R. Michaud
pmichaud at pobox.com
Tue Feb 13 19:32:37 CST 2007
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
More information about the pmwiki-users
mailing list