#10867 closed (fixed)
The command makemessages should avoid files inside the locale dir when --all option is specified
Reported by: | diegobz | Owned by: | nobody |
---|---|---|---|
Component: | Internationalization | Version: | 1.0 |
Severity: | Keywords: | makemessages | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
This patch makes the makemessages management command *see only directories* under the locale path when --all is specified.
Right now Django does not allow to have anything else than directories for languages at that directory. Otherwise it is very important
to have an option to put files there, because some projects might want to have a LINGUAS file.
The LINGUAS file is very useful because that's a way how translators tell the maintainers that a specific language is ready to be used.
Usually the LINGUAS file is updated by the translators themselves and it means that file should be at the same directory where they have
access to commit their translations. Usually 'locale/*'.
Attachments (1)
Change History (7)
by , 16 years ago
Attachment: | django-makemessages.patch added |
---|
comment:1 by , 16 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
The LINGUAS file seems like a worthwhile convention used by many open source projects, (http://www.google.com/codesearch?q=po%2FLINGUAS&hl=en).
comment:2 by , 16 years ago
Some more info about LINGUAS: http://www.gnu.org/software/hello/manual/gettext/po_002fLINGUAS.html
comment:3 by , 16 years ago
milestone: | → 1.1 |
---|---|
Triage Stage: | Design decision needed → Accepted |
The patch is fine for general reasons. LINGUAS is duplicated information in Django's core, given how we operate (we commit only usable translations). For external applications, we don't need to have an opinion -- they can use it or not, we don't care, but shouldn't get in the way. So I'm definitely going to commit this patch, but I'd rather not see any huge discussion about LINGUAS spring up, since it adds no value to this ticket or Django's core.
It's a bug that we don't only process directories right now.
comment:4 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
makemessages, see only directories, please! (now there we go)