(self)
submit translation files to transifex
submit translation files to transifex
submit translation files to transifex
def send_translation_files(self):
        """
        submit translation files to transifex
        """
        app_trans_generator = AppTranslationsGenerator(
            self.domain, self.build_id, self.version,
            self.key_lang, self.source_lang, self.lang_prefix,
            self.exclude_if_default, self.use_version_postfix)
        with PoFileGenerator(app_trans_generator.translations,
                             app_trans_generator.metadata) as po_file_generator:
            generated_files = po_file_generator.generate_translation_files()
            return self._send_files_to_transifex(generated_files, app_trans_generator)
def send_translation_files ( self ) : app_trans_generator = AppTranslationsGenerator ( self . domain , self . build_id , self . version , self . key_lang , self . source_lang , self . lang_prefix , self . exclude_if_default , self . use_version_postfix ) with PoFileGenerator ( app_trans_generator . translations , app_trans_generator . metadata ) as po_file_generator : generated_files = po_file_generator . generate_translation_files ( ) return self . _send_files_to_transifex ( generated_files , app_trans_generator )