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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.