Changeset 13866


Ignore:
Timestamp:
26 May 2016, 19:05:44 (9 years ago)
Author:
Henrik Bettermann
Message:

Revert last changes. Translate 'Term'.

Location:
main/waeup.aaue/trunk/src/waeup/aaue
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/locales/en/LC_MESSAGES/waeup.kofa.po

    r13864 r13866  
    1313
    1414msgid "Term"
    15 msgstr "Sem."
     15msgstr "Semester"
    1616
    1717#: waeup/kofa/students/browser.py:1013
  • main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py

    r13864 r13866  
    246246        elif self.context.student.current_mode.endswith('_pt'):
    247247            line0 = 'DIRECTORATE OF PART-TIME DEGREE PROGRAMMES\n'
    248         line1 = translate('Course Registration Slip',
    249             'waeup.kofa', target_language=portal_language) \
     248        line1 = translate(_('Course Registration Slip'),
     249            target_language=portal_language) \
    250250            + ' %s' % level_title
    251         line2 = translate('Session',
    252             'waeup.kofa', target_language=portal_language) \
     251        line2 = translate(_('Session'),
     252            target_language=portal_language) \
    253253            + ' %s' % self.context.getSessionString
    254254        return '%s%s\n%s' % (line0, line1, line2)
     
    257257    def title(self):
    258258        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    259         return translate('Units Registered', 'waeup.kofa',
    260             target_language=portal_language)
     259        return translate(_('Units Registered'), target_language=portal_language)
    261260
    262261    def _signatures(self):
     
    296295    def render(self):
    297296        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    298         Sem = translate('Sem.', 'waeup.kofa', target_language=portal_language)
    299         Code = translate('Code', 'waeup.kofa', target_language=portal_language)
    300         Title = translate('Title', 'waeup.kofa', target_language=portal_language)
    301         Cred = translate('Cred.', 'waeup.kofa', target_language=portal_language)
    302         Score = translate('Score', 'waeup.kofa', target_language=portal_language)
    303         CA = translate('CA', 'waeup.kofa', target_language=portal_language)
    304         Grade = translate('Grade', 'waeup.kofa', target_language=portal_language)
    305         Signature = translate('Lecturer\'s Signature', 'waeup.aaue',
     297        Sem = translate(_('Sem.'), target_language=portal_language)
     298        Code = translate(_('Code'), target_language=portal_language)
     299        Title = translate(_('Title'), target_language=portal_language)
     300        Cred = translate(_('Cred.'), target_language=portal_language)
     301        Score = translate(_('Score'), target_language=portal_language)
     302        CA = translate(_('CA'), target_language=portal_language)
     303        Grade = translate(_('Grade'), target_language=portal_language)
     304        Signature = translate(_('Lecturer\'s Signature'), 'waeup.aaue',
    306305            target_language=portal_language)
    307306        studentview = StudentBasePDFFormPage(self.context.student,
     
    354353    def render(self):
    355354        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    356         Term = translate('Term', 'waeup.kofa', target_language=portal_language)
    357         Code = translate('Code', 'waeup.kofa', target_language=portal_language)
    358         Title = translate('Title', 'waeup.kofa', target_language=portal_language)
    359         Cred = translate('Credits', 'waeup.kofa', target_language=portal_language)
    360         Score = translate('Score', 'waeup.kofa', target_language=portal_language)
    361         #CA = translate('CA', 'waeup.kofa', target_language=portal_language)
    362         Grade = translate('Grade', 'waeup.kofa', target_language=portal_language)
     355        Term = translate(_('Sem.'), target_language=portal_language)
     356        Code = translate(_('Code'), target_language=portal_language)
     357        Title = translate(_('Title'), target_language=portal_language)
     358        Cred = translate(_('Credits'), target_language=portal_language)
     359        Score = translate(_('Score'), target_language=portal_language)
     360        #CA = translate(_('CA'), target_language=portal_language)
     361        Grade = translate(_('Grade'), target_language=portal_language)
    363362        studentview = StudentBasePDFFormPage(self.context.student,
    364363            self.request, self.omit_fields)
     
    390389    def label(self):
    391390        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    392         return translate('e-Admission Slip \n',
    393             'waeup.kofa', target_language=portal_language) \
     391        return translate(_('e-Admission Slip \n'),
     392            target_language=portal_language) \
    394393            + ' %s' % self.context.display_fullname
    395394
     
    401400    def label(self):
    402401        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    403         return translate('Clearance Slip\n',
    404             'waeup.kofa', target_language=portal_language) \
     402        return translate(_('Clearance Slip\n'),
     403            target_language=portal_language) \
    405404            + ' %s' % self.context.display_fullname
    406405
     
    441440    def title(self):
    442441        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    443         return translate('Matriculation Number', 'waeup.kofa',
     442        return translate(_('Matriculation Number'), 'waeup.kofa',
    444443            target_language=portal_language)
    445444
     
    447446    def label(self):
    448447        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    449         return translate('Matriculation Number Slip\n',
    450             'waeup.kofa', target_language=portal_language) \
     448        return translate(_('Matriculation Number Slip\n'),
     449            target_language=portal_language) \
    451450            + ' %s' % self.context.display_fullname
    452451
     
    481480    def title(self):
    482481        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    483         return translate('Personal Data', 'waeup.kofa',
     482        return translate(_('Personal Data'), 'waeup.kofa',
    484483            target_language=portal_language)
    485484
     
    487486    def label(self):
    488487        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    489         return translate('Personal Data Slip\n',
    490             'waeup.kofa', target_language=portal_language) \
     488        return translate(_('Personal Data Slip\n'),
     489            target_language=portal_language) \
    491490            + ' %s' % self.context.display_fullname
    492491
Note: See TracChangeset for help on using the changeset viewer.