summaryrefslogtreecommitdiff
path: root/django/bin/compile-messages.py
diff options
context:
space:
mode:
authorJason Pellerin <jpellerin@gmail.com>2006-09-04 02:20:26 +0000
committerJason Pellerin <jpellerin@gmail.com>2006-09-04 02:20:26 +0000
commitb17f250907351923f39f8a50b87a35b26d2ca307 (patch)
treebd0202dea501c6678a0b56b8e108194aab78468d /django/bin/compile-messages.py
parent5a58772a1ee470e2890d3c716ce4918555100a55 (diff)
[multi-db] Merge trunk to [3661]
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3712 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/bin/compile-messages.py')
-rwxr-xr-xdjango/bin/compile-messages.py5
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__":