Django

Code

Changeset 4934

Show
Ignore:
Timestamp:
04/05/07 10:34:32 (1 year ago)
Author:
mtredinnick
Message:

Added a check of the format specifiers in Python strings. This will identify a
lot of common translation errors.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/bin/compile-messages.py

    r4687 r4934  
    3232                os.environ['djangocompilepo'] = pf + '.po' 
    3333                if sys.platform == 'win32': # Different shell-variable syntax 
    34                     cmd = 'msgfmt -o "%djangocompilemo%" "%djangocompilepo%"' 
     34                    cmd = 'msgfmt --check-format -o "%djangocompilemo%" "%djangocompilepo%"' 
    3535                else: 
    36                     cmd = 'msgfmt -o "$djangocompilemo" "$djangocompilepo"' 
     36                    cmd = 'msgfmt --check-format -o "$djangocompilemo" "$djangocompilepo"' 
    3737                os.system(cmd) 
    3838