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 6326,"fix test case for _() in templates, improve documentation",Antti Kaihola,nobody,"[source:django/trunk/tests/regressiontests/templates/tests.py#6996#L739 the Test case for using the _() construct in templates] is invalid and doesn't actually test the feature at all: {{{ 'i18n10': ('{{ bool|yesno:_(""ja,nein"") }}', {'bool': True}, 'ja'), }}} This should be better, and it does pass: {{{ 'i18n10': ('{{ bool|yesno:_(""yes,no,maybe"") }}', {'bool': True, 'LANGUAGE_CODE': 'de'}, 'Ja'), }}} Also, [http://www.djangoproject.com/documentation/i18n/#in-template-code the documentation for using _() in templates] could clarify that {{{ |yesno:_(""yes,no"") }}} used in the example actually looks for the string {{{""yes,no""}}} in the translation files, not for {{{""yes""}}} and {{{""no""}}} separately. It would be better to use an actual existing translation string like {{{""yes,no,maybe""}}} instead of {{{""yes,no""}}} in the example.",,closed,Internationalization,dev,,fixed,,,Ready for checkin,1,0,0,0,0,0