Re: Permissions don't get translated in admin interface

2023-06-02 Thread Thibaud Colas
As suggested by @nessita on Discord, I’ve taken this to the Django Forum in Django Internals: https://forum.djangoproject.com/t/permissions-dont-get-translated-in-admin-interface/21324. Let’s try to keep the discussion going over there! On Friday, 2 June 2023 at 20:58:50 UTC+1 Thibaud Colas wr

Re: Permissions don't get translated in admin interface

2023-06-02 Thread Thibaud Colas
Ah-ha! Correct :) That’s great. So as of that commit, it’s just the permission names that aren’t translated. Here’s a screenshot of the current state: [image: permission-names-django-Django-5.0.dev20230602105440.png] I’ve updated my POC accordingly (https://github.com/thibaudcolas/django/pull/

Re: Permissions don't get translated in admin interface

2023-06-02 Thread Mariusz Felisiak
Is it not partly fixed by a52bdea5a27ba44b13eda93642231c65c581e083 ? -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To un

Re: Permissions don't get translated in admin interface

2023-06-02 Thread Thibaud Colas
👋 without further input, I’m not quite sure what to do with this. We need this ticket re-opened so anyone actually considers working on a fix for this. For reference, the initial reason for closing this bug report was: > The permissions are stored in the database and don't get translated. To me

Re: Permissions don't get translated in admin interface

2022-10-13 Thread Thibaud Colas
I worked on a potential fix for this yesterday at the Django London’s hack day with Nick (hi Nick if you’re reading this!). - Here is where translation names get created: https://github.com/django/django/blob/main/django/contrib/auth/management/__init__.py#L31 - And where the strings

Re: Permissions don't get translated in admin interface

2022-09-25 Thread Ramez Ashraf
Hello it's for this reason, i created this package https://github.com/RamezIssac/django-tabular-permissions It displays the permissions in a table that is easily translated , and easier to work with Aside from a 3rd party app, a workaround (like the one suggested above) will be the way to go.

Re: Permissions don't get translated in admin interface

2022-09-24 Thread Sarah Baidoo
Thanks On Sat, Sep 24, 2022, 22:28 Danilov Maxim wrote: > Hi, Tribaud. > > > > In your case you can override Permission admin to show translated names of > permissions and for widgets you can override modelchoiceiterator > > The name of permission you can translate like model.verbose_name + > ge

RE: Permissions don't get translated in admin interface

2022-09-24 Thread Danilov Maxim
Hi, Tribaud. In your case you can override Permission admin to show translated names of permissions and for widgets you can override modelchoiceiterator The name of permission you can translate like model.verbose_name + gettext( ‘can’) + gettext(view/change/delete) and it should be translate