rubenv / angular-gettext-tools

Tools for extracting/compiling angular-gettext strings.
http://angular-gettext.rocketeer.be/
MIT License
39 stars 129 forks source link

Extract context from gettext() function #109

Closed knuhol closed 9 years ago

knuhol commented 9 years ago

Is it possible to have also context extraction from gettext() function? I have this situation:

Is there any other way how to do this?

knuhol commented 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.