I'm in favour of the change. Leaving the file as-is when no actual data
changed just makes sense to me.

The original discussion didn't touch upon the --update flag, so maybe it
didn't exist then, or the participants didn't know about it. Its existence
really weakens the argument that “we shouldn't redefine the meaning of
gettext's header fields”.

On Mon, 30 Aug 2021 at 23:55, Daniyal Abbasi <abbasi.daniya...@gmail.com>
wrote:

> Hi
>
> I was recently working on some git hooks with the makemessages command and
> I noticed that the "POT-Creation-Date" was always updated even if no
> strings were added, removed or relocated.
>
> I created a ticket (#33056 <https://code.djangoproject.com/ticket/33056>)
> and was redirected to #6106 <https://code.djangoproject.com/ticket/6106> which
> is the original ticket which was closed over 11 years ago. However, I'd
> like to bring this into discussion and hoping to open this issue once
> again.
>
> If the po file exists, the makemessages command uses `msgmerge` in the
> `write_po_file` method to get the contents of the po file. (Refer this
> <https://github.com/django/django/blob/3219dd3388c437b4bd869b76ddd43c9cdad05090/django/core/management/commands/makemessages.py#L605-L634>).
> However, msgmerge is not ran in the update mode using the `--update` flag
> <https://www.gnu.org/software/gettext/manual/html_node/msgmerge-Invocation.html>
> .
>
> I propose on added this flag and making other suitable modifications as
> this causes a lot of issues with source control and git hooks. I've created
> a sample PR <https://github.com/django/django/pull/14800> for the same.
>
> Looking forward to hear what everyone thinks about this!
>
> Thanks and regards,
> Daniyal Abbasi
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/32440770-55aa-4feb-b164-6940ca07838fn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-developers/32440770-55aa-4feb-b164-6940ca07838fn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAMyDDM0QLFy3hE%2BPwk6%3DLbRP2-OqjaCYounLa6fzU4Q14xSBRw%40mail.gmail.com.
  • mak... Daniyal Abbasi
    • ... 'Adam Johnson' via Django developers (Contributions to Django itself)
      • ... אורי
        • ... Paolo Melchiorre
          • ... Claude Paroz

Reply via email to