Changeset 14151 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 2 Sep 2016, 09:46:35 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r13899 r14151 723 723 show_scans=True, topMargin=1.5, 724 724 omit_fields=()): 725 """Render pdf slips for various pages. 725 """Render pdf slips for various pages (also some pages 726 in the applicants module). 726 727 """ 727 728 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE … … 942 943 creator = getUtility(IPDFCreator, name='landscape') 943 944 style = getSampleStyleSheet() 944 pdf_data = [Paragraph('<b>Lecturer(s): %s</b>' % lecturers, 945 style["Normal"]),] 945 pdf_data = [Paragraph( 946 translate(_('<b>Lecturer(s): ${a}</b>', 947 mapping = {'a':lecturers})), style["Normal"]),] 948 pdf_data += [Paragraph( 949 translate(_('<b>Credits: ${a}</b>', 950 mapping = {'a':view.context.credits})), style["Normal"]),] 946 951 pdf_data.append(Spacer(1, 20)) 947 952 pdf_data += [Table(table_data, style=CONTENT_STYLE)] 948 doc_title = translate(_('${a} - Session ${b}', 949 mapping = {'a':view.context.code, 'b':session})) 953 doc_title = translate(_('${a} (${b}) - Academic Session ${d}', 954 mapping = {'a':view.context.title, 955 'b':view.context.code, 956 'd':session})) 950 957 author = '%s (%s)' % (view.request.principal.title, 951 958 view.request.principal.id)
Note: See TracChangeset for help on using the changeset viewer.