Author: adrian
Date: 2006-08-28 13:43:58 -0500 (Mon, 28 Aug 2006)
New Revision: 3672

Modified:
   django/trunk/django/bin/compile-messages.py
Log:
Fixed #2604 -- Got compile-messages.py working on win32. Thanks for the patch, 
Jaros?\197?\130aw Zabie?\197?\130?\197?\130o

Modified: django/trunk/django/bin/compile-messages.py
===================================================================
--- django/trunk/django/bin/compile-messages.py 2006-08-28 18:39:30 UTC (rev 
3671)
+++ django/trunk/django/bin/compile-messages.py 2006-08-28 18:43:58 UTC (rev 
3672)
@@ -26,7 +26,10 @@
                 # 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__":


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to