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 translated.
With custom translation is a little bit more work, but it also works.
I am not sure, that if override of __str__ helps, but it also possible.
By the way - My solution DJANGO-TOF 2.version solves you ask without any changes in code.
I‘ve presented it on last Django con 2022
We works with permissions and also custom permissions already long time in Multilanguage Project and I don’t see any problem with that.
Mit freundlichen Grüßen,
DI Mag. Maxim Danilov
+43(681)207 447 76
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/8e14c59f-3331-401a-85a1-cbf27d49fe65n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/000001d8d064%24f9d25dd0%24ed771970%24%40wpsoft.at.