--
Ticket URL: <https://code.djangoproject.com/ticket/25303>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* Attachment "translation not working.png" added.
* Attachment "translation not working.png" added.
* needs_docs: => 0
* needs_tests: => 0
* needs_better_patch: => 0
Old description:
> When I set the admin language to Dutch (nl) not all the sentences are
> showing in Dutch. But the sentences are in available in the .po file. So
> it seems something else is wrong. See image
New description:
When I set the admin language to Dutch (nl) not all the sentences are
showing in Dutch. But the sentences are in available in the .po file. So
it seems something else is wrong. See image, the active field is
translated but not the help text.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/25303#comment:1>
Old description:
> When I set the admin language to Dutch (nl) not all the sentences are
> showing in Dutch. But the sentences are in available in the .po file. So
> it seems something else is wrong. See image, the active field is
> translated but not the help text.
New description:
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.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/25303#comment:2>
Comment (by claudep):
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?
--
Ticket URL: <https://code.djangoproject.com/ticket/25303#comment:3>
Comment (by Wenze):
Django==1.8.3
I'm using a custom user model: AUTH_USER_MODEL = 'authtools.User'
https://github.com/fusionbox/django-authtools
--
Ticket URL: <https://code.djangoproject.com/ticket/25303#comment:4>
* status: new => closed
* resolution: => duplicate
Comment:
Looks like the issue is specific to permission names which is a duplicate
of #1688, #11105, #12396, #13861.
--
Ticket URL: <https://code.djangoproject.com/ticket/25303#comment:5>
Comment (by Wenze):
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?
--
Ticket URL: <https://code.djangoproject.com/ticket/25303#comment:6>
* status: closed => new
* resolution: duplicate =>
--
Ticket URL: <https://code.djangoproject.com/ticket/25303#comment:7>
--
Ticket URL: <https://code.djangoproject.com/ticket/25303#comment:8>
* status: new => closed
* resolution: => worksforme
Comment:
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/25303#comment:9>