(self, worksheet)
extract translations from worksheet and converts to a po file

        :return: content of file generated
extract translations from worksheet and converts to a po file
extract translations from worksheet and converts to a po file
def _generate_po_content(self, worksheet):
        """
        extract translations from worksheet and converts to a po file

        :return: content of file generated
        """
        translations = self._generate_translations_for_po(worksheet)
        with PoFileGenerator(translations, {}) as po_file_generator:
            generated_files = po_file_generator.generate_translation_files()
            with open(generated_files[0].path, 'rb') as f:
                return f.read()
def _generate_po_content ( self , worksheet ) : translations = self . _generate_translations_for_po ( worksheet ) with PoFileGenerator ( translations , { } ) as po_file_generator : generated_files = po_file_generator . generate_translation_files ( ) with open ( generated_files [ 0 ] . path , 'rb' ) as f : return f . read ( )