* Frederic Peters wrote [2005-06-05 21:42:55 +0200]: > Damjan wrote: > > > What's the quixote idiom for writing translatable applications? > I don't know about Quixote idioms but I'm successfully using gettext > with PTL. I'm only using one language per server so there is nothing > particular to do, I have done the same in the past as well, an english/french site (wasn't, at the time, forced down the UTF hole at the time so the recent discussion is of interest). I don't recall anything Quixote specific that got in the way of using gettext, except I seem to recall loading order was important (my recollection may be faulty) - if you have any troubles try installing gettext before enable_ptl() and vice versa. My scheme used both url design and cookies to serve up translated content i.e. /doc/1/en doc/1/fr would point to different translations of the same document. A preferred language was set in a cookie for the user by selecting English or Francais off a splash page and/or a 'view document in XYZ' other language link available on documents for which translations existed. It all worked rather nicely. I've parked that code for a while until I have the energy to sort out UTF and support all languages, not just those that fit into the default character set.