Opened 9 years ago
Closed 9 years ago
#25303 closed Bug (worksforme)
help_text on auth model field 'is_active' doesn't get translated
Reported by: | Wenze van Klink | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | 1.8 |
Severity: | Normal | Keywords: | admin translation |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | yes |
Description (last modified by )
When I set the admin language to Dutch (nl) not all the sentences are showing in Dutch. But the sentences are available in the .po file. So it seems something else is wrong. See image, the active field is translated but not the help text.
Attachments (1)
Change History (10)
by , 9 years ago
Attachment: | translation not working.png added |
---|
comment:1 by , 9 years ago
Description: | modified (diff) |
---|
comment:2 by , 9 years ago
Description: | modified (diff) |
---|
comment:3 by , 9 years ago
comment:4 by , 9 years ago
Django==1.8.3
I'm using a custom user model: AUTH_USER_MODEL = 'authtools.User'
comment:5 by , 9 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Summary: | Admin translation: Not everything gets translated → permission names aren't translated |
comment:6 by , 9 years ago
To me it seems that this isn't a permission in the database. Because it is available in the .po translation file, the permissions are not. It is a 'help_text' on the model, see: https://github.com/django/django/blob/master/django/contrib/auth/models.py#L328
And 'superuserstatus' and 'staffstatus' do get translated correctly, which are the same type of fields?
comment:7 by , 9 years ago
Resolution: | duplicate |
---|---|
Status: | closed → new |
comment:8 by , 9 years ago
Summary: | permission names aren't translated → help_text on auth model field 'is_active' doesn't get translated |
---|
comment:9 by , 9 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
I think the problem is that the string in django-authtools is not identical to the one from django.contrib.auth. See https://github.com/fusionbox/django-authtools/blob/master/authtools/models.py#L35 and look at the double space after the point.
Could you please specify the exact version of Django you are using? Are you using a custom user model or the standard from contrib.auth.models.User?