#32356: Add url argument to translate tag -------------------------------------+------------------------------------- Reporter: Peter Bittner | Owner: nobody Type: New feature | Status: closed Component: | Version: master Internationalization | Severity: Normal | Resolution: invalid Keywords: | Triage Stage: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by Mariusz Felisiak):
* cc: Claude Paroz (added) * status: new => closed * resolution: => invalid Comment: Thanks for the report, however I don't see a reason for a new argument. It's already feasible, you can add [https://docs.djangoproject.com/en/3.1/topics/i18n/translation /#translator-comments-in-templates Comments for translators in templates], e.g. {{{ {% comment Translators: https://examples.djangoproject.org/polls/1/%} {% translate "Vote again?" context "Polls app tutorial results page" %} }}} You can also add a URL to the context, e.g. {{{ {% translate "Vote again?" context "Polls app tutorial results page, see https://examples.djangoproject.org/polls/1/" %} }}} -- Ticket URL: <https://code.djangoproject.com/ticket/32356#comment:3> 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 unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.2020e11a453e6a781e33486b15e1899b%40djangoproject.com.