diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-08-28 18:43:58 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-08-28 18:43:58 +0000 |
| commit | a547ef0d6200a85fea4ad40cdf1a38e702daa920 (patch) | |
| tree | b03293215fe668e58792ae9470f7f16c0a6ad63e | |
| parent | e7424f0619361873da7a62af0a58a6ba5785f8fa (diff) | |
Fixed #2604 -- Got compile-messages.py working on win32. Thanks for the patch, Jarosław Zabiełło
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3672 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rwxr-xr-x | django/bin/compile-messages.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/django/bin/compile-messages.py b/django/bin/compile-messages.py index 07dcce7bf6..0137ec8dd4 100755 --- a/django/bin/compile-messages.py +++ b/django/bin/compile-messages.py @@ -26,7 +26,10 @@ def compile_messages(): # See http://cyberelk.net/tim/articles/cmdline/ar01s02.html os.environ['djangocompilemo'] = pf + '.mo' os.environ['djangocompilepo'] = pf + '.po' - cmd = 'msgfmt -o "$djangocompilemo" "$djangocompilepo"' + if sys.platform == 'win32': # Different shell-variable syntax + cmd = 'msgfmt -o "%djangocompilemo%" "%djangocompilepo%"' + else: + cmd = 'msgfmt -o "$djangocompilemo" "$djangocompilepo"' os.system(cmd) if __name__ == "__main__": |
