mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -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__": | ||||
|   | ||||
		Reference in New Issue
	
	Block a user