#13859: respect LANGUAGE_CODE in management command instead of overriding it with 'en-us' ---------------------------------------------+------------------------------ Reporter: tonnzor | Owner: Status: new | Milestone: 1.3 Component: django-admin.py | Version: SVN Resolution: | Keywords: Stage: Design decision needed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ---------------------------------------------+------------------------------ Changes (by ramiro):
* stage: Unreviewed => Design decision needed Comment: Replying to [ticket:13859 tonnzor]: > > First of all - this assumption is invalid - '''nothing broken''' when I created tables (including permissions) after disabling this code. The names of permissions stored in the DB are in essence constants, and I suspect they are in English simply because it was the first (and only, Django hadn't I18N support at that time) language when the auth app was created. That's why these values aren't translatable, if you stored values translated to `ru-ru` there, code that checks and parses these permissions wouldn't work at all for an user with another locale preference. > > Then - even DB creation must respect selected locale. If I have a project in Russian and generate database having Russian locale - it should really use it. > > '''After I disabled it - everything works fine''' We digress, your original report is about not forcibly activating en-us for custom management commands. Maybe we can add a `can_manage_i18n` (or similar) command class-level flag similar to ``can_import_settings`, `requires_model_validation`, etc. that defaults to False so third party commands can override it to True at their own risk? -- Ticket URL: <http://code.djangoproject.com/ticket/13859#comment:6> Django <http://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-upda...@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.