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
This commit is contained in:
parent
73c40c5999
commit
e339a41222
|
@ -31,9 +31,9 @@ def compile_messages(locale=None):
|
||||||
os.environ['djangocompilemo'] = pf + '.mo'
|
os.environ['djangocompilemo'] = pf + '.mo'
|
||||||
os.environ['djangocompilepo'] = pf + '.po'
|
os.environ['djangocompilepo'] = pf + '.po'
|
||||||
if sys.platform == 'win32': # Different shell-variable syntax
|
if sys.platform == 'win32': # Different shell-variable syntax
|
||||||
cmd = 'msgfmt -o "%djangocompilemo%" "%djangocompilepo%"'
|
cmd = 'msgfmt --check-format -o "%djangocompilemo%" "%djangocompilepo%"'
|
||||||
else:
|
else:
|
||||||
cmd = 'msgfmt -o "$djangocompilemo" "$djangocompilepo"'
|
cmd = 'msgfmt --check-format -o "$djangocompilemo" "$djangocompilepo"'
|
||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
Loading…
Reference in New Issue