[Django] #35181: behaviour of makemessage dont follow documentation

8 views
Skip to first unread message

Django

unread,
Feb 10, 2024, 4:08:57 PMFeb 10
to django-...@googlegroups.com
#35181: behaviour of makemessage dont follow documentation
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
pierreloicq |
Type: | Status: new
Cleanup/optimization |
Component: | Version: 4.2
Documentation | Keywords: translation,
Severity: Normal | makemessage
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Regarding how the makemessage command choose its locale dirs, the truth
that is described here https://stackoverflow.com/a/76261223/11378446
doesn't stick with the documentation. LOCALE_PATHS is not taken into
account.

So I suggest to adapt the documentation.

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

Django

unread,
Feb 11, 2024, 8:45:14 AMFeb 11
to django-...@googlegroups.com
#35181: behaviour of makemessage dont follow documentation
-------------------------------------+-------------------------------------
Reporter: Pierre | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: 4.2
Severity: Normal | Resolution: needsinfo
Keywords: translation, | Triage Stage:
makemessage | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

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

Comment:

I'm not sure what exactly do you want to report. As far as I'm aware,
`LOCALE_PATHS` works as
[https://docs.djangoproject.com/en/stable/topics/i18n/translation/#how-
django-discovers-translations documented]. Can you be more precise? and
state what behavior doesn't match the documentation.
--
Ticket URL: <https://code.djangoproject.com/ticket/35181#comment:1>

Django

unread,
Feb 18, 2024, 4:48:43 AMFeb 18
to django-...@googlegroups.com
#35181: behaviour of makemessage dont follow documentation
-------------------------------------+-------------------------------------
Reporter: Pierre | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: 4.2
Severity: Normal | Resolution: needsinfo
Keywords: translation, | Triage Stage:
makemessage | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Pierre):

As I understand it, LOCALE_PATHS is only used to find the .mo files but
not to tell were are going the .po files, which go in the locale folder of
the app if it exists, or in the locale folder of the project if it exists.
On [this
page](https://docs.djangoproject.com/fr/4.2/topics/i18n/translation/) it
is written
"The script runs over your project source tree or your application source
tree and pulls out all strings marked for translation (see How Django
discovers translations and be sure LOCALE_PATHS is configured correctly)"
Actually at this stage (creation of the .po files), the LOCALE_PATHS
didn't work for me, but maybe it is related to my OS (windows 10).

It is also written:
"A string extracted from a file of an app without any locale directory
will either go in a message file under the directory listed first in
LOCALE_PATHS or will generate an error if LOCALE_PATHS is empty."
If I have a locale folder in my project folder, the .po files can go
there, even without LOCALE_PATHS defined.
--
Ticket URL: <https://code.djangoproject.com/ticket/35181#comment:2>
Reply all
Reply to author
Forward
0 new messages