index 0fca2cec65cfe814cb28c5ab5c607163cb285cae..4d2a1f57d2eba93a6c7a90ce493c4462f86de3de 100644 (file)
n-len(err), n)
print 'Missing:', '\nMissing: '.join(err)
+def build_message_files(command):
+ """For each locale/*.po, build .mo file in target locale directory"""
+ for (_src, _dst) in list_message_files():
+ _build_dst = os.path.join("build", _dst)
+ command.mkpath(os.path.dirname(_build_dst))
+ command.announce("Compiling %s -> %s" % (_src, _build_dst))
+ msgfmt.make(_src, _build_dst)
-class build(base):
- def build_message_files(self):
- """For each locale/*.po, build .mo file in target locale directory"""
- for (_src, _dst) in list_message_files():
- _build_dst = os.path.join("build", _dst)
- self.mkpath(os.path.dirname(_build_dst))
- self.announce("Compiling %s -> %s" % (_src, _build_dst))
- msgfmt.make(_src, _build_dst)
+class build(base):
def run(self):
check_manifest()
- self.build_message_files()
+ build_message_files(self)
base.run(self)