Closed knuhol closed 9 years ago
Finally, I have found the solution. It is easy: the string doesn't exist in the catalog without its context so it has to be defined also in the translate filter. Then is possible to use gettextCatalog.getString()
in the factory.
Is it possible to have also context extraction from
gettext()
function? I have this situation:gettextCatalog.getString()
inside this factory the labels might not be translated on view despite of usage the translate filter in viewgettext()
in the factory instead and then the context definition in view in filter but the problem is that the string isn't extracted fromgettext()
function with its contextIs there any other way how to do this?