diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-04-05 15:34:32 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-04-05 15:34:32 +0000 |
| commit | e339a41222590eace1bafff7e3d3fafe0929c3d0 (patch) | |
| tree | a01792c2d1c5873b238d00a28c6bbf31497fd958 /django/bin | |
| parent | 73c40c5999d6945ada3e1da3c7ec693d977bffea (diff) | |
Added a check of the format specifiers in Python strings. This will identify a
lot of common translation errors.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4934 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/bin')
| -rwxr-xr-x | django/bin/compile-messages.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/bin/compile-messages.py b/django/bin/compile-messages.py index f2193d3122..2e1e908bbf 100755 --- a/django/bin/compile-messages.py +++ b/django/bin/compile-messages.py @@ -31,9 +31,9 @@ def compile_messages(locale=None): os.environ['djangocompilemo'] = pf + '.mo' os.environ['djangocompilepo'] = pf + '.po' if sys.platform == 'win32': # Different shell-variable syntax - cmd = 'msgfmt -o "%djangocompilemo%" "%djangocompilepo%"' + cmd = 'msgfmt --check-format -o "%djangocompilemo%" "%djangocompilepo%"' else: - cmd = 'msgfmt -o "$djangocompilemo" "$djangocompilepo"' + cmd = 'msgfmt --check-format -o "$djangocompilemo" "$djangocompilepo"' os.system(cmd) def main(): |
