コード例 #1
0
 def init(self):
     # type: () -> None
     Builder.init(self)
     self.env.set_versioning_method(self.versioning_method,
                                    self.env.config.gettext_uuid)
     self.tags = I18nTags()
     self.catalogs = defaultdict(Catalog)  # type: DefaultDict[unicode, Catalog]
コード例 #2
0
ファイル: gettext.py プロジェクト: sam-m888/sphinx
 def init(self):
     # type: () -> None
     Builder.init(self)
     self.env.set_versioning_method(self.versioning_method,
                                    self.env.config.gettext_uuid)
     self.tags = I18nTags()
     self.catalogs = defaultdict(Catalog)  # type: DefaultDict[unicode, Catalog]
コード例 #3
0
 def init(self):
     Builder.init(self)
     errors = False
     if not self.config.omegat_translated_path:
         self.info(red("'omegat_translated_path' should not be empty."))
         errors = True
     if not self.config.omegat_project_path:
         self.info(red("'omegat_project_path' should not be empty."))
         errors = True
     if self.config.omegat_translated_path not in self.config.locale_dirs:
         self.info(red("'omegat_translated_path' should be in locale_dirs."))
         errors = True
     if not self.config.language:
         self.info(red("'language' should be set."))
         errors = True
     if errors:
         self.info(red("    -> Please check conf.py"))
         raise RuntimeError("lack setting")
コード例 #4
0
ファイル: compiler.py プロジェクト: sphinx-contrib/omegat
 def init(self):
     Builder.init(self)
     errors = False
     if not self.config.omegat_translated_path:
         self.info(red("'omegat_translated_path' should not be empty."))
         errors = True
     if not self.config.omegat_project_path:
         self.info(red("'omegat_project_path' should not be empty."))
         errors = True
     if self.config.omegat_translated_path not in self.config.locale_dirs:
         self.info(red("'omegat_translated_path' should be in locale_dirs."))
         errors = True
     if not self.config.language:
         self.info(red("'language' should be set."))
         errors = True
     if errors:
         self.info(red("    -> Please check conf.py"))
         raise RuntimeError("lack setting")
コード例 #5
0
ファイル: gettext.py プロジェクト: amazingCreate/sphinx
 def init(self):
     Builder.init(self)
     self.catalogs = defaultdict(Catalog)
コード例 #6
0
 def init(self):
     Builder.init(self)
     self.catalogs = defaultdict(Catalog)
コード例 #7
0
ファイル: gettext.py プロジェクト: swisscodemonkeys/sphinx
 def init(self):
     # type: () -> None
     Builder.init(self)
     self.tags = I18nTags()
     self.catalogs = defaultdict(
         Catalog)  # type: defaultdict[unicode, Catalog]
コード例 #8
0
 def init(self):
     Builder.init(self)
     self.tags = I18nTags()
     self.catalogs = defaultdict(Catalog)
コード例 #9
0
ファイル: gettext.py プロジェクト: Felix-neko/sphinx
 def init(self):
     # type: () -> None
     Builder.init(self)
     self.tags = I18nTags()
     self.catalogs = defaultdict(Catalog)  # type: defaultdict[unicode, Catalog]
コード例 #10
0
ファイル: gettext.py プロジェクト: TimKam/sphinx
 def init(self):
     Builder.init(self)
     self.tags = I18nTags()
     self.catalogs = defaultdict(Catalog)