def update(): cmd = babel.update_catalog(dist) cmd.input_file = messages_pot cmd.output_dir = 'translations' cmd.finalize_options() cmd.run()
def __init__(self, dist, **kw): from babel.messages import frontend as babel self.babel_extract_messages = babel.extract_messages(dist) self.babel_update_messages = babel.update_catalog(dist) Command.__init__(self, dist, **kw)