gizli schrieb: > On Oct 13, 6:43 pm, gizli <[email protected]> wrote: >> Ok. By referring tohttp://docs.turbogears.org/2.0/RoughDocs/1.1Migration, >> I was able to adapt the code you just provided to TG2. But the >> function that I found in tg.i18n (get_lang) still does not give me the >> "chosen" language for the page to render. It gives all of the accepted >> languages sent by the browser in an array (i.e. same thing as >> tg.locale).
Just pick the first one you actually support? > This basically means, I need to write my own function to decide which > js file to send depending on the order of accepted languages sent by > the browser and hope that I have all translated strings so the > independent lookups do not result in different languages mashed > together on the same page! Well, that's the way it is with gettext anyway. If you don't have a translataion, you'll get the default language. Chris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

