Changeset 13864 for main


Ignore:
Timestamp:
26 May 2016, 12:44:29 (8 years ago)
Author:
Henrik Bettermann
Message:

Only strings can be translated.

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

    r13793 r13864  
    1111"Language: en\n"
    1212"X-Generator: Poedit 1.6.5\n"
     13
     14msgid "Term"
     15msgstr "Sem."
    1316
    1417#: waeup/kofa/students/browser.py:1013
  • main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py

    r13863 r13864  
    246246        elif self.context.student.current_mode.endswith('_pt'):
    247247            line0 = 'DIRECTORATE OF PART-TIME DEGREE PROGRAMMES\n'
    248         line1 = translate(_('Course Registration Slip'),
     248        line1 = translate('Course Registration Slip',
    249249            'waeup.kofa', target_language=portal_language) \
    250250            + ' %s' % level_title
    251         line2 = translate(_('Session'),
     251        line2 = translate('Session',
    252252            'waeup.kofa', target_language=portal_language) \
    253253            + ' %s' % self.context.getSessionString
     
    257257    def title(self):
    258258        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    259         return translate(_('Units Registered'), 'waeup.kofa',
     259        return translate('Units Registered', 'waeup.kofa',
    260260            target_language=portal_language)
    261261
     
    303303        CA = translate('CA', 'waeup.kofa', target_language=portal_language)
    304304        Grade = translate('Grade', 'waeup.kofa', target_language=portal_language)
    305         Signature = translate(_('Lecturer\'s Signature'), 'waeup.aaue',
     305        Signature = translate('Lecturer\'s Signature', 'waeup.aaue',
    306306            target_language=portal_language)
    307307        studentview = StudentBasePDFFormPage(self.context.student,
     
    354354    def render(self):
    355355        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)
     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)
    363363        studentview = StudentBasePDFFormPage(self.context.student,
    364364            self.request, self.omit_fields)
     
    390390    def label(self):
    391391        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    392         return translate(_('e-Admission Slip \n'),
     392        return translate('e-Admission Slip \n',
    393393            'waeup.kofa', target_language=portal_language) \
    394394            + ' %s' % self.context.display_fullname
     
    401401    def label(self):
    402402        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    403         return translate(_('Clearance Slip\n'),
     403        return translate('Clearance Slip\n',
    404404            'waeup.kofa', target_language=portal_language) \
    405405            + ' %s' % self.context.display_fullname
     
    441441    def title(self):
    442442        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    443         return translate(_('Matriculation Number'), 'waeup.kofa',
     443        return translate('Matriculation Number', 'waeup.kofa',
    444444            target_language=portal_language)
    445445
     
    447447    def label(self):
    448448        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    449         return translate(_('Matriculation Number Slip\n'),
     449        return translate('Matriculation Number Slip\n',
    450450            'waeup.kofa', target_language=portal_language) \
    451451            + ' %s' % self.context.display_fullname
     
    481481    def title(self):
    482482        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    483         return translate(_('Personal Data'), 'waeup.kofa',
     483        return translate('Personal Data', 'waeup.kofa',
    484484            target_language=portal_language)
    485485
     
    487487    def label(self):
    488488        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    489         return translate(_('Personal Data Slip\n'),
     489        return translate('Personal Data Slip\n',
    490490            'waeup.kofa', target_language=portal_language) \
    491491            + ' %s' % self.context.display_fullname
Note: See TracChangeset for help on using the changeset viewer.