Пример #1
0
        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
Пример #2
0
        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
Пример #3
0
    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)
Пример #4
0
Файл: setup.py Проект: SvHu/svs
 def initialize_options(self):
     compile_catalog.initialize_options(self)
     self.directory = pkg_resources.resource_filename('svs', 'data/i18n/locales')