Thanks Teru, I just tried again using the version below on Ubunutu 9.04 and Python 2.5.4.
web2py Shell Version 1.65.11 (2009-08-04 16:42:46) In[0]: T.force('fr-fr') Out[0]: ['fr-fr'] In[1]: T('Hello World').xml() Out[1]: 'Bonjour Monde' In[2]: T.force('en') Out[2]: ['en'] In[3]: T('Hello World').xml() Out[3]: 'Hello World' In[4]: T.force('fr-fr') Out[4]: ['fr-fr'] In[5]: T('Hello World').xml() Out[5]: 'Hello World' Same result. I loose the translation. On Aug 16, 12:56 am, suiato <homm...@gmail.com> wrote: > Hi HC > > 2009/8/16 hcvst <hcv...@googlemail.com>: > > > > > > > Just tested locally on an older version - happens too and > > independently of browser settings. > > No idea why I could not reproduce it earlier for 'it' and 'fr'. > > > web2py Shell Version 1.65.7 (2009-07-28 18:50:03) > > In[0]: T('Hello World').xml() > > Out[0]: 'Hello World' > > In[1]: T.force('it') > > Out[1]: ['it'] > > In[2]: T('Hello World').xml() > > Out[2]: 'Salve Mondo' > > In[3]: T.force('en') > > Out[3]: ['en'] > > In[4]: T('Hello World').xml() > > Out[4]: 'Hello World' > > In[5]: T.force('it') > > Out[5]: ['it'] > > In[6]: T('Hello World').xml() > > Out[6]: 'Hello World' > > > An below's what's left in it.py > > > { > > 'Hello World': 'Hello World', > > } > > > HC > > I haven't been able to look at the original problem you posted on, > but, when I ran the shell on the web2py welcome app (Version > 1.65.11, 2009-08-14 07:28:45), T.force() seemed to work OK as below on > my local machine. > > > > > > >>> T("Hello World").xml() > 'Hello World' > >>> T.force("it") > ['it'] > >>> T("Hello World").xml() > 'Salve Mondo' > >>> T.force("en") > ['en'] > >>> T("Hello World").xml() > 'Hello World' > >>> T.force("it") > ['it'] > >>> T("Hello World").xml() > 'Salve Mondo' > >>> T.force("en") > ['en'] > >>> T("Hello World").xml() > 'Hello World' > > -- > Teru > > On 8月16日, 午前3:52, hcvst <hcv...@googlemail.com> wrote: > > > Just tested locally on an older version - happens too and > > independently of browser settings. > > No idea why I could not reproduce it earlier for 'it' and 'fr'. > > > web2py Shell Version 1.65.7 (2009-07-28 18:50:03) > > In[0]: T('Hello World').xml() > > Out[0]: 'Hello World' > > In[1]: T.force('it') > > Out[1]: ['it'] > > In[2]: T('Hello World').xml() > > Out[2]: 'Salve Mondo' > > In[3]: T.force('en') > > Out[3]: ['en'] > > In[4]: T('Hello World').xml() > > Out[4]: 'Hello World' > > In[5]: T.force('it') > > Out[5]: ['it'] > > In[6]: T('Hello World').xml() > > Out[6]: 'Hello World' > > > An below's what's left in it.py > > > { > > 'Hello World': 'Hello World', > > > } > > > HC --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---