#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                       |  
---------------------------------------------+------------------------------
Comment (by tonnzor):

 > 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.

 Please, look at the table auth_persissions - it has following structure
 (and data - trimmed):
 Here's a small piece of data:
 {{{
 
+-----+-----------------------------------------------+-----------------+----------------------------------------+
 | id  | name                                          | content_type_id |
 codename                               |
 
+-----+-----------------------------------------------+-----------------+----------------------------------------+
 |   1 | Can add permission                            |               1 |
 add_permission                         |
 |   2 | Can change permission                         |               1 |
 change_permission                      |
 |   3 | Can delete permission                         |               1 |
 delete_permission                      |
 }}}

 As you see - codename is in English and may be - and it is done - easily
 parsed - that should stay English for sure.
 "name" is human-readable name that is not used for parsing and SHOULD be
 translated into the user language.

 Maybe we should fill another bug for this specific issue (permissions
 name)

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13859#comment:7>
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.

Reply via email to