A benifit of this (that I personally encountered) would be writing pre-
commit hooks for makemessages. The pre-commit hooks would not update the
file if it is already up to date.
--
Ticket URL: <https://code.djangoproject.com/ticket/33056>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* has_patch: 0 => 1
Comment:
I created a PR for this.
https://github.com/django/django/pull/14800
--
Ticket URL: <https://code.djangoproject.com/ticket/33056#comment:1>
* needs_tests: 0 => 1
* stage: Unreviewed => Accepted
Comment:
Makes sense. Please add a test.
--
Ticket URL: <https://code.djangoproject.com/ticket/33056#comment:2>
Comment (by Daniyal Abbasi):
Thanks for accepting this. I'm not sure where the tests should live.
Should the tests go in the `BasicExtractorTests` or should they be in a
separate class in the `tests.i18n.test_extraction`?
Moreover, I could not find any tests for the `write_po_file` method of the
makemessages Command class. Let me know how I shall proceed!
--
Ticket URL: <https://code.djangoproject.com/ticket/33056#comment:3>
* owner: nobody => Daniyal Abbasi
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/33056#comment:4>
Comment (by Mariusz Felisiak):
Claude, it looks like a duplicate of #6106. IMO we should close this as a
duplicate and reopen the original ticket if we want to change the previous
decision.
--
Ticket URL: <https://code.djangoproject.com/ticket/33056#comment:5>
Comment (by Claude Paroz):
This may be discussed on the django-developers mailing list.
I guess the closing 11 years ago was to keep the meaning of `POT-Creation-
Date` as "last time we checked for new translations", vs "last time a
string changed in the file". However I can understand the issue it is with
source control, having been bitten by this too. Now I think I'm rather in
favour of the change, but getting more opinions from the mailing list
would be great.
--
Ticket URL: <https://code.djangoproject.com/ticket/33056#comment:6>
* status: assigned => closed
* has_patch: 1 => 0
* resolution: => duplicate
* needs_tests: 1 => 0
Comment:
Duplicate of #6106.
--
Ticket URL: <https://code.djangoproject.com/ticket/33056#comment:7>