Ignore:
Timestamp:
1 Mar 2012, 09:24:27 (13 years ago)
Author:
Henrik Bettermann
Message:

Some repairs.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/students
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/paymentsmanagepage.pt

    r7738 r7741  
    55    <thead>
    66    <tr>
    7       <th i18n:translate="">&nbsp;</th>
     7      <th>&nbsp;</th>
    88      <th i18n:translate="">Payment Id</th>
    99      <th i18n:translate="">Creation Date</th>
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/studylevelpage.pt

    r7738 r7741  
    6464<div i18n:domain="waeup.sirp"
    6565  tal:condition="python: not len(context.keys())" i18n:translate="">
    66   There no tickets added yet.
     66  The're no tickets added yet.
    6767</div>
  • main/waeup.sirp/trunk/src/waeup/sirp/students/utils.py

    r7714 r7741  
    121121        data_right.append([f_label,f_text])
    122122    table_left = Table(data_left,style=SLIP_STYLE)
    123     table_right = Table(data_right,style=SLIP_STYLE, colWidths=[4*cm, 10*cm])
     123    table_right = Table(data_right,style=SLIP_STYLE, colWidths=[6*cm, 8*cm])
    124124    table = Table([[table_left, table_right],],style=SLIP_STYLE)
    125125    return table
     
    305305        fm.update()
    306306        if fm.viewlets:
    307             story.append(Paragraph('Scanned Documents', style["Heading3"]))
     307            sc_translation = translate(_('Scanned Documents'), 'waeup.sirp',
     308                target_language=portal_language)
     309            story.append(Paragraph(sc_translation, style["Heading3"]))
    308310            # Insert list of scanned documents
    309311            for viewlet in fm.viewlets:
    310                 f_label = formatted_label(size=12) % viewlet.label
     312                f_label = formatted_label(size=12) % translate(
     313                viewlet.label, 'waeup.sirp',
     314                target_language=portal_language)
    311315                f_label = Paragraph(f_label, style["Normal"])
    312316                if viewlet.template.__grok_name__ == 'imagedisplay':
  • main/waeup.sirp/trunk/src/waeup/sirp/students/viewlets.py

    r7738 r7741  
    2020from zope.component import getUtility
    2121from zope.interface import Interface
     22from zope.i18n import translate
    2223from waeup.sirp.interfaces import (
    23     ISIRPObject, IExtFileStore, IFileStoreNameChooser)
     24    ISIRPObject, IExtFileStore, IFileStoreNameChooser, ISIRPUtils)
    2425from waeup.sirp.interfaces import MessageFactory as _
    2526from waeup.sirp.utils.helpers import string_from_bytes, file_size
     
    7273    def render(self):
    7374        url = self.view.url(self.context.getStudent(), self.link)
     75        portal_language = getUtility(ISIRPUtils).PORTAL_LANGUAGE
     76        lang = self.request.cookies.get('sirp.language', portal_language)
     77        text = translate(self.text, 'waeup.sirp',
     78            target_language=lang)
    7479        return u'<li><a href="%s">%s</a></li>' % (
    75                 url, self.text)
     80                url, text)
    7681
    7782class StudentManageApplicationLink(StudentManageLink):
Note: See TracChangeset for help on using the changeset viewer.