Example #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]
Example #2
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]
Example #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")
Example #4
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")
Example #5
0
 def init(self):
     Builder.init(self)
     self.catalogs = defaultdict(Catalog)
Example #6
0
 def init(self):
     Builder.init(self)
     self.catalogs = defaultdict(Catalog)
Example #7
0
 def init(self):
     # type: () -> None
     Builder.init(self)
     self.tags = I18nTags()
     self.catalogs = defaultdict(
         Catalog)  # type: defaultdict[unicode, Catalog]
Example #8
0
 def init(self):
     Builder.init(self)
     self.tags = I18nTags()
     self.catalogs = defaultdict(Catalog)
Example #9
0
 def init(self):
     # type: () -> None
     Builder.init(self)
     self.tags = I18nTags()
     self.catalogs = defaultdict(Catalog)  # type: defaultdict[unicode, Catalog]
Example #10
0
 def init(self):
     Builder.init(self)
     self.tags = I18nTags()
     self.catalogs = defaultdict(Catalog)