[Django] #18714: Add an option to compilemessages to compile fuzzy translations

44 views
Skip to first unread message

Django

unread,
Aug 4, 2012, 2:52:11 PM8/4/12
to django-...@googlegroups.com
#18714: Add an option to compilemessages to compile fuzzy translations
-------------------------------------+-------------------------------------
Reporter: rasca | Owner: nobody
Type: New feature | Status: new
Component: Core (Management | Version: 1.4
commands) | Keywords: compilemessages fuzzy
Severity: Normal | msgfmt
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
`msgfmt` has an option to compile fuzzy messages: `-f` or `--use-fuzzy`. I
propose adding this parameter to the compilemessages command.

It would be useful in a project I'm working on where we code in English
but the client reviews it in Spanish and we translate the messages for a
development deployment (leaving them fuzzy) and once we are ready for
shipping a translator checks all the fuzzy messages.

Without this option either the develop deployment stays untranslated or
the translator doesn't know which strings are the new ones that he has to
check.

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

Django

unread,
Sep 18, 2012, 9:54:21 AM9/18/12
to django-...@googlegroups.com
#18714: Add an option to compilemessages to compile fuzzy translations
-------------------------------------+-------------------------------------
Reporter: rasca | Owner: nobody
Type: New feature | Status: new
Component: Core (Management | Version: 1.4
commands) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: compilemessages | Needs documentation: 0
fuzzy msgfmt | Patch needs improvement: 0
Has patch: 0 | UI/UX: 0
Needs tests: 0 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by claudep):

* needs_better_patch: => 0
* needs_docs: => 0
* needs_tests: => 0
* stage: Unreviewed => Accepted


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

Django

unread,
Jan 19, 2013, 9:20:41 AM1/19/13
to django-...@googlegroups.com
#18714: Add an option to compilemessages to compile fuzzy translations
-------------------------------------+-------------------------------------
Reporter: rasca | Owner: nobody
Type: New feature | Status: closed

Component: Core (Management | Version: 1.4
commands) | Resolution: duplicate

Severity: Normal | Triage Stage: Accepted
Keywords: compilemessages | Needs documentation: 0
fuzzy msgfmt | Patch needs improvement: 0
Has patch: 0 | UI/UX: 0
Needs tests: 0 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by ramiro):

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


Comment:

Duplicate of #10852.

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

Django

unread,
Jan 19, 2013, 9:47:15 AM1/19/13
to django-...@googlegroups.com
#18714: Add an option to compilemessages to compile fuzzy translations
-------------------------------------+-------------------------------------
Reporter: rasca | Owner: nobody
Type: New feature | Status: new
Component: Core (Management | Version: 1.4
commands) | Resolution:

Severity: Normal | Triage Stage: Accepted
Keywords: compilemessages | Needs documentation: 0
fuzzy msgfmt | Patch needs improvement: 0
Has patch: 0 | UI/UX: 0
Needs tests: 0 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by ramiro):

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


Comment:

Sorry, it seems I'm unable to read today. #10852 was about makemessages
and this one is about compilemessages.

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

Django

unread,
Mar 24, 2013, 11:39:06 AM3/24/13
to django-...@googlegroups.com
#18714: Add an option to compilemessages to compile fuzzy translations
-------------------------------------+-------------------------------------
Reporter: rasca | Owner: bak1an
Type: New feature | Status: assigned
Component: Core (Management | Version: master

commands) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: compilemessages | Needs documentation: 0
fuzzy msgfmt | Patch needs improvement: 0
Has patch: 0 | UI/UX: 0
Needs tests: 0 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by bak1an):

* owner: nobody => bak1an
* cc: antonbaklanov@… (added)
* version: 1.4 => master
* status: new => assigned


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

Django

unread,
Mar 30, 2013, 3:22:55 PM3/30/13
to django-...@googlegroups.com
#18714: Add an option to compilemessages to compile fuzzy translations
-------------------------------------+-------------------------------------
Reporter: rasca | Owner: bak1an
Type: New feature | Status: assigned
Component: Core (Management | Version: master
commands) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: compilemessages | Needs documentation: 0
fuzzy msgfmt | Patch needs improvement: 0
Has patch: 1 | UI/UX: 0

