Opened 6 years ago

Last modified 6 months ago

#22016 new New feature

Automatically reload i18n files on change, when DEBUG is True

Reported by: Patrick Michaud Owned by: Patrick Michaud
Component: Internationalization Version: master
Severity: Normal Keywords:
Cc: m17.admin@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no


It would make things easier for our text editors if they didn't need to run compilemessages to see their changes on their builds. This would need to cover python translation, templates, and the javascript catalog. This would create parity between seeing text changes and seeing python changes.

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.

Change History (5)

comment:2 Changed 6 years ago by Tim Graham

Triage Stage: UnreviewedAccepted
Version: master

I'm not very familiar with translations, but this seems like a reasonable request.

comment:3 Changed 6 years ago by merb

Patch needs improvement: set

you forget to link the PR:
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.

comment:4 Changed 4 years ago by Sergey Kolosov

Cc: m17.admin@… added

comment:5 Changed 6 months ago by Rodrigo

With the current code base, this can be achieved by adding the .po suffix for watching in, 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?

Note: See TracTickets for help on using tickets.
Back to Top