id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 5972 Use filters with {% trans %} tag - depends on #5971 Dmitri Fedortchenko nobody "I want to apply filters to my translations in the templates. So..... I have created a patch which allows use of the following syntax: {{{ {% trans ""username""|capfirst|slice:""2:"" noop %} {% trans somevar|slice:""2:"" %} }}} The filters are applied on the result of the translation, and not the translation id string. While this is already possible by using the '''{{ _(""username"")|filter }}''' syntax, I think that '''{% trans %}''' is more ""django-ish"" and looks nicer too... An important note: This patch depends on ticket [http://code.djangoproject.com/ticket/5971 5971]. I have a patch that is free from that dependency, however since I got a positive response on said ticket I am posting the dependent patch. It's a bit smaller and fancier :) See: [http://groups.google.com/group/django-developers/browse_thread/thread/ab366a554b57beba thread1] [http://groups.google.com/group/django-developers/browse_thread/thread/c90b6e29d20724ca thread2]" closed Internationalization dev fixed i18n template i18n-nofix Ben Spaulding Design decision needed 1 1 1 0 0 0