Needs tests: 0 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by bak1an):

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/978 pull request]

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

Django

unread,
Feb 8, 2014, 5:29:03 AM2/8/14
to django-...@googlegroups.com
#18714: Add an option to compilemessages to compile fuzzy translations
-------------------------------------+-------------------------------------
Reporter: rasca | Owner: bak1an
Type: New feature | Status: assigned
Component: Core (Management | Version: master
commands) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: compilemessages | Needs documentation: 0
fuzzy msgfmt | Patch needs improvement: 1

Has patch: 1 | UI/UX: 0
Needs tests: 0 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by timo):

* needs_better_patch: 0 => 1


Comment:

Patch no longer merges cleanly.

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

Django

unread,
Feb 10, 2014, 9:52:31 AM2/10/14
to django-...@googlegroups.com
#18714: Add an option to compilemessages to compile fuzzy translations
-------------------------------------+-------------------------------------
Reporter: rasca | Owner: bak1an
Type: New feature | Status: assigned
Component: Core (Management | Version: master
commands) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: compilemessages | Needs documentation: 0
fuzzy msgfmt | Patch needs improvement: 0

Has patch: 1 | UI/UX: 0
Needs tests: 0 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by bak1an):

* needs_better_patch: 1 => 0


Comment:

[https://github.com/django/django/pull/2259 new, rebased pull request]

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

Django

unread,
Apr 23, 2014, 7:43:57 AM4/23/14
to django-...@googlegroups.com
#18714: Add an option to compilemessages to compile fuzzy translations
-------------------------------------+-------------------------------------
Reporter: rasca | Owner: bak1an
Type: New feature | Status: assigned
Component: Core (Management | Version: master
commands) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: compilemessages | Needs documentation: 0
fuzzy msgfmt | Patch needs improvement: 0
Has patch: 1 | UI/UX: 0
Needs tests: 0 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------

Comment (by flagZ):

I could really use this. Any ETA on inclusion?

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

Django

unread,
Apr 23, 2014, 8:48:37 AM4/23/14
to django-...@googlegroups.com
#18714: Add an option to compilemessages to compile fuzzy translations
-------------------------------------+-------------------------------------
Reporter: rasca | Owner: bak1an
Type: New feature | Status: assigned
Component: Core (Management | Version: master
commands) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: compilemessages | Needs documentation: 0
fuzzy msgfmt | Patch needs improvement: 1

Has patch: 1 | UI/UX: 0
Needs tests: 0 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by timo):

* needs_better_patch: 0 => 1


Comment:

@flagZ, can you review the patch? It needs to be updated since 1.7 is now
feature frozen.

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

Django

unread,
Apr 23, 2014, 9:16:21 AM4/23/14
to django-...@googlegroups.com
#18714: Add an option to compilemessages to compile fuzzy translations
-------------------------------------+-------------------------------------
Reporter: rasca | Owner: bak1an
Type: New feature | Status: assigned
Component: Core (Management | Version: master
commands) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: compilemessages | Needs documentation: 0
fuzzy msgfmt | Patch needs improvement: 1
Has patch: 1 | UI/UX: 0
Needs tests: 0 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------

Comment (by Claude Paroz <claude@…>):

In [changeset:"3a435a057c691bf9d5936766f54c5f9bd01be176"]:
{{{
#!CommitTicketReference repository=""
revision="3a435a057c691bf9d5936766f54c5f9bd01be176"
Set compile messages options as class variable

Refs #18714. Same logic as options for makemessages commands.
}}}

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

Django

unread,
Apr 23, 2014, 9:17:20 AM4/23/14
to django-...@googlegroups.com
#18714: Add an option to compilemessages to compile fuzzy translations
-------------------------------------+-------------------------------------
Reporter: rasca | Owner: bak1an
Type: New feature | Status: assigned
Component: Core (Management | Version: master
commands) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: compilemessages | Needs documentation: 0
fuzzy msgfmt | Patch needs improvement: 1
Has patch: 1 | UI/UX: 0
Needs tests: 0 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------

Comment (by Claude Paroz <claude@…>):

