Changeset 7695 for main/waeup.custom/trunk/src/waeup/custom
- Timestamp:
- 23 Feb 2012, 17:48:43 (13 years ago)
- Location:
- main/waeup.custom/trunk/src/waeup/custom
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.custom/trunk/src/waeup/custom/browser/theming.py
r7419 r7695 20 20 from waeup.custom.browser.resources import custom_theme_1 21 21 22 from waeup.custom.interfaces import MessageFactory as _ 23 22 24 class CustomTheme1(grok.GlobalUtility): 23 25 """A custom theme based on the SIRP base theme. … … 26 28 grok.name('custom theme 1') 27 29 28 description = u'Custom Theme 1'30 description = _(u'Custom Theme 1') 29 31 30 32 def getResources(self): -
main/waeup.custom/trunk/src/waeup/custom/configure.zcml
r6892 r7695 1 1 <configure xmlns="http://namespaces.zope.org/zope" 2 xmlns:grok="http://namespaces.zope.org/grok"> 2 xmlns:grok="http://namespaces.zope.org/grok" 3 xmlns:i18n="http://namespaces.zope.org/i18n"> 3 4 <include package="grok" /> 5 <i18n:registerTranslations directory="locales" /> 4 6 <includeOverrides package="waeup.custom" file="overrides.zcml" /> 5 7 </configure> -
main/waeup.custom/trunk/src/waeup/custom/interfaces.py
r7505 r7695 16 16 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 17 ## 18 19 import zope.i18nmessageid 18 20 from zope import schema 19 21 from waeup.sirp.interfaces import ( 20 22 ISessionConfiguration, academic_sessions_vocab) 23 24 _ = MessageFactory = zope.i18nmessageid.MessageFactory('waeup.custom') 21 25 22 26 # It's recommended to replicate all fields from the base package here. … … 26 30 27 31 school_fee_base = schema.Int( 28 title = u'School Fee (ignored)',32 title = _(u'School Fee (ignored)'), 29 33 default = 0, 30 34 ) 31 35 32 36 surcharge_1 = schema.Int( 33 title = u'Surcharge BT',37 title = _(u'Surcharge BT'), 34 38 default = 0, 35 39 ) 36 40 37 41 surcharge_2 = schema.Int( 38 title = u'Surcharge Interswitch',42 title = _(u'Surcharge Interswitch'), 39 43 default = 0, 40 44 ) 41 45 42 46 surcharge_3 = schema.Int( 43 title = u'Surcharge 3',47 title = _(u'Surcharge 3'), 44 48 default = 0, 45 49 ) 46 50 47 51 clearance = schema.Int( 48 title = u'Clearance Fee',52 title = _(u'Clearance Fee'), 49 53 default = 0, 50 54 ) 51 55 52 56 booking_fee = schema.Int( 53 title = u'Booking Fee',57 title = _(u'Booking Fee'), 54 58 default = 0, 55 59 ) 56 60 57 61 maint_fee = schema.Int( 58 title = u'Maintenance Fee',62 title = _(u'Maintenance Fee'), 59 63 default = 0, 60 64 ) 61 65 62 66 gown = schema.Int( 63 title = u'Gown Fee',67 title = _(u'Gown Fee'), 64 68 default = 0, 65 69 ) 66 70 67 71 transfer = schema.Int( 68 title = u'Transfer Fee',72 title = _(u'Transfer Fee'), 69 73 default = 0, 70 74 ) … … 80 84 81 85 academic_session = schema.Choice( 82 title = u'Academic Session',86 title = _(u'Academic Session'), 83 87 source = academic_sessions_vocab, 84 88 default = None, -
main/waeup.custom/trunk/src/waeup/custom/utils/utils.py
r7586 r7695 25 25 """A collection of methods subject to customization. 26 26 """ 27 PORTAL_LANGUAGE = 'en'
Note: See TracChangeset for help on using the changeset viewer.