Translate permission Django

240 views
Skip to first unread message

Marcos Serrano

unread,
Feb 29, 2016, 4:20:36 AM2/29/16
to Django developers (Contributions to Django itself)
Hello,
How to translate the default permissions django . Keywords ( Add, Delete ... )

Marcos Serrano

unread,
Feb 29, 2016, 10:03:12 AM2/29/16
to Django developers (Contributions to Django itself)

Tim Graham

unread,
Mar 7, 2016, 10:21:23 AM3/7/16
to Django developers (Contributions to Django itself)
This has been discussed in several tickets (https://www.google.com/search?&q=translate+permissions+site%3Acode.djangoproject.com) and mailing list threads (search the archives of this list for "translate permissions"). As far as I can tell, there's no clear solution at this time.

Collin Anderson

unread,
Mar 14, 2016, 4:24:30 PM3/14/16
to django-d...@googlegroups.com
Maybe we could have __str__ run the text through _()? I don't do much translating.

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/2fac44f8-0d92-4830-a68d-6e4e48018921%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

James Pic

unread,
Mar 14, 2016, 5:32:28 PM3/14/16
to django-d...@googlegroups.com
Perhaps django-modeltranslation could help too: http://django-modeltranslation.readthedocs.org/en/latest/registration.html (I really like this app BTW)

Florian Apolloner

unread,
Mar 14, 2016, 6:32:12 PM3/14/16
to Django developers (Contributions to Django itself)


On Monday, March 14, 2016 at 9:24:30 PM UTC+1, Collin Anderson wrote:
Maybe we could have __str__ run the text through _()? I don't do much translating.

Wouldn't work since you'd still need the static strings for the po files somewhere.

Ramez Ashraf

unread,
Mar 14, 2016, 7:34:48 PM3/14/16
to Django developers (Contributions to Django itself)
Hello, 

I created a 3rd party app for this issue , which will also display the app and model verbose names + display permissions in a tabular format for more easy setting when you have dozens of models.
Check it out at https://github.com/RamezIssac/django-tabular-permissions

Hope it helps :-)

Best
Reply all
Reply to author
Forward
0 new messages