Show More
@@ -22,8 +22,7 b' from uuid import uuid4' | |||
|
22 | 22 | import pyramid.testing |
|
23 | 23 | from pyramid.decorator import reify |
|
24 | 24 | from pyramid.request import Request as _Request |
|
25 | from rhodecode.translation import _ as tsf | |
|
26 | from rhodecode.lib.utils2 import StrictAttributeDict | |
|
25 | from rhodecode.lib.type_utils import StrictAttributeDict | |
|
27 | 26 | |
|
28 | 27 | |
|
29 | 28 | class TemplateArgs(StrictAttributeDict): |
@@ -95,6 +94,7 b' class RealRequest(RequestBase, _Request)' | |||
|
95 | 94 | |
|
96 | 95 | def translate(self, *args, **kwargs): |
|
97 | 96 | localizer = self.localizer |
|
97 | from rhodecode.translation import _ as tsf | |
|
98 | 98 | |
|
99 | 99 | def auto_translate(*_args, **_kwargs): |
|
100 | 100 | return localizer.translate(tsf(*_args, **_kwargs)) |
General Comments 0
You need to be logged in to leave comments.
Login now