From a547ef0d6200a85fea4ad40cdf1a38e702daa920 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 28 Aug 2006 18:43:58 +0000 Subject: [PATCH] =?UTF-8?q?Fixed=20#2604=20--=20Got=20compile-messages.py?= =?UTF-8?q?=20working=20on=20win32.=20Thanks=20for=20the=20patch,=20Jaros?= =?UTF-8?q?=C5=82aw=20Zabie=C5=82=C5=82o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://code.djangoproject.com/svn/django/trunk@3672 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/bin/compile-messages.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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__":