Changeset 7674


Ignore:
Timestamp:
22 Feb 2012, 08:27:56 (13 years ago)
Author:
Henrik Bettermann
Message:

Implement Language switch in the topbar and add some German translations for demonstration.

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/viewlets.py

    r7438 r7674  
    1717##
    1818import grok
     19import zope.i18nmessageid
    1920from hurry.workflow.interfaces import IWorkflowState
    2021from waeup.sirp.interfaces import ISIRPObject
     
    3031    )
    3132
     33_ = zope.i18nmessageid.MessageFactory('waeup.sirp')
     34
    3235grok.context(ISIRPObject) # Make ISIRPObject the default context
    3336grok.templatedir('browser_templates')
     
    4043    grok.require('waeup.viewApplicantsTab')
    4144    pnav = 3
    42     tab_title = u'Applicants'
     45    tab_title = _(u'Applicants')
    4346
    4447    @property
     
    5356    """
    5457    grok.require('waeup.Anonymous')
    55     tab_title = u'Application'
     58    tab_title = _(u'Application')
    5659
    5760    # Also zope.manager has role Anonymous.
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt

    r7665 r7674  
    3636  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
    3737  ...Welcome to the...
     38  ...
     39
     40We can change to German::
     41  >>> browser.getLink('de').click()
     42  >>> print browser.contents
     43  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
     44  ...Anfragen...
     45  ...
     46
     47And then change back to English by clicking on the third link containing 'en'
     48behind 'Anfragen' and 'Einloggen'::
     49  >>> browser.getLink('en', index=2).click()
     50  >>> print browser.contents
     51  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
     52  ...Enquiries...
    3853  ...
    3954
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py

    r7659 r7674  
    2626import time
    2727import re
     28import zope.i18nmessageid
    2829from zope import schema
    2930from zope.authentication.interfaces import (
     
    137138
    138139#
    139 # Login/logout pages...
     140# Login/logout and language switch pages...
    140141#
    141142
     
    187188            self.flash("You have been logged out. Thanks for using WAeUP SIRP!")
    188189        self.redirect(self.application_url())
     190
     191
     192class LanguageChangePage(SIRPPage):
     193    """ Language switch
     194    """
     195    grok.context(ISIRPObject)
     196    grok.name('change_language')
     197    grok.require('waeup.Public')
     198
     199    def update(self, lang='en', view_name='@@index'):
     200        self.response.setCookie('waeup.sirp.language', lang, path='/')
     201        self.redirect(self.url(self.context, view_name))
     202        return
     203
     204    def render(self):
     205        return
    189206
    190207#
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/static/waeup-base.css

    r7635 r7674  
    193193  line-height: 18px;
    194194}
     195
     196.language {
     197  color: #BFBFBF;
     198  position:relative;
     199  top:10px;
     200  right:-160px;
     201}
     202
     203.language a {
     204  color: #BFBFBF;
     205}
     206
     207.language a:hover {
     208  color: #ffffff;
     209}
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/facultypage.pt

    r7464 r7674  
    1 <div tal:condition="python: not len(context.keys())">
     1<div i18n:domain="waeup.sirp" i18n:translate="" tal:condition="python: not len(context.keys())">
    22There no subobjects registered yet.
    33</div>
    44
    5 <table>
     5<table i18n:domain="waeup.sirp">
    66  <thead>
    77    <tr>
    8       <th>Code</th>
    9       <th>Title</th>
     8      <th i18n:translate="code">Code</th>
     9      <th i18n:translate="title">Title</th>
    1010    </tr>
    1111  </thead>
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/staffsitelayout.pt

    r7669 r7674  
    11<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    2 <html xmlns="http://www.w3.org/1999/xhtml"
    3       xmlns:i18n="http://xml.zope.org/namespaces/i18n"
    4       i18n:domain="waeup.sirp"
    5       xml:lang="en">
     2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" i18n:domain="waeup.sirp">
    63  <head>
    74    <title>WAeUP - your way up
     
    2926          <ul class="nav secondary-nav">
    3027            <li tal:condition="not: layout/isAuthenticated">
    31             <a href="#" i18n:translate="login"
     28            <a href="#" i18n:translate=""
    3229                tal:attributes="href python: view.url(layout.site, 'login')">
    3330                Login
     
    3532            </li>
    3633            <li tal:condition="layout/isAuthenticated">
    37             <a href="#" tal:attributes="href python: view.url(layout.site, '@@contactadmin')">
     34            <a href="#" i18n:translate=""
     35               tal:attributes="href python: view.url(layout.site, '@@contactadmin')">
    3836                Contact
    3937            </a>
    4038            </li>
    4139            <li tal:condition="layout/isAuthenticated">
    42             <a href="#" tal:attributes="href python: view.url(context, '@@logout')">Logout</a>
     40            <a href="#" i18n:translate=""
     41               tal:attributes="href python: view.url(context, '@@logout')">Logout</a>
    4342            </li>
    4443          </ul>
     44          <span class="language">
     45            <tal:languages
     46                  tal:content="structure provider:languages" /> |
     47          </span>
    4548        </div>
    4649      </div>
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/studentsitelayout.pt

    r7669 r7674  
    11<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    2 <html xmlns="http://www.w3.org/1999/xhtml"
    3       xmlns:i18n="http://xml.zope.org/namespaces/i18n"
    4       i18n:domain="waeup.sirp"
    5       xml:lang="en">
     2<html xmlns="http://www.w3.org/1999/xhtml" i18n:domain="waeup.sirp">
    63  <head>
    74    <title>WAeUP - your way up
     
    3431          <ul class="nav secondary-nav">
    3532            <li tal:condition="not: layout/isAuthenticated">
    36             <a href="#" tal:attributes="href python: view.url(layout.site, 'login')">
     33            <a href="#" i18n:translate=""
     34               tal:attributes="href python: view.url(layout.site, 'login')">
    3735                Login
    3836            </a>
    3937            </li>
    4038            <li tal:condition="layout/isAuthenticated">
    41             <a href="#" tal:attributes="href python: view.url(layout.site, '@@contactadmin')">
     39            <a href="#" i18n:translate=""
     40               tal:attributes="href python: view.url(layout.site, '@@contactadmin')">
    4241                Contact
    4342            </a>
    4443            </li>
    4544            <li tal:condition="layout/isAuthenticated">
    46             <a href="#" tal:attributes="href python: view.url(context, '@@logout')">Logout</a>
     45            <a href="#" i18n:translate=""
     46               tal:attributes="href python: view.url(context, '@@logout')">Logout</a>
    4747            </li>
    4848          </ul>
     49          <span class="language">
     50            <tal:languages
     51                  tal:content="structure provider:languages" /> |
     52          </span>
    4953        </div>
    5054      </div>
    5155    </div>
     56
    5257    <div class="container">
    5358      <ul class="student-info-bar" tal:condition="layout/isAuthenticated">
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/viewlets.py

    r7461 r7674  
    1717##
    1818import grok
     19import zope.i18nmessageid
     20from urllib import urlencode
    1921from zope.component import getMultiAdapter, queryAdapter
    2022from zope.interface import Interface
     
    3335from waeup.sirp.utils.helpers import get_user_account
    3436
     37_ = zope.i18nmessageid.MessageFactory('waeup.sirp')
     38
    3539grok.templatedir('templates')
    3640grok.context(ISIRPObject) # Make ISIRPObject the default context
     
    4145class BreadCrumbManager(grok.ViewletManager):
    4246    grok.name('breadcrumbs')
     47
     48class LanguageManager(grok.ViewletManager):
     49    grok.name('languages')
    4350
    4451class ActionBar(grok.ViewletManager):
     
    200207                    url = self.view.url(breadcrumb.context, breadcrumb.target)
    201208                    )
     209
     210class LanguageLink(grok.Viewlet):
     211    """ An entry in the language selector.
     212
     213    This is only a baseclass that won't be rendered actually. Deriving
     214    viewlets can override certain values and will be rendered with the
     215    values set here as default.
     216    """
     217    grok.baseclass()
     218    grok.viewletmanager(LanguageManager)
     219    grok.context(ISIRPObject)
     220    grok.require('waeup.Public')
     221    lang = 'de'
     222    title = u'Deutsch'
     223
     224    def render(self):
     225        args = {'lang':self.lang, 'view_name':self.view.__name__}
     226        url = self.view.url(
     227            self.context) + '/@@change_language?%s' % urlencode(args)
     228        return u'| <a href="%s" title="%s">%s</a> ' % (url,self.title,self.lang)
     229
     230class English(LanguageLink):
     231    """A link to switch to English.
     232    """
     233    lang = 'en'
     234    title = u'English'
     235
     236class French(LanguageLink):
     237    """A link to switch to French.
     238    """
     239    lang = 'fr'
     240    title = u'Fran&ccedil;ais'
     241
     242class German(LanguageLink):
     243    """A link to switch to German.
     244    """
     245    lang = 'de'
     246    title = u'Deutsch'
     247
     248class Hausa(LanguageLink):
     249    """A link to switch to Hausa.
     250    """
     251    lang = 'ha'
     252    title = u'Hausa'
     253
     254class Yoruba(LanguageLink):
     255    """A link to switch to Yoruba.
     256    """
     257    lang = 'yo'
     258    title = u'Yoruba'
    202259
    203260
     
    623680
    624681    pnav = 1
    625     tab_title = u'Academics'
     682    tab_title = _(u'Academics')
    626683
    627684    @property
     
    638695    grok.order(6)
    639696    grok.require('waeup.Anonymous')
    640     tab_title = u'Enquiries'
     697    tab_title = _(u'Enquiries')
    641698    pnav = 2
    642699
  • main/waeup.sirp/trunk/src/waeup/sirp/hostels/browser.py

    r7484 r7674  
    2020import grok
    2121import sys
     22import zope.i18nmessageid
    2223from waeup.sirp.browser import (
    2324    SIRPEditFormPage, SIRPAddFormPage, SIRPDisplayFormPage,
     
    3637    IHostelsContainer, IHostel, IBed, IBedAllocateStudent)
    3738
     39_ = zope.i18nmessageid.MessageFactory('waeup.sirp')
     40
    3841def write_log_message(view, message):
    3942    ob_class = view.__implemented__.__name__.replace('waeup.sirp.','')
     
    6366    template = default_primary_nav_template
    6467    pnav = 5
    65     tab_title = u'Hostels'
     68    tab_title = _(u'Hostels')
    6669
    6770    @property
  • main/waeup.sirp/trunk/src/waeup/sirp/locales/de/LC_MESSAGES/waeup.sirp.po

    r7670 r7674  
    1515msgstr ""
    1616"Project-Id-Version: WAeUP.SIRP\n"
    17 "POT-Creation-Date: Sun Feb 19 19:32:13 2012\n"
    18 "PO-Revision-Date: 2012-02-19 19:33+0100\n"
     17"POT-Creation-Date: Wed Feb 22 08:30:39 2012\n"
     18"PO-Revision-Date: 2012-02-22 08:38+0100\n"
    1919"Last-Translator: Henrik Bettermann <henrik@waeup.org>\n"
    2020"Language-Team: WAeUP Germany <henrik@waeup.org>\n"
     
    3131#: waeup/sirp/applicants/browser_templates/applicantdisplaypage.pt:41
    3232msgid "acceptance_fee_tickets"
    33 msgstr ""
     33msgstr "Zullassungsgebühr-Ticket"
     34
     35#: waeup/sirp/applicants/viewlets.py:42
     36msgid "Applicants"
     37msgstr "Antragsteller"
     38
     39#: waeup/sirp/applicants/viewlets.py:55
     40msgid "Application"
     41msgstr "Beantragung"
    3442
    3543#. Default: "Local Roles"
    3644#: waeup/sirp/browser/templates/facultymanagepage.pt:15
    3745msgid "local_roles"
    38 msgstr ""
     46msgstr "Lokale Rollen"
     47
     48#: waeup/sirp/browser/templates/facultypage.pt:1
     49msgid "There no subobjects registered yet."
     50msgstr "Es existieren bisher keine Unterobjekte."
     51
     52#. Default: "Code"
     53#: waeup/sirp/browser/templates/facultypage.pt:8
     54msgid "code"
     55msgstr "Kürzel"
     56
     57#. Default: "Title"
     58#: waeup/sirp/browser/templates/facultypage.pt:9
     59msgid "title"
     60msgstr "Titel"
    3961
    4062#. Default: "My Portal Roles:"
    4163#: waeup/sirp/browser/templates/myrolespage.pt:1
    4264msgid "my_portal_roles"
    43 msgstr ""
     65msgstr "Meine portalweiten Rollen:"
    4466
    4567#. Default: "My Local Roles:"
    4668#: waeup/sirp/browser/templates/myrolespage.pt:10
    4769msgid "my_local_roles"
    48 msgstr ""
     70msgstr "Meine lokalen Rollen:"
    4971
    50 #. Default: "Login"
    51 #: waeup/sirp/browser/templates/staffsitelayout.pt:31
    52 msgid "login"
    53 msgstr ""
     72#: waeup/sirp/browser/templates/staffsitelayout.pt:28
     73#: waeup/sirp/browser/templates/studentsitelayout.pt:33
     74msgid "Login"
     75msgstr "Einloggen"
    5476
    55 #: waeup/sirp/interfaces.py:36
    56 msgid "created"
    57 msgstr "neu"
     77#: waeup/sirp/browser/templates/staffsitelayout.pt:34
     78#: waeup/sirp/browser/templates/studentsitelayout.pt:39
     79msgid "Contact"
     80msgstr "Kontakt"
    5881
    59 #: waeup/sirp/interfaces.py:37
    60 msgid "admitted"
    61 msgstr ""
     82#: waeup/sirp/browser/templates/staffsitelayout.pt:40
     83#: waeup/sirp/browser/templates/studentsitelayout.pt:45
     84msgid "Logout"
     85msgstr "Ausloggen"
    6286
    63 #: waeup/sirp/interfaces.py:38
    64 msgid "clearance started"
    65 msgstr ""
     87#: waeup/sirp/browser/viewlets.py:679
     88msgid "Academics"
     89msgstr "Akademie"
    6690
    67 #: waeup/sirp/interfaces.py:39
    68 msgid "clearance requested"
    69 msgstr ""
     91#: waeup/sirp/browser/viewlets.py:694
     92msgid "Enquiries"
     93msgstr "Anfragen"
    7094
    71 #: waeup/sirp/interfaces.py:40
    72 msgid "cleared"
    73 msgstr ""
    74 
    75 #: waeup/sirp/interfaces.py:41
    76 msgid "school fee paid"
    77 msgstr ""
    78 
    79 #: waeup/sirp/interfaces.py:42
    80 msgid "returning"
    81 msgstr ""
    82 
    83 #: waeup/sirp/interfaces.py:43
    84 msgid "courses registered"
    85 msgstr ""
    86 
    87 #: waeup/sirp/interfaces.py:44
    88 msgid "courses validated"
    89 msgstr ""
     95#: waeup/sirp/hostels/browser.py:65
     96msgid "Hostels"
     97msgstr "Wohnheime"
    9098
    9199#. Default: "Please solve the captcha<br />to prevent misuse of this service:"
     
    93101#: waeup/sirp/applicants/browser_templates/applicantregister.pt:26
    94102msgid "solve_captcha"
    95 msgstr ""
     103msgstr "Löse Captcha, um Misbrauch des Dienstes zu vermeiden:"
    96104
    97105#. Default: "Max. file size:"
     
    100108#: waeup/sirp/applicants/browser_templates/applicanteditpage.pt:41
    101109msgid "max_file_size"
    102 msgstr ""
     110msgstr "Max. Dateigröße:"
     111
     112#: waeup/sirp/students/viewlets.py:464
     113msgid "Students"
     114msgstr "Studenten"
    103115
    104116#: waeup/sirp/students/workflow.py:30
     
    111123msgstr "Name der Fakultät"
    112124
    113 #~ msgid "Invalid datetime data"
    114 #~ msgstr "Ungültiges Datum "
  • main/waeup.sirp/trunk/src/waeup/sirp/locales/fr/LC_MESSAGES/waeup.sirp.po

    r7670 r7674  
    1414msgid ""
    1515msgstr ""
    16 "Project-Id-Version: WAeUP.SIRP\n"
    17 "POT-Creation-Date: Sun Feb 19 19:32:13 2012\n"
    18 "PO-Revision-Date: 2012-02-19 10:32+0100\n"
    19 "Last-Translator: Issoufou Abba Moussa <isouaba@waeup.org>\n"
    20 "Language-Team: WAeUP Niger <isouaba@waeup.org>\n"
    21 "Language: fr-FR\n"
     16"Project-Id-Version: Development/Unknown\n"
     17"POT-Creation-Date: Wed Feb 22 08:30:39 2012\n"
     18"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
     19"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     20"Language-Team: Zope 3 Developers <zope3-dev@zope.org>\n"
     21"Language: \n"
    2222"MIME-Version: 1.0\n"
    2323"Content-Type: text/plain; charset=UTF-8\n"
    2424"Content-Transfer-Encoding: 8bit\n"
    2525"Generated-By: zope/app/locales/extract.py\n"
    26 "X-Poedit-Language: French\n"
    27 "X-Poedit-Country: NIGER\n"
    2826
    2927#. Default: "Acceptance Fee Payment Tickets"
     
    3331msgstr ""
    3432
     33#: waeup/sirp/applicants/viewlets.py:42
     34msgid "Applicants"
     35msgstr ""
     36
     37#: waeup/sirp/applicants/viewlets.py:55
     38msgid "Application"
     39msgstr ""
     40
    3541#. Default: "Local Roles"
    3642#: waeup/sirp/browser/templates/facultymanagepage.pt:15
    3743msgid "local_roles"
     44msgstr ""
     45
     46#: waeup/sirp/browser/templates/facultypage.pt:1
     47msgid "There no subobjects registered yet."
     48msgstr ""
     49
     50#. Default: "Code"
     51#: waeup/sirp/browser/templates/facultypage.pt:8
     52msgid "code"
     53msgstr ""
     54
     55#. Default: "Title"
     56#: waeup/sirp/browser/templates/facultypage.pt:9
     57msgid "title"
    3858msgstr ""
    3959
     
    4868msgstr ""
    4969
    50 #. Default: "Login"
    51 #: waeup/sirp/browser/templates/staffsitelayout.pt:31
    52 msgid "login"
     70#: waeup/sirp/browser/templates/staffsitelayout.pt:28
     71#: waeup/sirp/browser/templates/studentsitelayout.pt:33
     72msgid "Login"
    5373msgstr ""
    5474
    55 #: waeup/sirp/interfaces.py:36
    56 msgid "created"
     75#: waeup/sirp/browser/templates/staffsitelayout.pt:34
     76#: waeup/sirp/browser/templates/studentsitelayout.pt:39
     77msgid "Contact"
    5778msgstr ""
    5879
    59 #: waeup/sirp/interfaces.py:37
    60 msgid "admitted"
     80#: waeup/sirp/browser/templates/staffsitelayout.pt:40
     81#: waeup/sirp/browser/templates/studentsitelayout.pt:45
     82msgid "Logout"
    6183msgstr ""
    6284
    63 #: waeup/sirp/interfaces.py:38
    64 msgid "clearance started"
     85#: waeup/sirp/browser/viewlets.py:679
     86msgid "Academics"
    6587msgstr ""
    6688
    67 #: waeup/sirp/interfaces.py:39
    68 msgid "clearance requested"
     89#: waeup/sirp/browser/viewlets.py:694
     90msgid "Enquiries"
    6991msgstr ""
    7092
    71 #: waeup/sirp/interfaces.py:40
    72 msgid "cleared"
    73 msgstr ""
    74 
    75 #: waeup/sirp/interfaces.py:41
    76 msgid "school fee paid"
    77 msgstr ""
    78 
    79 #: waeup/sirp/interfaces.py:42
    80 msgid "returning"
    81 msgstr ""
    82 
    83 #: waeup/sirp/interfaces.py:43
    84 msgid "courses registered"
    85 msgstr ""
    86 
    87 #: waeup/sirp/interfaces.py:44
    88 msgid "courses validated"
     93#: waeup/sirp/hostels/browser.py:65
     94msgid "Hostels"
    8995msgstr ""
    9096
     
    102108msgstr ""
    103109
     110#: waeup/sirp/students/viewlets.py:464
     111msgid "Students"
     112msgstr ""
     113
    104114#: waeup/sirp/students/workflow.py:30
    105115msgid "Admit student"
  • main/waeup.sirp/trunk/src/waeup/sirp/locales/ha/LC_MESSAGES/waeup.sirp.po

    r7670 r7674  
    1414msgid ""
    1515msgstr ""
    16 "Project-Id-Version: WAeUP.SIRP\n"
    17 "POT-Creation-Date: Sun Feb 19 19:32:13 2012\n"
    18 "PO-Revision-Date: 2012-02-19 10:49+0100\n"
    19 "Last-Translator: Henrik Bettermann <henrik@waeup.org>\n"
    20 "Language-Team: WAeUP Nigeria<isouaba@waeup.org>\n"
    21 "Language: ha-NG-Latn\n"
     16"Project-Id-Version: Development/Unknown\n"
     17"POT-Creation-Date: Wed Feb 22 08:30:39 2012\n"
     18"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
     19"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     20"Language-Team: Zope 3 Developers <zope3-dev@zope.org>\n"
     21"Language: \n"
    2222"MIME-Version: 1.0\n"
    2323"Content-Type: text/plain; charset=UTF-8\n"
    2424"Content-Transfer-Encoding: 8bit\n"
    2525"Generated-By: zope/app/locales/extract.py\n"
    26 "X-Poedit-Language: Hausa\n"
    27 "X-Poedit-Country: NIGERIA\n"
    2826
    2927#. Default: "Acceptance Fee Payment Tickets"
     
    3331msgstr ""
    3432
     33#: waeup/sirp/applicants/viewlets.py:42
     34msgid "Applicants"
     35msgstr ""
     36
     37#: waeup/sirp/applicants/viewlets.py:55
     38msgid "Application"
     39msgstr ""
     40
    3541#. Default: "Local Roles"
    3642#: waeup/sirp/browser/templates/facultymanagepage.pt:15
    3743msgid "local_roles"
     44msgstr ""
     45
     46#: waeup/sirp/browser/templates/facultypage.pt:1
     47msgid "There no subobjects registered yet."
     48msgstr ""
     49
     50#. Default: "Code"
     51#: waeup/sirp/browser/templates/facultypage.pt:8
     52msgid "code"
     53msgstr ""
     54
     55#. Default: "Title"
     56#: waeup/sirp/browser/templates/facultypage.pt:9
     57msgid "title"
    3858msgstr ""
    3959
     
    4868msgstr ""
    4969
    50 #. Default: "Login"
    51 #: waeup/sirp/browser/templates/staffsitelayout.pt:31
    52 msgid "login"
     70#: waeup/sirp/browser/templates/staffsitelayout.pt:28
     71#: waeup/sirp/browser/templates/studentsitelayout.pt:33
     72msgid "Login"
    5373msgstr ""
    5474
    55 #: waeup/sirp/interfaces.py:36
    56 msgid "created"
     75#: waeup/sirp/browser/templates/staffsitelayout.pt:34
     76#: waeup/sirp/browser/templates/studentsitelayout.pt:39
     77msgid "Contact"
    5778msgstr ""
    5879
    59 #: waeup/sirp/interfaces.py:37
    60 msgid "admitted"
     80#: waeup/sirp/browser/templates/staffsitelayout.pt:40
     81#: waeup/sirp/browser/templates/studentsitelayout.pt:45
     82msgid "Logout"
    6183msgstr ""
    6284
    63 #: waeup/sirp/interfaces.py:38
    64 msgid "clearance started"
     85#: waeup/sirp/browser/viewlets.py:679
     86msgid "Academics"
    6587msgstr ""
    6688
    67 #: waeup/sirp/interfaces.py:39
    68 msgid "clearance requested"
     89#: waeup/sirp/browser/viewlets.py:694
     90msgid "Enquiries"
    6991msgstr ""
    7092
    71 #: waeup/sirp/interfaces.py:40
    72 msgid "cleared"
    73 msgstr ""
    74 
    75 #: waeup/sirp/interfaces.py:41
    76 msgid "school fee paid"
    77 msgstr ""
    78 
    79 #: waeup/sirp/interfaces.py:42
    80 msgid "returning"
    81 msgstr ""
    82 
    83 #: waeup/sirp/interfaces.py:43
    84 msgid "courses registered"
    85 msgstr ""
    86 
    87 #: waeup/sirp/interfaces.py:44
    88 msgid "courses validated"
     93#: waeup/sirp/hostels/browser.py:65
     94msgid "Hostels"
    8995msgstr ""
    9096
     
    102108msgstr ""
    103109
     110#: waeup/sirp/students/viewlets.py:464
     111msgid "Students"
     112msgstr ""
     113
    104114#: waeup/sirp/students/workflow.py:30
    105115msgid "Admit student"
     
    109119#: waeup/sirp/university/interfaces.py:47
    110120msgid "name_of_faculty"
    111 msgstr "Hausa Test"
     121msgstr ""
  • main/waeup.sirp/trunk/src/waeup/sirp/locales/waeup.sirp.pot

    r7670 r7674  
    1515msgstr ""
    1616"Project-Id-Version: Development/Unknown\n"
    17 "POT-Creation-Date: Sun Feb 19 19:32:13 2012\n"
     17"POT-Creation-Date: Wed Feb 22 08:30:39 2012\n"
    1818"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1919"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    3030msgstr ""
    3131
     32#: waeup/sirp/applicants/viewlets.py:42
     33msgid "Applicants"
     34msgstr ""
     35
     36#: waeup/sirp/applicants/viewlets.py:55
     37msgid "Application"
     38msgstr ""
     39
    3240#: waeup/sirp/browser/templates/facultymanagepage.pt:15
    3341#. Default: "Local Roles"
    3442msgid "local_roles"
     43msgstr ""
     44
     45#: waeup/sirp/browser/templates/facultypage.pt:1
     46msgid "There no subobjects registered yet."
     47msgstr ""
     48
     49#: waeup/sirp/browser/templates/facultypage.pt:8
     50#. Default: "Code"
     51msgid "code"
     52msgstr ""
     53
     54#: waeup/sirp/browser/templates/facultypage.pt:9
     55#. Default: "Title"
     56msgid "title"
    3557msgstr ""
    3658
     
    4567msgstr ""
    4668
    47 #: waeup/sirp/browser/templates/staffsitelayout.pt:31
    48 #. Default: "Login"
    49 msgid "login"
     69#: waeup/sirp/browser/templates/staffsitelayout.pt:28
     70#: waeup/sirp/browser/templates/studentsitelayout.pt:33
     71msgid "Login"
    5072msgstr ""
    5173
    52 #: waeup/sirp/interfaces.py:36
    53 msgid "created"
     74#: waeup/sirp/browser/templates/staffsitelayout.pt:34
     75#: waeup/sirp/browser/templates/studentsitelayout.pt:39
     76msgid "Contact"
    5477msgstr ""
    5578
    56 #: waeup/sirp/interfaces.py:37
    57 msgid "admitted"
     79#: waeup/sirp/browser/templates/staffsitelayout.pt:40
     80#: waeup/sirp/browser/templates/studentsitelayout.pt:45
     81msgid "Logout"
    5882msgstr ""
    5983
    60 #: waeup/sirp/interfaces.py:38
    61 msgid "clearance started"
     84#: waeup/sirp/browser/viewlets.py:679
     85msgid "Academics"
    6286msgstr ""
    6387
    64 #: waeup/sirp/interfaces.py:39
    65 msgid "clearance requested"
     88#: waeup/sirp/browser/viewlets.py:694
     89msgid "Enquiries"
    6690msgstr ""
    6791
    68 #: waeup/sirp/interfaces.py:40
    69 msgid "cleared"
    70 msgstr ""
    71 
    72 #: waeup/sirp/interfaces.py:41
    73 msgid "school fee paid"
    74 msgstr ""
    75 
    76 #: waeup/sirp/interfaces.py:42
    77 msgid "returning"
    78 msgstr ""
    79 
    80 #: waeup/sirp/interfaces.py:43
    81 msgid "courses registered"
    82 msgstr ""
    83 
    84 #: waeup/sirp/interfaces.py:44
    85 msgid "courses validated"
     92#: waeup/sirp/hostels/browser.py:65
     93msgid "Hostels"
    8694msgstr ""
    8795
     
    99107msgstr ""
    100108
     109#: waeup/sirp/students/viewlets.py:464
     110msgid "Students"
     111msgstr ""
     112
    101113#: waeup/sirp/students/workflow.py:30
    102114msgid "Admit student"
  • main/waeup.sirp/trunk/src/waeup/sirp/locales/yo/LC_MESSAGES/waeup.sirp.po

    r7670 r7674  
    1414msgid ""
    1515msgstr ""
    16 "Project-Id-Version: WAeUP.SIRP\n"
    17 "POT-Creation-Date: Sun Feb 19 19:32:13 2012\n"
    18 "PO-Revision-Date: 2012-02-19 10:57+0100\n"
    19 "Last-Translator: Henrik Bettermann <henrik@waeup.org>\n"
    20 "Language-Team: WAeUP Nigeria <isouaba@waeup.org>\n"
    21 "Language: yo-NG\n"
     16"Project-Id-Version: Development/Unknown\n"
     17"POT-Creation-Date: Wed Feb 22 08:30:39 2012\n"
     18"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
     19"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     20"Language-Team: Zope 3 Developers <zope3-dev@zope.org>\n"
     21"Language: \n"
    2222"MIME-Version: 1.0\n"
    2323"Content-Type: text/plain; charset=UTF-8\n"
    2424"Content-Transfer-Encoding: 8bit\n"
    2525"Generated-By: zope/app/locales/extract.py\n"
    26 "X-Poedit-Language: Yoruba\n"
    27 "X-Poedit-Country: NIGERIA\n"
    2826
    2927#. Default: "Acceptance Fee Payment Tickets"
     
    3331msgstr ""
    3432
     33#: waeup/sirp/applicants/viewlets.py:42
     34msgid "Applicants"
     35msgstr ""
     36
     37#: waeup/sirp/applicants/viewlets.py:55
     38msgid "Application"
     39msgstr ""
     40
    3541#. Default: "Local Roles"
    3642#: waeup/sirp/browser/templates/facultymanagepage.pt:15
    3743msgid "local_roles"
     44msgstr ""
     45
     46#: waeup/sirp/browser/templates/facultypage.pt:1
     47msgid "There no subobjects registered yet."
     48msgstr ""
     49
     50#. Default: "Code"
     51#: waeup/sirp/browser/templates/facultypage.pt:8
     52msgid "code"
     53msgstr ""
     54
     55#. Default: "Title"
     56#: waeup/sirp/browser/templates/facultypage.pt:9
     57msgid "title"
    3858msgstr ""
    3959
     
    4868msgstr ""
    4969
    50 #. Default: "Login"
    51 #: waeup/sirp/browser/templates/staffsitelayout.pt:31
    52 msgid "login"
     70#: waeup/sirp/browser/templates/staffsitelayout.pt:28
     71#: waeup/sirp/browser/templates/studentsitelayout.pt:33
     72msgid "Login"
    5373msgstr ""
    5474
    55 #: waeup/sirp/interfaces.py:36
    56 msgid "created"
     75#: waeup/sirp/browser/templates/staffsitelayout.pt:34
     76#: waeup/sirp/browser/templates/studentsitelayout.pt:39
     77msgid "Contact"
    5778msgstr ""
    5879
    59 #: waeup/sirp/interfaces.py:37
    60 msgid "admitted"
     80#: waeup/sirp/browser/templates/staffsitelayout.pt:40
     81#: waeup/sirp/browser/templates/studentsitelayout.pt:45
     82msgid "Logout"
    6183msgstr ""
    6284
    63 #: waeup/sirp/interfaces.py:38
    64 msgid "clearance started"
     85#: waeup/sirp/browser/viewlets.py:679
     86msgid "Academics"
    6587msgstr ""
    6688
    67 #: waeup/sirp/interfaces.py:39
    68 msgid "clearance requested"
     89#: waeup/sirp/browser/viewlets.py:694
     90msgid "Enquiries"
    6991msgstr ""
    7092
    71 #: waeup/sirp/interfaces.py:40
    72 msgid "cleared"
    73 msgstr ""
    74 
    75 #: waeup/sirp/interfaces.py:41
    76 msgid "school fee paid"
    77 msgstr ""
    78 
    79 #: waeup/sirp/interfaces.py:42
    80 msgid "returning"
    81 msgstr ""
    82 
    83 #: waeup/sirp/interfaces.py:43
    84 msgid "courses registered"
    85 msgstr ""
    86 
    87 #: waeup/sirp/interfaces.py:44
    88 msgid "courses validated"
     93#: waeup/sirp/hostels/browser.py:65
     94msgid "Hostels"
    8995msgstr ""
    9096
     
    102108msgstr ""
    103109
     110#: waeup/sirp/students/viewlets.py:464
     111msgid "Students"
     112msgstr ""
     113
    104114#: waeup/sirp/students/workflow.py:30
    105115msgid "Admit student"
     
    109119#: waeup/sirp/university/interfaces.py:47
    110120msgid "name_of_faculty"
    111 msgstr "Yoruba Test"
     121msgstr ""
  • main/waeup.sirp/trunk/src/waeup/sirp/students/viewlets.py

    r7671 r7674  
    1818import os
    1919import grok
     20import zope.i18nmessageid
    2021from zope.component import getUtility
    2122from zope.interface import Interface
     
    4445    )
    4546
     47_ = zope.i18nmessageid.MessageFactory('waeup.sirp')
     48
    4649grok.context(ISIRPObject) # Make ISIRPObject the default context
    4750grok.templatedir('browser_templates')
     
    462465
    463466    pnav = 4
    464     tab_title = u'Students'
     467    tab_title = _(u'Students')
    465468
    466469    @property
Note: See TracChangeset for help on using the changeset viewer.