Skip to content

Trac #17181 - Allow for specifying multiple locales and domains for makemessages and compilemessages commands #121

wants to merge 5 commits into from

4 participants

jakul commented Jun 7, 2012

option to pass in multiple locales to the compilemessages command, and multiple locales and multiple domains to the makemessages command

I've updated the existing patch (from the ticket), so that it applies cleanly. I've added tests and docs.

Let me know if this is up to scratch!

@jakul jakul allow multiple domains and languages for makemessages command; add op…
…tion to pass in multiple language to the compilemessages command
Django member
claudep commented Jun 7, 2012

There are already tests in tests/regressiontests/i18n/commands/ and tests/regressiontests/i18n/commands/ You shouldn't create new test files.

jakul commented Jun 7, 2012

Merged the changes into the existing files; I also changed one of the tests to not use the it locale, which is used by some other tests

Django member
apollo13 commented Jun 9, 2012

I'd like to be able to use -l de -l en -l es as alternate for -l de,en,es to stay consistent with -n of startproject. The patch is also missing versionadded/changed directives.

jakul commented Jun 13, 2012

@apollo13 I've added the versionchanged directives. The patch already supported specifiying multiple locales through "-l de -l pt -l it"

Django member

Could you squash those commits into one? Btw do we really need tests/regressiontests/i18n/commands/locale/hr/LC_MESSAGES/django.po -- the locale folder there has already 3 existing locales, could you reuse those?

jakul commented Jun 20, 2012

I need 2 locales with .po files and without .mo files in order to check that the compilation works properly.

Of the existing locales:
'it' has an error in the .po file and doesn't compile to a .mo file (this is intentional)
'fr' already has a commited .mo file

I can remove the hr locale if it is OK to remove the .mo file from the fr locale, however I didn't think that was a good thing to do.

Django member
ramiro commented Jan 18, 2013

Closing, adapted and committed code from this PR in 6158c79. See for further details.


@ramiro ramiro closed this Jan 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.