Can you not use the _(x) method inside the function which returns the list of tuples ?
globals are added to namespace with the classes and methods but the methods will be only be cached at that time. So executing this like:
class XYZ(..):
... def method(self, ...): return [ ('a', _('a')) ]
should work? or am i missing something?
« Back to merge proposal
Can you not use the _(x) method inside the function which returns the list of tuples ?
globals are added to namespace with the classes and methods but the methods will be only be cached at that time. So executing this like:
class XYZ(..):
...
def method(self, ...):
return [
('a', _('a'))
]
should work? or am i missing something?