This is similar to #9523, only I'd like to have a check for compilation
when translations are used.
I have a patch that has unit tests, and implements changes in trans_real
and in the javascript_catalog. I'll send a pull request after my CCLA is
sent in.
--
Ticket URL: <https://code.djangoproject.com/ticket/22016>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
Branch is at https://github.com/vegitron/django/tree/ticket_22016
--
Ticket URL: <https://code.djangoproject.com/ticket/22016#comment:1>
* version: => master
* stage: Unreviewed => Accepted
Comment:
I'm not very familiar with translations, but this seems like a reasonable
request.
--
Ticket URL: <https://code.djangoproject.com/ticket/22016#comment:2>
* needs_better_patch: 0 => 1
Comment:
you forget to link the PR: https://github.com/django/django/pull/2421
Currently your patch needs to be updated, could you do that?
Also it would be great if you add some small docstrings to your tests.
--
Ticket URL: <https://code.djangoproject.com/ticket/22016#comment:3>
* cc: m17.admin@… (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/22016#comment:4>
Comment (by Rodrigo):
With the current code base, this can be achieved by adding the .po suffix
for watching in
https://github.com/django/django/blob/master/django/utils/translation/reloader.py,
and then compile it.
However, the .po suffix seems to been explicitly left out, perhaps there
is not a consensus in this behavior for every workflow.
This seems straightforward to implement at this moment, can someone
confirm this?
--
Ticket URL: <https://code.djangoproject.com/ticket/22016#comment:5>