summaryrefslogtreecommitdiffstats
path: root/askbot/bin
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-04-18 21:21:16 -0300
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-04-18 21:21:16 -0300
commitbe7c462910c236c051333485e1d65dc79e81bd97 (patch)
tree080b6e93e170627c5717fb5655f0c16e175ef5e3 /askbot/bin
parent93734b675246f31cc56c260a0e1196de7992b1af (diff)
downloadaskbot-be7c462910c236c051333485e1d65dc79e81bd97.tar.gz
askbot-be7c462910c236c051333485e1d65dc79e81bd97.tar.bz2
askbot-be7c462910c236c051333485e1d65dc79e81bd97.zip
rebuilt locale files for the new release
Diffstat (limited to 'askbot/bin')
-rw-r--r--askbot/bin/checklocales.py11
-rw-r--r--askbot/bin/rebuildlocales.py16
2 files changed, 27 insertions, 0 deletions
diff --git a/askbot/bin/checklocales.py b/askbot/bin/checklocales.py
new file mode 100644
index 00000000..c195d1b4
--- /dev/null
+++ b/askbot/bin/checklocales.py
@@ -0,0 +1,11 @@
+import os
+import subprocess
+
+locales = os.listdir('locale')
+for locale in locales:
+ command = 'msgfmt -c locale/%s/LC_MESSAGES/django.po' % locale
+ subprocess.call(command.split())
+ print command
+ command = 'msgfmt -c locale/%s/LC_MESSAGES/djangojs.po' % locale
+ print command
+ subprocess.call(command.split())
diff --git a/askbot/bin/rebuildlocales.py b/askbot/bin/rebuildlocales.py
new file mode 100644
index 00000000..86840add
--- /dev/null
+++ b/askbot/bin/rebuildlocales.py
@@ -0,0 +1,16 @@
+import os
+import subprocess
+
+locales = os.listdir('locale')
+
+def call_command(command):
+ print command
+ subprocess.call(command.split())
+
+for locale in locales:
+ call_command(
+ 'python ../manage.py jinja2_makemessages -l %s -e html,py,txt' % locale
+ )
+ call_command(
+ 'python ../manage.py makemessages -l %s -d djangojs' % locale
+ )