#18114: makemessages does not care about context in trans templatetag -------------------------------------+------------------------------------- Reporter: tomaz.stucin@… | Owner: nobody Type: Bug | Status: closed Component: Translations | Version: 1.4 Severity: Normal | Resolution: needsinfo Keywords: trans context, | Triage Stage: pgettext | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by anonymous): We just hit the same problem. In our case it seems to be related to single quote versus double quote. If we set the context keyword in single quotes makemessages ignores the context and sets the translation to have no context. If we change to double quote it then considers the context keyword. Example: Works: {% trans 'Active' context "plural" %} Doesn't work: {% trans 'Active' context 'plural' %} -- Ticket URL: <https://code.djangoproject.com/ticket/18114#comment:5> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.