* owner: nobody => Basant Babu Bhandari
* status: new => assigned
Comment:
working on it
--
Ticket URL: <https://code.djangoproject.com/ticket/34448#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: Basant Babu Bhandari => Tushar
--
Ticket URL: <https://code.djangoproject.com/ticket/34448#comment:3>
Comment (by Tushar):
Hey, I was playing around with the `--no-obsolete` option and found
https://stackoverflow.com/a/49372926/12409303. This behavior is true,
`.po` files are not updated if there are no `gettext` present, which means
obsolete strings still remain there in the `.po` file. Is this the
intended behaviour that has to be documented or is it a bug ?
--
Ticket URL: <https://code.djangoproject.com/ticket/34448#comment:4>
Comment (by Mariusz Felisiak):
Replying to [comment:4 Tushar]:
> Hey, I was playing around with the `--no-obsolete` option and found
https://stackoverflow.com/a/49372926/12409303. This behavior is true,
`.po` files are not updated if there are no `gettext` present, which means
obsolete strings still remain there in the `.po` file. Is this the
intended behaviour that has to be documented or is it a bug ?
This looks like an issue in `msgattrib`, not in Django itself.
--
Ticket URL: <https://code.djangoproject.com/ticket/34448#comment:5>
Comment (by Tushar):
Yes, confirmed. This is an issue with `msgattrib`. I tried calling it
directly and it failed to modify the `.po` files if every translation is
obsolete. I will add it as a side note while documenting to add more
clarity for users.
--
Ticket URL: <https://code.djangoproject.com/ticket/34448#comment:6>
Comment (by Mariusz Felisiak):
Replying to [comment:6 Tushar]:
> I will add it as a side note while documenting to add more clarity for
users.
We don't document bugs in other tools.
--
Ticket URL: <https://code.djangoproject.com/ticket/34448#comment:7>
* needs_better_patch: 0 => 1
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/17070 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/34448#comment:8>
* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/34448#comment:9>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"88a2de3c3906f5acc14bb68e98c128fc13f2f1ae" 88a2de3c]:
{{{
#!CommitTicketReference repository=""
revision="88a2de3c3906f5acc14bb68e98c128fc13f2f1ae"
Fixed #34448 -- Doc'd and tested --no-obsolete option of makemessages.
Co-authored-by: Mariusz Felisiak <felisiak...@gmail.com>
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34448#comment:10>