c3po/converters/po_ods.py
def _prepare_ods_columns(ods, trans_title_row):
    """
    Prepare columns in new ods file, create new sheet for metadata,
    set columns color and width. Set formatting style info in your
    settings.py file in ~/.c3po/ folder.
    """
    ods.content.getSheet(0).setSheetName('Translations')
    ods.content.makeSheet('Meta options')
    ods.content.getColumn(0).setWidth('5.0in')
    ods.content.getCell(0, 0).stringValue('metadata')\
        .setCellColor(settings.TITLE_ROW_BG_COLOR) \
        .setBold(True).setFontColor(settings.TITLE_ROW_FONT_COLOR)

    ods.content.getSheet(0)
    ods.content.getColumn(0).setWidth('1.5in')
    ods.content.getCell(0, 0) \
        .setCellColor(settings.TITLE_ROW_BG_COLOR) \
        .setBold(True).setFontColor(settings.TITLE_ROW_FONT_COLOR)
    for i, title in enumerate(trans_title_row):
        ods.content.getColumn(i).setWidth(settings.MSGSTR_COLUMN_WIDTH)
        ods.content.getCell(i, 0).stringValue(title)\
            .setCellColor(settings.TITLE_ROW_BG_COLOR) \
            .setBold(True).setFontColor(settings.TITLE_ROW_FONT_COLOR)
    ods.content.getColumn(0).setWidth(settings.NOTES_COLUMN_WIDTH)
def _prepare_ods_columns(ods, trans_title_row):
    """
    Prepare columns in new ods file, create new sheet for metadata,
    set columns color and width. Set formatting style info in your
    settings.py file in ~/.c3po/ folder.
    """
    ods.content.getSheet(0).setSheetName('Translations')
    ods.content.makeSheet('Meta options')
    ods.content.getColumn(0).setWidth('5.0in')
    ods.content.getCell(0, 0).stringValue('metadata')\
        .setCellColor(settings.TITLE_ROW_BG_COLOR) \
        .setBold(True).setFontColor(settings.TITLE_ROW_FONT_COLOR)

    ods.content.getSheet(0)
    ods.content.getColumn(0).setWidth('1.5in')
    ods.content.getCell(0, 0) \
        .setCellColor(settings.TITLE_ROW_BG_COLOR) \
        .setBold(True).setFontColor(settings.TITLE_ROW_FONT_COLOR)
    for i, title in enumerate(trans_title_row):
        ods.content.getColumn(i).setWidth(settings.MSGSTR_COLUMN_WIDTH)
        ods.content.getCell(i, 0).stringValue(title)\
            .setCellColor(settings.TITLE_ROW_BG_COLOR) \
            .setBold(True).setFontColor(settings.TITLE_ROW_FONT_COLOR)
    ods.content.getColumn(0).setWidth(settings.NOTES_COLUMN_WIDTH)
def _prepare_ods_columns ( ods , trans_title_row ) : ods . content . getSheet ( 0 ) . setSheetName ( 'Translations' ) ods . content . makeSheet ( 'Meta options' ) ods . content . getColumn ( 0 ) . setWidth ( '5.0in' ) ods . content . getCell ( 0 , 0 ) . stringValue ( 'metadata' ) . setCellColor ( settings . TITLE_ROW_BG_COLOR ) . setBold ( True ) . setFontColor ( settings . TITLE_ROW_FONT_COLOR ) ods . content . getSheet ( 0 ) ods . content . getColumn ( 0 ) . setWidth ( '1.5in' ) ods . content . getCell ( 0 , 0 ) . setCellColor ( settings . TITLE_ROW_BG_COLOR ) . setBold ( True ) . setFontColor ( settings . TITLE_ROW_FONT_COLOR ) for i , title in enumerate ( trans_title_row ) : ods . content . getColumn ( i ) . setWidth ( settings . MSGSTR_COLUMN_WIDTH ) ods . content . getCell ( i , 0 ) . stringValue ( title ) . setCellColor ( settings . TITLE_ROW_BG_COLOR ) . setBold ( True ) . setFontColor ( settings . TITLE_ROW_FONT_COLOR ) ods . content . getColumn ( 0 ) . setWidth ( settings . NOTES_COLUMN_WIDTH )
Prepare columns in new ods file, create new sheet for metadata,
    set columns color and width. Set formatting style info in your
    settings.py file in ~/.c3po/ folder.
Prepare columns in new ods file create new sheet for metadata set columns color and width . Set formatting style info in your settings . py file in ~ / . c3po / folder .