Changeset 12660 for main/waeup.ikoba/trunk/src/waeup/ikoba/customers
- Timestamp:
- 3 Mar 2015, 11:10:03 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/reports/contract_statistics.py
r12659 r12660 17 17 ## 18 18 import grok 19 from zope.i18n import translate 19 20 from zope.catalog.interfaces import ICatalog 20 21 from zope.component import queryUtility, getUtility … … 125 126 126 127 def create_pdf(self): 128 portal_language = getUtility(IIkobaUtils).PORTAL_LANGUAGE 127 129 creator = getUtility(IPDFCreator, name='landscape') 128 130 table_data = tbl_data_to_table(*self.data) … … 133 135 pdf_data += [ 134 136 Table(table_data, style=TABLE_STYLE, colWidths=col_widths)] 135 doc_title = 'Contracts' 137 doc_title = translate(_('Contracts'), 'waeup.ikoba', 138 target_language=portal_language) 139 footer_title = doc_title 140 136 141 pdf = creator.create_pdf( 137 pdf_data, None, doc_title, self.author, 'Contracts'142 pdf_data, None, doc_title, self.author, footer_title 138 143 ) 139 144 return pdf
Note: See TracChangeset for help on using the changeset viewer.