web/views/basecontrollers.py
changeset 6543 66145280a7e6
parent 6384 89d5b339ebdd
child 6545 5cea387a5667
equal deleted inserted replaced
6542:f13c47ac9137 6543:66145280a7e6
   462         return self._call_view(view, **args)
   462         return self._call_view(view, **args)
   463 
   463 
   464     @jsonize
   464     @jsonize
   465     def js_i18n(self, msgids):
   465     def js_i18n(self, msgids):
   466         """returns the translation of `msgid`"""
   466         """returns the translation of `msgid`"""
       
   467         print 'translate', msgids, [self._cw._(msgid) for msgid in msgids]
   467         return [self._cw._(msgid) for msgid in msgids]
   468         return [self._cw._(msgid) for msgid in msgids]
   468 
   469 
   469     @jsonize
   470     @jsonize
   470     def js_format_date(self, strdate):
   471     def js_format_date(self, strdate):
   471         """returns the formatted date for `msgid`"""
   472         """returns the formatted date for `msgid`"""