Ignore:
Timestamp:
28 Nov 2013, 16:50:50 (11 years ago)
Author:
Henrik Bettermann
Message:

Localize StudentManageApplicationLink? properly.

File:
1 edited

Legend:

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

    r10803 r10805  
    9696            self.context.student, attr=self.link)
    9797        if slip:
     98            lang = self.request.cookies.get('kofa.language')
     99            text = translate(self.text, 'waeup.kofa',
     100                target_language=lang)
    98101            url = self.view.url(self.context.student,self.link)
    99102            return u'<li><a href="%s">%s</a></li>' % (
    100                     url, self.text)
     103                    url, text)
    101104        return ''
    102105
     
    780783        targets = []
    781784        if app_slip:
    782             targets = [{'url':student_url + '/application_slip', 'title':'Application Slip'},]
     785            targets = [{'url':student_url + '/application_slip',
     786                        'title':_('Application Slip')},]
    783787        targets += [
    784788            {'url':student_url, 'title':'Base Data'},
Note: See TracChangeset for help on using the changeset viewer.