Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added makemessages script

  • Loading branch information...
commit 71919c6b7483490dbbe420acff3f7e24ecfc0e52 1 parent 35d65c5
@ojii ojii authored
Showing with 25 additions and 0 deletions.
  1. +25 −0 makemessages.py
View
25 makemessages.py
@@ -0,0 +1,25 @@
+#!/usr/bin/env python
+from cms.test_utils.cli import configure
+from cms.test_utils.tmpdir import temp_dir
+import os
+
+def main():
+ with temp_dir() as STATIC_ROOT:
+ with temp_dir() as MEDIA_ROOT:
+ configure(
+ ROOT_URLCONF='cms.test_utils.project.urls',
+ STATIC_ROOT=STATIC_ROOT,
+ MEDIA_ROOT=MEDIA_ROOT,
+ DATABASES = {
+ 'default': {
+ 'ENGINE': 'django.db.backends.sqlite3',
+ 'NAME': 'cmstestdb.sqlite',
+ }
+ }
+ )
+ from django.core.management import call_command
+ os.chdir('cms')
+ call_command('makemessages', all=True)
+
+if __name__ == '__main__':
+ main()
Please sign in to comment.
Something went wrong with that request. Please try again.