summaryrefslogtreecommitdiffstats
path: root/askbot/bin/checklocales.py
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/bin/checklocales.py')
-rw-r--r--askbot/bin/checklocales.py11
1 files changed, 11 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())