#16449: i18n_pattern URLs reversed from shell and tests have incorrect language prefix -------------------------------------+------------------------------------- Reporter: jakub | Owner: nobody Type: Bug | Status: closed Milestone: | Component: Translations Version: SVN | Severity: Normal Resolution: | Keywords: urlconf, reverse, worksforme | i18n_patterns, tests, shell Triage Stage: | Has patch: 0 Unreviewed | Needs tests: 0 Needs documentation: 0 | Easy pickings: 0 Patch needs improvement: 0 | UI/UX: 0 | -------------------------------------+-------------------------------------
Comment (by jakub): Okay, thanks. It's actually documented [https://docs.djangoproject.com/en/dev/howto/custom-management-commands/ here]. I was looking at the documentation for [https://docs.djangoproject.com/en/dev/ref/settings/#language-code LANGUAGE_CODE] and i18n in general where it isn't mentioned (patch attached). It's just a shame that the language gets deactivated already in `BaseCommand` and not only for the core/contrib commands that actually do create some database content. I find this exception unintuitive/inconsistent. -- Ticket URL: <https://code.djangoproject.com/ticket/16449#comment:2> 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 this group at http://groups.google.com/group/django-updates?hl=en.