#36950: Django admin login page: "Forgotten your password or username?" is not
translated in Japanese locale
-------------------------------+--------------------------------------
     Reporter:  Ryu            |                    Owner:  (none)
         Type:  Bug            |                   Status:  new
    Component:  contrib.admin  |                  Version:  5.2
     Severity:  Normal         |               Resolution:
     Keywords:                 |             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 Ryu:

Old description:

> Description:
>
> [[Image(login-page.jpg, width=700)]]
>
> On the Django admin login page, the text:
>
> "Forgotten your password or username?"
>
> is not translated when the active language is set to Japanese (ja).
>
> Even though the locale is properly configured and other texts on the
> admin login page are translated into Japanese, this specific string
> remains in English.
>
> However, according to the source, the Japanese translation does exist in
> the django.po file:
>
> https://github.com/django/django/blob/a73eed2b5d6dbc78e95482dbd79809b4bd6dd1fd/django/contrib/admin/locale/ja/LC_MESSAGES/django.po#L572-L573
>
> so it appears that the translation entry is present, but not being
> applied in practice.
>

> Environment:
>
> Django version: 5.2.10
>
> Python version: 3.12

New description:

 Description:

 [[Image(login-page.jpg, width=700)]]

 On the Django admin login page, the text:

 "Forgotten your password or username?"

 is not translated when the active language is set to Japanese (ja).

 Even though the locale is properly configured and other texts on the admin
 login page are translated into Japanese, this specific string remains in
 English.

 However, according to the source, the Japanese translation for this string
 exists in

 
https://github.com/django/django/blob/a73eed2b5d6dbc78e95482dbd79809b4bd6dd1fd/django/contrib/admin/locale/ja/LC_MESSAGES/django.po#L572-L573

 It is possible that the key (msgid) used in the template does not exactly
 match the one defined in the translation file (for example, due to
 whitespace or context differences), which may be why the translation is
 not being applied at runtime.


 Environment:

 Django version: 5.2.10

 Python version: 3.12

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

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019c93744882-97a8aac8-a233-47c6-a414-59ccc39139b1-000000%40eu-central-1.amazonses.com.

Reply via email to