- self.global_phrases_invalid)
-
- self._set_global_values_to_0()
-
- def notify_current_lang_done(self, lang):
- """
- Print stats for the current lang
- and then reset lang values.
- """
- LOG.info('====================================================================')
- LOG.info('Statistics for the import of %s:', lang)
- LOG.info('- %s phrases were invalid.', self.lang_phrases_invalid)
- if self.lang_phrases_invalid > 0:
- LOG.info(' Those invalid phrases have been skipped.')
- LOG.info('- %s phrases were ignored as they are already in the database',
- self.lang_phrases_ignored)
- LOG.info('- %s phrases were added to the database', self.lang_phrases_added)
- LOG.info('====================================================================')
-
- if self.lang_phrases_invalid > 0:
- LOG.warning('%s phrases were invalid and have been skipped for the import of lang %s.',
- self.lang_phrases_invalid, lang)