c3po/converters/po_csv.py
def _write_header(po_path, lang, header):
    """
    Write header into po file for specific lang.
    Metadata are read from settings file.
    """
    po_file = open(po_path, 'w')
    po_file.write(header + '\n')
    po_file.write(
        'msgid ""' +
        '\nmsgstr ""' +
        '\n"MIME-Version: ' + settings.METADATA['MIME-Version'] + r'\n"'
        '\n"Content-Type: ' + settings.METADATA['Content-Type'] + r'\n"'
        '\n"Content-Transfer-Encoding: ' +
        settings.METADATA['Content-Transfer-Encoding'] + r'\n"'
        '\n"Language: ' + lang + r'\n"' + '\n')
    po_file.close()
def _write_header(po_path, lang, header):
    po_file = open(po_path, 'w')
    po_file.write(header + '\n')
    po_file.write(
        'msgid ""' +
        '\nmsgstr ""' +
        '\n"MIME-Version: ' + settings.METADATA['MIME-Version'] + r'\n"'
        '\n"Content-Type: ' + settings.METADATA['Content-Type'] + r'\n"'
        '\n"Content-Transfer-Encoding: ' +
        settings.METADATA['Content-Transfer-Encoding'] + r'\n"'
        '\n"Language: ' + lang + r'\n"' + '\n')
    po_file.close()
def _write_header ( po_path , lang , header ) : po_file = open ( po_path , 'w' ) po_file . write ( header + '\n' ) po_file . write ( 'msgid ""' + '\nmsgstr ""' + '\n"MIME-Version: ' + settings . METADATA [ 'MIME-Version' ] + r'\n"' '\n"Content-Type: ' + settings . METADATA [ 'Content-Type' ] + r'\n"' '\n"Content-Transfer-Encoding: ' + settings . METADATA [ 'Content-Transfer-Encoding' ] + r'\n"' '\n"Language: ' + lang + r'\n"' + '\n' ) po_file . close ( )
Write header into po file for specific lang.
    Metadata are read from settings file.
Write header into po file for specific lang . Metadata are read from settings file .