#13861: Translate permissions
-------------------------------------+--------------------------------------
          Reporter:  tonnzor         |         Owner:  nobody
            Status:  closed          |     Milestone:  1.3   
         Component:  Authentication  |       Version:  SVN   
        Resolution:  duplicate       |      Keywords:        
             Stage:  Unreviewed      |     Has_patch:  0     
        Needs_docs:  0               |   Needs_tests:  0     
Needs_better_patch:  0               |  
-------------------------------------+--------------------------------------
Comment (by tonnzor):

 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.

 The question is where it should be made - in runtime, syncdb or
 permissions generation.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13861#comment:2>
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to