Hi Jiyu, This definitively works !! and Rocks !! ;-)
Just tried in real world : - extract - run appcfg.py update webappi18n - browse --> Hello is transformed to "Bonjour" and that's pretty good ! VoilĂ ! Thank to you. Pierre On Sep 9, 6:41 am, A.TNG <[EMAIL PROTECTED]> wrote: > Hi, > > I find another way to use django's i18n middleware. > > The story is that you already have a app based on webapp framework and > you want to make it support i18n. > > 1. you still need to create your .po and .mo files and put them under > appproj/locale/{locale, eg: zh_CN}/LC_MESSAGES/ > 2. add settings.py to appproj/ > 3. modify your main.py and import several django modules. > 4. Now, you could use _() in .py and {% trans "" %} in template. You > could follow your webapp way, no need to change to django way. > > For detail information, you could check attached code sample. Enjoy :-) > > -- > Best Regards, > TANG Jiyu > > webappi18n.zip > 7KViewDownload --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---