Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added a check of the format specifiers in Python strings. This will i…

…dentify a

lot of common translation errors.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4934 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e339a41222590eace1bafff7e3d3fafe0929c3d0 1 parent 73c40c5
Malcolm Tredinnick authored April 05, 2007

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/bin/compile-messages.py
4  django/bin/compile-messages.py
@@ -31,9 +31,9 @@ def compile_messages(locale=None):
31 31
                 os.environ['djangocompilemo'] = pf + '.mo'
32 32
                 os.environ['djangocompilepo'] = pf + '.po'
33 33
                 if sys.platform == 'win32': # Different shell-variable syntax
34  
-                    cmd = 'msgfmt -o "%djangocompilemo%" "%djangocompilepo%"'
  34
+                    cmd = 'msgfmt --check-format -o "%djangocompilemo%" "%djangocompilepo%"'
35 35
                 else:
36  
-                    cmd = 'msgfmt -o "$djangocompilemo" "$djangocompilepo"'
  36
+                    cmd = 'msgfmt --check-format -o "$djangocompilemo" "$djangocompilepo"'
37 37
                 os.system(cmd)
38 38
 
39 39
 def main():

0 notes on commit e339a41

Please sign in to comment.
Something went wrong with that request. Please try again.