web/views/basecontrollers.py
changeset 6619 ed5b452506af
parent 6582 8eb7883b4223
child 6683 68cfebd3b9f3
equal deleted inserted replaced
6617:120c7ea6e1fa 6619:ed5b452506af
   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]
       
   468         return [self._cw._(msgid) for msgid in msgids]
   467         return [self._cw._(msgid) for msgid in msgids]
   469 
   468 
   470     @jsonize
   469     @jsonize
   471     def js_format_date(self, strdate):
   470     def js_format_date(self, strdate):
   472         """returns the formatted date for `msgid`"""
   471         """returns the formatted date for `msgid`"""