def csv_to_ods(trans_csv, meta_csv, local_ods):
    """
    Converts csv files to one ods file
    :param trans_csv: path to csv file with translations
    :param meta_csv: path to csv file with metadata
    :param local_ods: path to new ods file
    """
    trans_reader = UnicodeReader(trans_csv)
    meta_reader = UnicodeReader(meta_csv)

    ods = ODS()

    trans_title = trans_reader.next()
    meta_reader.next()

    _prepare_ods_columns(ods, trans_title)

    for i, (trans_row, meta_row) in enumerate(izip(trans_reader, meta_reader)):
        _write_row_into_ods(ods, 0, i, trans_row)
        _write_row_into_ods(ods, 1, i, meta_row)

    trans_reader.close()
    meta_reader.close()

    ods.save(local_ods)
def csv_to_ods(trans_csv, meta_csv, local_ods):
    """
    Converts csv files to one ods file
    :param trans_csv: path to csv file with translations
    :param meta_csv: path to csv file with metadata
    :param local_ods: path to new ods file
    """
    trans_reader = UnicodeReader(trans_csv)
    meta_reader = UnicodeReader(meta_csv)

    ods = ODS()

    trans_title = trans_reader.next()
    meta_reader.next()

    _prepare_ods_columns(ods, trans_title)

    for i, (trans_row, meta_row) in enumerate(izip(trans_reader, meta_reader)):
        _write_row_into_ods(ods, 0, i, trans_row)
        _write_row_into_ods(ods, 1, i, meta_row)

    trans_reader.close()
    meta_reader.close()

    ods.save(local_ods)
def csv_to_ods ( trans_csv , meta_csv , local_ods ) : trans_reader = UnicodeReader ( trans_csv ) meta_reader = UnicodeReader ( meta_csv ) ods = ODS ( ) trans_title = trans_reader . next ( ) meta_reader . next ( ) _prepare_ods_columns ( ods , trans_title ) for i , ( trans_row , meta_row ) in enumerate ( izip ( trans_reader , meta_reader ) ) : _write_row_into_ods ( ods , 0 , i , trans_row ) _write_row_into_ods ( ods , 1 , i , meta_row ) trans_reader . close ( ) meta_reader . close ( ) ods . save ( local_ods )
Converts csv files to one ods file
    :param trans_csv: path to csv file with translations
    :param meta_csv: path to csv file with metadata
    :param local_ods: path to new ods file
Converts csv files to one ods file : param trans_csv : path to csv file with translations : param meta_csv : path to csv file with metadata : param local_ods : path to new ods file