We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7424f0 commit a547ef0Copy full SHA for a547ef0
django/bin/compile-messages.py
@@ -26,7 +26,10 @@ def compile_messages():
26
# See http://cyberelk.net/tim/articles/cmdline/ar01s02.html
27
os.environ['djangocompilemo'] = pf + '.mo'
28
os.environ['djangocompilepo'] = pf + '.po'
29
- cmd = 'msgfmt -o "$djangocompilemo" "$djangocompilepo"'
+ if sys.platform == 'win32': # Different shell-variable syntax
30
+ cmd = 'msgfmt -o "%djangocompilemo%" "%djangocompilepo%"'
31
+ else:
32
+ cmd = 'msgfmt -o "$djangocompilemo" "$djangocompilepo"'
33
os.system(cmd)
34
35
if __name__ == "__main__":
0 commit comments