anmnsg / webapp-improved

Automatically exported from code.google.com/p/webapp-improved
Other
0 stars 0 forks source link

Automatic update for translations in dev server #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Changing and compiling new translations will not cause the development server 
to reload said translations. A temporary fix suggested by Rodrigo Moraes is to 
replace the following in i18n.py:

self.translations[locale] = trans 

-with-

if not webapp2.get_app().debug: 
    self.translations[locale] = trans 

Tried and tested. Works perfectly.

BR / Fredrik

Original issue reported on code.google.com by fredrik....@gmail.com on 14 Aug 2011 at 8:47

GoogleCodeExporter commented 8 years ago
This issue was closed by revision f6d46a265e4e.

Original comment by rodrigo.moraes on 24 Aug 2011 at 6:52