Changeset 8313 for main


Ignore:
Timestamp:
29 Apr 2012, 20:40:39 (12 years ago)
Author:
Henrik Bettermann
Message:

Translate comment on application slips.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/pdf.py

    r8286 r8313  
    8282    def _addComments(self, data):
    8383        if self.context.state == 'created':
    84             comment1 = _(
     84            comment = translate(_(
    8585                'Proceed to the login page of the portal' +
    8686                ' and enter your new credentials:' +
    87                 ' user name= ${a}, password = ${b}.', mapping = {
     87                ' user name= ${a}, password = ${b}. ' +
     88                'Change your password when you have logged in.',
     89                mapping = {
    8890                    'a':self.context.student_id,
    8991                    'b':self.context.application_number}
    90                 )
    91             comment2 = _(
    92                 'Change your password when you have logged in.'
    93                 )
    94             comment1 = Paragraph(comment1, SMALL_PARA_STYLE)
    95             comment2 = Paragraph(comment2, SMALL_PARA_STYLE)
    96             data.extend([Spacer(1, 18), comment1, comment2])
     92                ))
     93            comment = Paragraph(comment, SMALL_PARA_STYLE)
     94            data.extend([Spacer(1, 18), comment])
    9795        return data
    9896
Note: See TracChangeset for help on using the changeset viewer.