Skip to content
Browse files

Use the new built-in translations provided by ToscaWidgets 2.

  • Loading branch information...
1 parent d7c9840 commit dc17531ef011fe0b6c10c18118357fab0f572c13 @Cito Cito committed Oct 4, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 tg/configuration/app_config.py
View
3 tg/configuration/app_config.py
@@ -8,7 +8,7 @@
import mimetypes
from UserDict import DictMixin
-from pylons.i18n import ugettext
+from pylons.i18n import ugettext, get_lang
from pylons.configuration import config as pylons_config
from beaker.middleware import SessionMiddleware, CacheMiddleware
@@ -843,6 +843,7 @@ def add_tosca2_middleware(self, app):
default_tw2_config = dict( default_engine=self.default_renderer,
preferred_rendering_engines=tw2_engines,
translator=ugettext,
+ get_lang=get_lang,
auto_reload_templates=self.auto_reload_templates,
controller_prefix='/tw2/controllers/',
res_prefix='/tw2/resources/',

0 comments on commit dc17531

Please sign in to comment.
Something went wrong with that request. Please try again.