Ignore:
Timestamp:
2 Sep 2016, 09:46:35 (8 years ago)
Author:
Henrik Bettermann
Message:

Show more information on PDFCourseticketsOverview.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r13899 r14151  
    723723                  show_scans=True, topMargin=1.5,
    724724                  omit_fields=()):
    725         """Render pdf slips for various pages.
     725        """Render pdf slips for various pages (also some pages
     726        in the applicants module).
    726727        """
    727728        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
     
    942943        creator = getUtility(IPDFCreator, name='landscape')
    943944        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"]),]
    946951        pdf_data.append(Spacer(1, 20))
    947952        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}))
    950957        author = '%s (%s)' % (view.request.principal.title,
    951958                              view.request.principal.id)
Note: See TracChangeset for help on using the changeset viewer.