[Django] #26803: Allow makemessages to be used for validation of gettext files

45 views
Skip to first unread message

Django

unread,
Jun 24, 2016, 11:36:23 AM6/24/16
to django-...@googlegroups.com
#26803: Allow makemessages to be used for validation of gettext files
--------------------------------------+--------------------
Reporter: vzima | Owner: nobody
Type: New feature | Status: new
Component: Internationalization | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
Command `makemessage` has serious downfall - it always changes at least
one `*.po` file. In order to use `makemessages` to validate whether
gettext catalog is up to date, i.e. all translated messages are in the
catalog and there are no extra, the actual change of the `*.po` file is
unwanted.

There should be either option to generate `*.pot` files only, which would
allow `msgcmp` to be used, or validation mode which would check if the
catalog contains all the messages.

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

Django

unread,
Jun 24, 2016, 12:23:06 PM6/24/16
to django-...@googlegroups.com
#26803: Allow makemessages to be used for validation of gettext files
-------------------------------------+-------------------------------------

Reporter: vzima | Owner: nobody
Type: New feature | Status: new
Component: | Version: master
Internationalization |
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: 0
-------------------------------------+-------------------------------------
Changes (by claudep):

* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


Comment:

What change do you talk about? The date field in the po header?

--
Ticket URL: <https://code.djangoproject.com/ticket/26803#comment:1>

Django

unread,
Jun 28, 2016, 3:44:15 AM6/28/16
to django-...@googlegroups.com
#26803: Allow makemessages to be used for validation of gettext files
-------------------------------------+-------------------------------------

Reporter: vzima | Owner: nobody
Type: New feature | Status: new
Component: | Version: master
Internationalization |
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: 0
-------------------------------------+-------------------------------------

Comment (by vzima):

Not only the po header. All the file changes - new messages are added,
obsolete are removed or marked, etc.

--
Ticket URL: <https://code.djangoproject.com/ticket/26803#comment:2>

Django

unread,
Jun 28, 2016, 6:23:39 AM6/28/16
to django-...@googlegroups.com
#26803: Allow makemessages to be used for validation of gettext files
-------------------------------------+-------------------------------------

Reporter: vzima | Owner: nobody
Type: New feature | Status: new
Component: | Version: master
Internationalization |
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: 0
-------------------------------------+-------------------------------------

Comment (by claudep):

What about a `--stats-only` option which would not touch existing po
files, but merge po files in a temporary directory and output translation
statistics for each file? Would it fulfill your use case?

--
Ticket URL: <https://code.djangoproject.com/ticket/26803#comment:3>

Django

unread,
Jun 29, 2016, 7:32:45 AM6/29/16
to django-...@googlegroups.com
#26803: Allow makemessages to be used for validation of gettext files
-------------------------------------+-------------------------------------

Reporter: vzima | Owner: nobody
Type: New feature | Status: new
Component: | Version: master
Internationalization |
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: 0
-------------------------------------+-------------------------------------

Comment (by vzima):

If it also returns appropriate exit code, similar to `makemigrations
--exit`, then yes.

--
Ticket URL: <https://code.djangoproject.com/ticket/26803#comment:4>

Django

unread,
Jun 29, 2016, 7:48:01 AM6/29/16
to django-...@googlegroups.com
#26803: Add a statistics option to makemessages
--------------------------------------+------------------------------------

Reporter: vzima | Owner: nobody
Type: New feature | Status: new
Component: Internationalization | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/26803#comment:5>

Django

unread,
Apr 6, 2017, 6:37:55 AM4/6/17
to django-...@googlegroups.com
#26803: Add a statistics option to makemessages
-------------------------------------+-------------------------------------
Reporter: Vlastimil Zíma | Owner: Sergey
| Kolosov
Type: New feature | Status: assigned
Component: | Version: master
Internationalization |

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sergey Kolosov):

* owner: nobody => Sergey Kolosov
* status: new => assigned


Comment:

Looking into this during DjangoCon EU 2017 sprints.

--
Ticket URL: <https://code.djangoproject.com/ticket/26803#comment:6>

Django

unread,
Apr 14, 2019, 7:09:20 AM4/14/19
to django-...@googlegroups.com
#26803: Add a statistics option to makemessages
-------------------------------------+-------------------------------------
Reporter: Vlastimil Zíma | Owner: Sergey
| Kolosov
Type: New feature | Status: assigned
Component: | Version: master
Internationalization |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by Sergey Kolosov):

Posted a PR: https://github.com/django/django/pull/11226

Exit code part is not that straightforward to implement so that it is
reliable enough.

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

Django

unread,
Nov 30, 2019, 11:23:21 AM11/30/19
to django-...@googlegroups.com
#26803: Add a statistics option to makemessages
-------------------------------------+-------------------------------------
Reporter: Vlastimil Zíma | Owner: Sergey
| Kolosov
Type: New feature | Status: assigned
Component: | Version: master
Internationalization |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by Baptiste Mispelon):

I closed #31048 as a partial duplicate. It suggested using `--dry-run`
instead of `--exit` which seems more consistent with other commands.

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

Django

unread,
Dec 31, 2021, 2:05:34 AM12/31/21
to django-...@googlegroups.com
#26803: Add a statistics option to makemessages
--------------------------------------+------------------------------------
Reporter: Vlastimil Zíma | Owner: (none)

Type: New feature | Status: new
Component: Internationalization | Version: dev

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Mariusz Felisiak):

* owner: Sergey Kolosov => (none)
* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/26803#comment:9>

Django

unread,
Jun 6, 2023, 11:52:22 AM6/6/23
to django-...@googlegroups.com
#26803: Add a statistics option to makemessages
--------------------------------------+------------------------------------
Reporter: Vlastimil Zíma | Owner: (none)
Type: New feature | Status: new
Component: Internationalization | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Sage Abdullah):

* cc: Sage Abdullah (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/26803#comment:10>

Django

unread,
Oct 6, 2023, 9:33:32 AM10/6/23
to django-...@googlegroups.com
#26803: Add a statistics option to makemessages
--------------------------------------+------------------------------------
Reporter: Vlastimil Zíma | Owner: (none)
Type: New feature | Status: new
Component: Internationalization | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

* cc: HarryKane (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/26803#comment:11>

Django

unread,
Jan 31, 2026, 11:49:33 PM (5 days ago) Jan 31
to django-...@googlegroups.com
#26803: Add a statistics option to makemessages
-------------------------------------+-------------------------------------
Reporter: Vlastimil Zíma | Owner: Stephen
| kihuni
Type: New feature | Status: assigned
Component: | Version: dev
Internationalization |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Stephen kihuni):

* owner: (none) => Stephen kihuni
* status: new => assigned

--
Ticket URL: <https://code.djangoproject.com/ticket/26803#comment:12>
Reply all
Reply to author
Forward
0 new messages