compile pybabel
authorMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Wed, 28 Mar 2012 13:02:48 +0000 (15:02 +0200)
committerMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Wed, 28 Mar 2012 13:02:48 +0000 (15:02 +0200)
apps/wolnelektury_core/management/commands/localepack.py

index 813515e..6133762 100644 (file)
@@ -101,6 +101,7 @@ class CustomLocale(Locale):
         for lc in zip(*languages)[0]:
             shutil.copy2(os.path.join(input_directory, lc, self.name + '.po'),
                          self.po_file(lc))
         for lc in zip(*languages)[0]:
             shutil.copy2(os.path.join(input_directory, lc, self.name + '.po'),
                          self.po_file(lc))
+        os.system('pybabel compile -D django -d %s' % os.dirname(self.out_file))
 
 
 SOURCES = []
 
 
 SOURCES = []