Changeset 7735 for main


Ignore:
Timestamp:
29 Feb 2012, 23:05:58 (13 years ago)
Author:
Henrik Bettermann
Message:

Backup internationalization work in progress.

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

Legend:

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

    r7734 r7735  
    169169    grok.template('containerpage')
    170170    label = _('Student Section')
     171    search_button = _('Search')
    171172    pnav = 4
    172173
     
    202203    pnav = 4
    203204    label = _('Manage student section')
     205    search_button = _('Search')
     206    remove_button = _('Remove selected')
    204207
    205208    def update(self, *args, **kw):
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/accommodationmanagepage.pt

    r7464 r7735  
    11<form action="." tal:attributes="action request/URL" method="POST"
    2       enctype="multipart/form-data">
     2      i18n:domain="waeup.sirp" enctype="multipart/form-data">
    33
    44  <table class="display dataTableManage">
     
    66    <tr>
    77      <th tal:condition="not: layout/isStudent">&nbsp;</th>
    8       <th>Session</th>
    9       <th>Booking Date</th>
    10       <th>Bed Coordinates</th>
    11       <th>Bed Category</th>
     8      <th i18n:translate="">Session</th>
     9      <th i18n:translate="">Booking Date</th>
     10      <th i18n:translate="">Bed Coordinates</th>
     11      <th i18n:translate="">Bed Category</th>
    1212    </tr>
    1313    </thead>
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/basemanagepage.pt

    r7669 r7735  
    11<form action="." tal:attributes="action request/URL" method="post"
    2       enctype="multipart/form-data">
     2      i18n:domain="waeup.sirp" enctype="multipart/form-data">
    33
    44  <ul class="tabs" data-tabs="tabs">
    5     <li tal:attributes="class view/tab1"><a href="#tab-1"><span>Base Data</span></a></li>
    6     <li tal:attributes="class view/tab2"><a href="#tab-2"><span>Passport Picture</span></a></li>
     5    <li tal:attributes="class view/tab1"><a href="#tab-1">
     6    <span i18n:translate="">Base Data</span></a></li>
     7    <li tal:attributes="class view/tab2"><a href="#tab-2">
     8    <span i18n:translate="">Passport Picture</span></a></li>
    79  </ul>
    810
     
    1517              <td class="fieldname">
    1618                <span tal:condition="widget/required">*</span>
    17                 <span tal:content="widget/label">label</span>:
     19                <span tal:content="widget/label">LABEL</span>:
    1820              </td>
    1921              <td>
     
    2224                </span>
    2325                <tal:error tal:condition="widget/error">
    24                   <span tal:replace="structure widget/error">error</span>
     26                  <span tal:replace="structure widget/error">ERROR</span>
    2527                </tal:error>
    2628                <tal:hint tal:condition="widget/hint">
    27                   <span tal:content="structure widget/hint">hint</span>
     29                  <span tal:content="structure widget/hint">HINT</span>
    2830                </tal:hint>
    2931              </td>
     
    3133          </tal:block>
    3234          <tr>
    33             <td class="fieldname">Password:</td>
     35            <td class="fieldname" i18n:translate="">Password:</td>
    3436            <td>
    3537              <input name="password" type="password"  />
     
    3739          </tr>
    3840          <tr>
    39             <td class="fieldname">Retype password:</td>
     41            <td class="fieldname" i18n:translate="">Retype password:</td>
    4042            <td>
    4143              <input name="control_password" type="password" />
     
    4345          </tr>
    4446          <tr>
    45             <td class="fieldname">Registration Transition:</td>
     47            <td class="fieldname" i18n:translate="">Registration Transition:</td>
    4648            <td>
    4749              <select id="transition" name="transition">
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/basepage.pt

    r7464 r7735  
    1 <table class="form-table">
     1<table i18n:domain="waeup.sirp" class="form-table">
    22  <tbody>
    33    <tal:block repeat="widget view/widgets">
     
    1212    </tal:block>
    1313    <tr>
    14       <td class="fieldname">
     14      <td class="fieldname" i18n:translate="">
    1515          Password:
    1616      </td>
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/change_password.pt

    r7464 r7735  
    11<form action="." tal:attributes="action request/URL" method="post"
    2       enctype="multipart/form-data">
     2      i18n:domain="waeup.sirp" enctype="multipart/form-data">
    33
    44  <input type="hidden" name="student_id" value=""
     
    88    <tbody>
    99      <tr>
    10         <td class="fieldname">Password:</td>
     10        <td class="fieldname" i18n:translate="">Password:</td>
    1111        <td>
    1212          <input name="change_password" type="password"  />
     
    1414      </tr>
    1515      <tr>
    16         <td class="fieldname">Retype password:</td>
     16        <td class="fieldname" i18n:translate="">Retype password:</td>
    1717        <td>
    1818          <input name="change_password_repeat" type="password" />
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/changepw.pt

    r7669 r7735  
    11<form action="." tal:attributes="action request/URL" method="post"
    2       enctype="multipart/form-data">
     2      i18n:domain="waeup.sirp" enctype="multipart/form-data">
    33
    44  <table class="form-table">
     
    88          <td class="fieldname">
    99              <span tal:condition="widget/required">*</span>
    10               <span tal:content="widget/label">label</span>:
     10              <span tal:content="widget/label">LABEL</span>:
    1111          </td>
    1212          <td>
     
    1515            </span>
    1616            <tal:error tal:condition="widget/error">
    17               <span tal:replace="structure widget/error">error</span>
     17              <span tal:replace="structure widget/error">ERROR</span>
    1818            </tal:error>
    1919            <tal:hint tal:condition="widget/hint">
    20               <span tal:content="structure widget/hint">hint</span>
     20              <span tal:content="structure widget/hint">HINT</span>
    2121            </tal:hint>
    2222          </td>
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/clearanceeditpage.pt

    r7669 r7735  
    11<form action="." tal:attributes="action request/URL" method="post"
    2       enctype="multipart/form-data">
     2      i18n:domain="waeup.sirp" enctype="multipart/form-data">
    33
    44  <ul class="tabs" data-tabs="tabs">
    5     <li tal:attributes="class view/tab1"><a href="#tab-1"><span>Clearance Data</span></a></li>
    6     <li tal:attributes="class view/tab2"><a href="#tab-2"><span>Scans</span></a></li>
     5    <li tal:attributes="class view/tab1"><a href="#tab-1">
     6    <span i18n:translate="">Clearance Data</span></a></li>
     7    <li tal:attributes="class view/tab2"><a href="#tab-2">
     8    <span i18n:translate="">Scans</span></a></li>
    79  </ul>
    810  <div class="tab-content">
     
    1416              <td class="fieldname">
    1517                  <span tal:condition="widget/required">*</span>
    16                   <span tal:content="widget/label">label</span>:
     18                  <span tal:content="widget/label">LABEL</span>:
    1719              </td>
    1820              <td>
     
    2123                </span>
    2224                <tal:error tal:condition="widget/error">
    23                   <span tal:replace="structure widget/error">error</span>
     25                  <span tal:replace="structure widget/error">ERROR</span>
    2426                </tal:error>
    2527                <tal:hint tal:condition="widget/hint">
    26                   <span tal:content="structure widget/hint">hint</span>
     28                  <span tal:content="structure widget/hint">HINT</span>
    2729                </tal:hint>
    2830              </td>
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/containermanagepage.pt

    r7641 r7735  
    1 <form method="POST">
     1<form method="POST" i18n:domain="waeup.sirp">
    22<br />
    3   <input class="btn primary" type="submit" name="search" value="Search" />
    4   for students
     3  <input class="btn primary" type="submit" name="search"
     4    tal:attributes="value view/search_button" />
     5  <span i18n:translate="">for students</span>
    56
    67  <select name="searchtype">
    7     <option value="student_id">with id</option>
    8     <option value="fullname">with name</option>
    9     <option value="reg_number">with registration number</option>
    10     <option value="matric_number">with matriculation number</option>
    11     <option value="current_session">in session</option>
    12     <option value="depcode">in department</option>
    13     <option value="current_mode">in study mode</option>
     8    <option i18n:translate="" value="student_id">with id</option>
     9    <option i18n:translate="" value="fullname">with name</option>
     10    <option i18n:translate="" value="reg_number">with registration number</option>
     11    <option i18n:translate="" value="matric_number">with matriculation number</option>
     12    <option i18n:translate="" value="current_session">in session</option>
     13    <option i18n:translate="" value="depcode">in department</option>
     14    <option i18n:translate="" value="current_mode">in study mode</option>
    1415  </select>
    1516
     
    2425         tal:attributes="value view/searchtype" />
    2526
    26     <input type="checkbox" onClick="toggle(this, 'entries')" /> Select all
     27    <input type="checkbox" onClick="toggle(this, 'entries')" />
     28    <span  i18n:translate="">Select all</span>
    2729    <br /><br />
    2830
     
    3133        <tr>
    3234          <th>&nbsp;</th>
    33         <th>Student Id</th>
    34         <th>Reg. Number</th>
    35         <th>Matric. Number</th>
    36         <th>State</th>
    37         <th>Full Name</th>
     35        <th i18n:translate="">Student Id</th>
     36        <th i18n:translate="">Reg. Number</th>
     37        <th i18n:translate="">Matric. Number</th>
     38        <th i18n:translate="">State</th>
     39        <th i18n:translate="">Full Name</th>
    3840        </tr>
    3941      </thead>
     
    5759    </table>
    5860   
    59     <input type="submit" name="remove" value="Remove selected" class="btn"
     61    <input type="submit" name="remove"
     62           tal:attributes="value view/remove_button" class="btn"
    6063           onclick="return confirmPost('Are you sure?')"/>
    6164
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/containerpage.pt

    r7641 r7735  
    1 <form method="POST">
     1<form method="POST" i18n:domain="waeup.sirp">
    22<br />
    3   <input class="btn primary" type="submit" name="search" value="Search" />
    4   for students
     3  <input class="btn primary" type="submit" name="search"
     4    tal:attributes="value view/search_button" />
     5  <span i18n:translate="">for students</span>
    56
    67  <select name="searchtype">
    7     <option value="student_id">with id</option>
    8     <option value="fullname">with name</option>
    9     <option value="reg_number">with registration number</option>
    10     <option value="matric_number">with matriculation number</option>
    11     <option value="current_session">in session</option>
    12     <option value="depcode">in department</option>
    13     <option value="current_mode">in study mode</option>
     8    <option i18n:translate="" value="student_id">with id</option>
     9    <option i18n:translate="" value="fullname">with name</option>
     10    <option i18n:translate="" value="reg_number">with registration number</option>
     11    <option i18n:translate="" value="matric_number">with matriculation number</option>
     12    <option i18n:translate="" value="current_session">in session</option>
     13    <option i18n:translate="" value="depcode">in department</option>
     14    <option i18n:translate="" value="current_mode">in study mode</option>
    1415  </select>
    1516
     
    1819  <p>&nbsp;</p>
    1920  <div tal:condition="view/hitlist">
    20     <h3>Search Results</h3>
     21    <h3 i18n:translate="">Search Results</h3>
    2122    <input type="hidden" name="old_searchterm"
    2223         tal:attributes="value view/searchterm" />
     
    2627      <thead>
    2728      <tr>
    28         <th>Student Id</th>
    29         <th>Reg. Number</th>
    30         <th>Matric. Number</th>
    31         <th>State</th>
    32         <th>Full Name</th>
     29        <th i18n:translate="">Student Id</th>
     30        <th i18n:translate="">Reg. Number</th>
     31        <th i18n:translate="">Matric. Number</th>
     32        <th i18n:translate="">State</th>
     33        <th i18n:translate="">Full Name</th>
    3334      </tr>
    3435      </thead>
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/courseticketmanagepage.pt

    r7669 r7735  
    11<form action="." tal:attributes="action request/URL" method="post"
    2       enctype="multipart/form-data">
     2      i18n:domain="waeup.sirp" enctype="multipart/form-data">
    33
    44  <table class="form-table">
    55    <tbody>
    66      <tr>
    7         <td class="fieldname">
     7        <td class="fieldname" i18n:translate="">
    88            Course Title:
    99        </td>
     
    1313      </tr>
    1414      <tr>
    15         <td class="fieldname">
     15        <td class="fieldname" i18n:translate="">
    1616            Faculty:
    1717        </td>
     
    2121      </tr>
    2222      <tr>
    23         <td class="fieldname">
     23        <td class="fieldname" i18n:translate="">
    2424            Department:
    2525        </td>
     
    2929      </tr>
    3030      <tr>
    31         <td class="fieldname">
     31        <td class="fieldname" i18n:translate="">
    3232            Semester:
    3333        </td>
     
    3737      </tr>
    3838      <tr>
    39         <td class="fieldname">
     39        <td class="fieldname" i18n:translate="">
    4040            Credits:
    4141        </td>
     
    4545      </tr>
    4646      <tr>
    47         <td class="fieldname">
     47        <td class="fieldname" i18n:translate="">
    4848            Passmark:
    4949        </td>
     
    5656          <td class="fieldname">
    5757              <span tal:condition="widget/required">*</span>
    58               <span tal:content="widget/label">label</span>:
     58              <span tal:content="widget/label">LABEL</span>:
    5959          </td>
    6060          <td>
     
    6363            </span>
    6464            <tal:error tal:condition="widget/error">
    65               <span tal:replace="structure widget/error">error</span>
     65              <span tal:replace="structure widget/error">ERROR</span>
    6666            </tal:error>
    6767            <tal:hint tal:condition="widget/hint">
    68               <span tal:content="structure widget/hint">hint</span>
     68              <span tal:content="structure widget/hint">HINT</span>
    6969            </tal:hint>
    7070          </td>
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/courseticketpage.pt

    r7549 r7735  
    1 <table class="form-table">
     1<table class="form-table" i18n:domain="waeup.sirp">
    22  <tbody>
    33    <tr>
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/enterpin.pt

    r7622 r7735  
    1 <form method="POST">
     1<form method="POST" i18n:domain="waeup.sirp">
    22  <table class="form-table">
    33    <tbody>
    4       <tr><td>
     4      <tr>
     5        <td i18n:translate="">
    56        Activation Code:
    6         </td><td>
     7        </td>
     8        <td>
    79        <span tal:replace="view/ac_prefix">PIN Prefix</span> -
    810        <input name="ac_series" type="text" class="span1" maxlength="3"
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/fileupload.pt

    r7669 r7735  
    1 <tr>
     1<tr i18n:domain="waeup.sirp">
    22  <td class="fieldname">
    33    <span tal:replace="viewlet/label">FILENAME</span>:
     
    55  <td>
    66    <span class="widget">
    7 
    87      <tal:file tal:condition="viewlet/file_exists">
    98        <a tal:attributes="href viewlet/download_name"
     
    1817      <input type="submit" tal:condition="viewlet/file_exists"
    1918             tal:attributes="id python:('delete_%s' % viewlet.input_name);
    20                 name python:('delete_%s' % viewlet.input_name)"
    21              value="Delete attachment" class="btn error" />
     19                name python:('delete_%s' % viewlet.input_name);
     20                value viewlet/delete_button"
     21             class="btn error" />
    2222      <input type="submit"
    2323               tal:attributes="id python:('upload_%s' % viewlet.input_name);
    24                   name python:('upload_%s' % viewlet.input_name)"
    25                value="Upload new file" class="btn primary" />
    26       <span i18n:translate="max_file_size">
     24                  name python:('upload_%s' % viewlet.input_name);
     25                  value viewlet/upload_button"
     26               class="btn primary" />
     27      <span i18n:translate="">
    2728        Max. file size:
    2829      </span>
  • main/waeup.sirp/trunk/src/waeup/sirp/students/viewlets.py

    r7694 r7735  
    2222from waeup.sirp.interfaces import (
    2323    ISIRPObject, IExtFileStore, IFileStoreNameChooser)
     24from waeup.sirp.interfaces import MessageFactory as _
    2425from waeup.sirp.utils.helpers import string_from_bytes, file_size
    2526from waeup.sirp.browser import DEFAULT_IMAGE_PATH
     
    624625    tab_redirect = '?tab2'
    625626    mus = 1024 * 150
     627    upload_button =_('Upload new file')
     628    delete_button = _('Delete attachment')
    626629
    627630    @property
Note: See TracChangeset for help on using the changeset viewer.