In [changeset:"0424c84d541d7b0e23783c33c2db495543e3bd47"]:
{{{
#!CommitTicketReference repository=""
revision="0424c84d541d7b0e23783c33c2db495543e3bd47"
[1.7.x] Set compile messages options as class variable

Refs #18714. Same logic as options for makemessages commands.

Backport of 3a435a057 from master.
}}}

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

Django

unread,
Apr 23, 2014, 9:21:04 AM4/23/14
to django-...@googlegroups.com
#18714: Add an option to compilemessages to compile fuzzy translations
-------------------------------------+-------------------------------------
Reporter: rasca | Owner: bak1an
Type: New feature | Status: assigned
Component: Core (Management | Version: master
commands) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: compilemessages | Needs documentation: 0
fuzzy msgfmt | Patch needs improvement: 1
Has patch: 1 | UI/UX: 0
Needs tests: 0 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------

Comment (by claudep):

I've just committed a slight improvement (simple enough to warrant 1.7
backport), which allows someone to subclass the command to add
complementary options with one line of code (in the same vein as
06efeae598c6dafbe56d2ea323a0dccdd5bf2b8e).

But the patch still makes sense (to be able to specify --fuzzy per command
invocation).

--
Ticket URL: <https://code.djangoproject.com/ticket/18714#comment:12>

Django

unread,
Sep 14, 2014, 1:56:36 PM9/14/14
to django-...@googlegroups.com
#18714: Add an option to compilemessages to compile fuzzy translations
-------------------------------------+-------------------------------------
Reporter: rasca | Owner: bak1an
Type: New feature | Status: assigned
Component: Core (Management | Version: master
commands) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: compilemessages | Needs documentation: 0
fuzzy msgfmt | Patch needs improvement: 0
Has patch: 0 | UI/UX: 0

Needs tests: 0 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by bak1an):

* needs_better_patch: 1 => 0

* has_patch: 1 => 0


Comment:

working on adapting patch to current master state

--
Ticket URL: <https://code.djangoproject.com/ticket/18714#comment:13>

Django

unread,
Nov 15, 2014, 6:07:35 PM11/15/14
to django-...@googlegroups.com
#18714: Add an option to compilemessages to compile fuzzy translations
-------------------------------------+-------------------------------------
Reporter: rasca | Owner: bak1an
Type: New feature | Status: assigned
Component: Core (Management | Version: master
commands) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: compilemessages | Needs documentation: 0
fuzzy msgfmt | Patch needs improvement: 0
Has patch: 1 | UI/UX: 0

Needs tests: 0 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by bak1an):

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/3553 new pull request]

--
Ticket URL: <https://code.djangoproject.com/ticket/18714#comment:14>

Django

unread,
Nov 17, 2014, 12:44:21 PM11/17/14
to django-...@googlegroups.com
#18714: Add an option to compilemessages to compile fuzzy translations
-------------------------------------+-------------------------------------
Reporter: rasca | Owner: bak1an
Type: New feature | Status: assigned
Component: Core (Management | Version: master
commands) | Resolution:
Severity: Normal | Triage Stage: Ready for
Keywords: compilemessages | checkin
fuzzy msgfmt | Needs documentation: 0
Has patch: 1 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by berkerpeksag):

* stage: Accepted => Ready for checkin


Comment:

[https://github.com/django/django/pull/3553 PR #3553] LGTM. I've reviewed
and tested the patch locally.

--
Ticket URL: <https://code.djangoproject.com/ticket/18714#comment:15>

Django

unread,
Nov 18, 2014, 4:52:36 PM11/18/14
to django-...@googlegroups.com
#18714: Add an option to compilemessages to compile fuzzy translations
-------------------------------------+-------------------------------------
Reporter: rasca | Owner: bak1an
Type: New feature | Status: closed

Component: Core (Management | Version: master
commands) | Resolution: fixed

Severity: Normal | Triage Stage: Ready for
Keywords: compilemessages | checkin
fuzzy msgfmt | Needs documentation: 0
Has patch: 1 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by Claude Paroz <claude@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"d63703f1cd373f2a1d52e1947835b44d9565c1e0"]:
{{{
#!CommitTicketReference repository=""
revision="d63703f1cd373f2a1d52e1947835b44d9565c1e0"
Fixed #18714 -- Added 'fuzzy' compilemessages option
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/18714#comment:16>

Reply all
Reply to author
Forward
0 new messages