[Django] #25303: Admin translation: Not everything gets translated

5 views
Skip to first unread message

Django

unread,
Aug 23, 2015, 2:20:19 PM8/23/15
to django-...@googlegroups.com
#25303: Admin translation: Not everything gets translated
-------------------------------+-------------------------------
Reporter: Wenze | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 1.8
Severity: Normal | Keywords: admin translation
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------+-------------------------------
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

--
Ticket URL: <https://code.djangoproject.com/ticket/25303>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Aug 23, 2015, 2:20:33 PM8/23/15
to django-...@googlegroups.com
#25303: Admin translation: Not everything gets translated
-------------------------------+----------------------------
Reporter: Wenze | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 1.8
Severity: Normal | Resolution:

Keywords: admin translation | Triage Stage: Unreviewed
Has patch: 0 | Easy pickings: 0
UI/UX: 1 |
-------------------------------+----------------------------
Changes (by Wenze):

* Attachment "translation not working.png" added.

Django

unread,
Aug 23, 2015, 2:21:38 PM8/23/15
to django-...@googlegroups.com
#25303: Admin translation: Not everything gets translated
-------------------------------+----------------------------
Reporter: Wenze | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 1.8
Severity: Normal | Resolution:

Keywords: admin translation | Triage Stage: Unreviewed
Has patch: 0 | Easy pickings: 0
UI/UX: 1 |
-------------------------------+----------------------------
Changes (by Wenze):

* Attachment "translation not working.png" added.

Django

unread,
Aug 23, 2015, 2:22:22 PM8/23/15
to django-...@googlegroups.com
#25303: Admin translation: Not everything gets translated
-----------------------------------+--------------------------------------

Reporter: Wenze | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 1.8
Severity: Normal | Resolution:

Keywords: admin translation | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 1
-----------------------------------+--------------------------------------
Changes (by Wenze):

* 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>

Django

unread,
Aug 23, 2015, 2:33:56 PM8/23/15
to django-...@googlegroups.com
#25303: Admin translation: Not everything gets translated
-----------------------------------+--------------------------------------

Reporter: Wenze | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 1.8
Severity: Normal | Resolution:

Keywords: admin translation | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 1
-----------------------------------+--------------------------------------
Description changed by Wenze:

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>

Django

unread,
Aug 23, 2015, 4:30:13 PM8/23/15
to django-...@googlegroups.com
#25303: Admin translation: Not everything gets translated
-----------------------------------+--------------------------------------

Reporter: Wenze | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 1.8
Severity: Normal | Resolution:

Keywords: admin translation | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 1
-----------------------------------+--------------------------------------

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>

Django

unread,
Aug 24, 2015, 3:25:28 AM8/24/15
to django-...@googlegroups.com
#25303: Admin translation: Not everything gets translated
-----------------------------------+--------------------------------------

Reporter: Wenze | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 1.8
Severity: Normal | Resolution:

Keywords: admin translation | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 1
-----------------------------------+--------------------------------------

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>

Django

unread,
Aug 24, 2015, 7:54:24 AM8/24/15
to django-...@googlegroups.com
#25303: permission names aren't translated
-----------------------------------+--------------------------------------
Reporter: Wenze | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admin | Version: 1.8
Severity: Normal | Resolution: duplicate

Keywords: admin translation | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 1
-----------------------------------+--------------------------------------
Changes (by timgraham):

* 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>

Django

unread,
Aug 25, 2015, 2:59:23 AM8/25/15
to django-...@googlegroups.com
#25303: permission names aren't translated
-----------------------------------+--------------------------------------
Reporter: Wenze | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admin | Version: 1.8
Severity: Normal | Resolution: duplicate

Keywords: admin translation | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 1
-----------------------------------+--------------------------------------

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>

Django

unread,
Aug 25, 2015, 2:59:58 AM8/25/15
to django-...@googlegroups.com
#25303: permission names aren't translated
-----------------------------------+--------------------------------------
Reporter: Wenze | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 1.8
Severity: Normal | Resolution:

Keywords: admin translation | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 1
-----------------------------------+--------------------------------------
Changes (by Wenze):

* status: closed => new
* resolution: duplicate =>


--
Ticket URL: <https://code.djangoproject.com/ticket/25303#comment:7>

Django

unread,
Aug 25, 2015, 3:03:41 AM8/25/15
to django-...@googlegroups.com
#25303: help_text on auth model field 'is_active' doesn't get translated
-----------------------------------+--------------------------------------

Reporter: Wenze | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 1.8
Severity: Normal | Resolution:

Keywords: admin translation | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 1
-----------------------------------+--------------------------------------

--
Ticket URL: <https://code.djangoproject.com/ticket/25303#comment:8>

Django

unread,
Aug 25, 2015, 3:21:24 AM8/25/15
to django-...@googlegroups.com
#25303: help_text on auth model field 'is_active' doesn't get translated
-----------------------------------+--------------------------------------
Reporter: Wenze | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admin | Version: 1.8
Severity: Normal | Resolution: worksforme

Keywords: admin translation | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 1
-----------------------------------+--------------------------------------
Changes (by claudep):

* 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>

Reply all
Reply to author
Forward
0 new messages