def initialize_options(self): """Simply set default domain and directory attributes to the correct path for bpython.""" _compile_catalog.initialize_options(self) self.domain = 'bpython' self.directory = translations_dir self.use_fuzzy = True
def initialize_options(self): """Simply set default domain and directory attributes to the correct path for bpython.""" _compile_catalog.initialize_options(self) self.domain = "bpython" self.directory = translations_dir self.use_fuzzy = True
def run(self): base_compile_catalog.run(self) for potfile in self.get_sphinx_pot_list(): base_compile_catalog.initialize_options(self) self.domain = os.path.splitext(os.path.basename(potfile))[0] self.directory = get_path([DOCDIR, 'rst', 'i18n']).replace(BASEDIR + os.sep, '') self.use_fuzzy = True base_compile_catalog.run(self)