Changeset 9909


Ignore:
Timestamp:
23 Jan 2013, 12:12:22 (12 years ago)
Author:
Henrik Bettermann
Message:

We don't need the MessageFactory? for terms which are already translated in waeup.kofa.

Remove Grade from CustomExportPDFCourseRegistrationSlipPage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py

    r9908 r9909  
    199199    def render(self):
    200200        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    201         Sem = translate(_('Sem.'), 'waeup.kofa', target_language=portal_language)
    202         Code = translate(_('Code'), 'waeup.kofa', target_language=portal_language)
    203         Title = translate(_('Title'), 'waeup.kofa', target_language=portal_language)
    204         Dept = translate(_('Dept.'), 'waeup.kofa', target_language=portal_language)
    205         Faculty = translate(_('Faculty'), 'waeup.kofa', target_language=portal_language)
    206         Cred = translate(_('Cred.'), 'waeup.kofa', target_language=portal_language)
    207         Score = translate(_('Score'), 'waeup.kofa', target_language=portal_language)
    208         Grade = translate(_('Grade'), 'waeup.kofa', target_language=portal_language)
     201        Sem = translate('Sem.', 'waeup.kofa', target_language=portal_language)
     202        Code = translate('Code', 'waeup.kofa', target_language=portal_language)
     203        Title = translate('Title', 'waeup.kofa', target_language=portal_language)
     204        Dept = translate('Dept.', 'waeup.kofa', target_language=portal_language)
     205        Faculty = translate('Faculty', 'waeup.kofa', target_language=portal_language)
     206        Cred = translate(_('Credits'), 'waeup.uniben', target_language=portal_language)
     207        Score = translate('Score', 'waeup.kofa', target_language=portal_language)
    209208        studentview = StudentBasePDFFormPage(self.context.student,
    210209            self.request, self.omit_fields)
     
    248247    def render(self):
    249248        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    250         Sem = translate(_('Sem.'), 'waeup.kofa', target_language=portal_language)
    251         Code = translate(_('Code'), 'waeup.kofa', target_language=portal_language)
    252         Title = translate(_('Title'), 'waeup.kofa', target_language=portal_language)
    253         Dept = translate(_('Dept.'), 'waeup.kofa', target_language=portal_language)
    254         Faculty = translate(_('Faculty'), 'waeup.kofa', target_language=portal_language)
    255         Cred = translate(_('Cred.'), 'waeup.kofa', target_language=portal_language)
    256         Score = translate(_('Score'), 'waeup.kofa', target_language=portal_language)
    257         Grade = translate(_('Grade'), 'waeup.kofa', target_language=portal_language)
     249        Sem = translate('Sem.', 'waeup.kofa', target_language=portal_language)
     250        Code = translate('Code', 'waeup.kofa', target_language=portal_language)
     251        Title = translate('Title', 'waeup.kofa', target_language=portal_language)
     252        Dept = translate('Dept.', 'waeup.kofa', target_language=portal_language)
     253        Faculty = translate('Faculty', 'waeup.kofa', target_language=portal_language)
     254        Cred = translate(_('Credits'), 'waeup.uniben', target_language=portal_language)
     255        Score = translate('Score', 'waeup.kofa', target_language=portal_language)
     256        Grade = translate('Grade', 'waeup.kofa', target_language=portal_language)
    258257        studentview = StudentBasePDFFormPage(self.context.student,
    259258            self.request, self.omit_fields)
Note: See TracChangeset for help on using the changeset viewer.