Changeset 7741 for main/waeup.sirp/trunk/src/waeup/sirp/students
- Timestamp:
- 1 Mar 2012, 09:24:27 (13 years ago)
- 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 5 5 <thead> 6 6 <tr> 7 <th i18n:translate=""> </th>7 <th> </th> 8 8 <th i18n:translate="">Payment Id</th> 9 9 <th i18n:translate="">Creation Date</th> -
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/studylevelpage.pt
r7738 r7741 64 64 <div i18n:domain="waeup.sirp" 65 65 tal:condition="python: not len(context.keys())" i18n:translate=""> 66 The re no tickets added yet.66 The're no tickets added yet. 67 67 </div> -
main/waeup.sirp/trunk/src/waeup/sirp/students/utils.py
r7714 r7741 121 121 data_right.append([f_label,f_text]) 122 122 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]) 124 124 table = Table([[table_left, table_right],],style=SLIP_STYLE) 125 125 return table … … 305 305 fm.update() 306 306 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"])) 308 310 # Insert list of scanned documents 309 311 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) 311 315 f_label = Paragraph(f_label, style["Normal"]) 312 316 if viewlet.template.__grok_name__ == 'imagedisplay': -
main/waeup.sirp/trunk/src/waeup/sirp/students/viewlets.py
r7738 r7741 20 20 from zope.component import getUtility 21 21 from zope.interface import Interface 22 from zope.i18n import translate 22 23 from waeup.sirp.interfaces import ( 23 ISIRPObject, IExtFileStore, IFileStoreNameChooser )24 ISIRPObject, IExtFileStore, IFileStoreNameChooser, ISIRPUtils) 24 25 from waeup.sirp.interfaces import MessageFactory as _ 25 26 from waeup.sirp.utils.helpers import string_from_bytes, file_size … … 72 73 def render(self): 73 74 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) 74 79 return u'<li><a href="%s">%s</a></li>' % ( 75 url, self.text)80 url, text) 76 81 77 82 class StudentManageApplicationLink(StudentManageLink):
Note: See TracChangeset for help on using the changeset viewer.