blob: c195d1b4d053d4c3a9f7ec5d9f11192f59597aa5 (
plain)
1
2
3
4
5
6
7
8
9
10
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())
|