Changeset 13

Show
Ignore:
Timestamp:
08/07/05 22:05:03 (7 years ago)
Author:
mj
Message:

I18n-enable.

Location:
trunk/src/chronolog
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/chronolog/DEPENDENCIES.cfg

    r11 r13  
    22zope.schema 
    33zope.app 
     4zope.i18nmessageid 
  • trunk/src/chronolog/interfaces.py

    r12 r13  
    1919from zope.schema import Text, TextLine, Date, Timedelta, Set, Int 
    2020from zope.app.container.constraints import ContainerTypesConstraint 
     21from zope.i18nmessageid import MessageFactory 
     22_ = MessageFactory('chronolog') 
    2123 
    2224class ITimeLogKey(Interface): 
     
    2931    """ 
    3032    domain = TextLine( 
    31         title=u'Domain', 
    32         description=u'The id of the domain this key is part of.', 
     33        title=_(u'Domain'), 
     34        description=_(u'The id of the domain this key is part of.'), 
    3335        readonly=True, 
    3436        required=True) 
    3537     
    3638    id = TextLine( 
    37         title=u'Id', 
    38         description=u'The unique identifier of the key.', 
     39        title=_(u'Id'), 
     40        description=_(u'The unique identifier of the key.'), 
    3941        required=True) 
    4042 
    4143    description = Text( 
    42         title=u'Description', 
    43         description=u'A detailed description of the key.', 
     44        title=_(u'Description'), 
     45        description=_(u'A detailed description of the key.'), 
    4446        required=False) 
    4547     
    4648    title = TextLine( 
    47         title=u'Title', 
    48         description=u'The title of the key; usually displayed in the UI.', 
     49        title=_(u'Title'), 
     50        description=_(u'The title of the key; usually displayed in the UI.'), 
    4951        required=False) 
    5052 
     
    6264    """ 
    6365    id = TextLine( 
    64         title=u'Id', 
    65         description=u'The identifier of the domain.', 
     66        title=_(u'Id'), 
     67        description=_(u'The identifier of the domain.'), 
    6668        required=True) 
    6769     
    6870    title = TextLine( 
    69         title=u'Title', 
    70         description=u'The domain title for UI display', 
     71        title=_(u'Title'), 
     72        description=_(u'The domain title for UI display'), 
    7173        required=False) 
    7274     
    7375    description = Text( 
    74         title=u'Description', 
    75         description=u'A detailed description of the domain.', 
     76        title=_(u'Description'), 
     77        description=_(u'A detailed description of the domain.'), 
    7678        required=False) 
    7779     
     
    107109    """ 
    108110    keys = Set( 
    109         title=u'Keys', 
    110         description=u'''A set of keys describing the entry against which 
    111                         time is logged.''', 
     111        title=_(u'Keys'), 
     112        description=_(u'A set of keys describing the entry against which ' 
     113                      u'time is logged.'), 
    112114        required=True, 
    113115        min_length=1, 
     
    115117             
    116118    date = Date( 
    117         title=u'Date', 
    118         description=u'Date of the log entry', 
     119        title=_(u'Date'), 
     120        description=_(u'Date of the log entry'), 
    119121        required=True) 
    120122     
    121123    duration = Timedelta( 
    122         title=u'Duration', 
    123         description=u'Amount of time logged.', 
     124        title=_(u'Duration'), 
     125        description=_(u'Amount of time logged.'), 
    124126        required=False) 
    125127 
    126128    comments = Text( 
    127         title=u'Comments', 
    128         description=u'Arbitrary notes attached to the entry.', 
     129        title=_(u'Comments'), 
     130        description=_(u'Arbitrary notes attached to the entry.'), 
    129131        required=False) 
    130132 
     
    222224    """ 
    223225    startDate = Date( 
    224         title=u'Start Date', 
    225         description=u'Date of first log entry on this sheet', 
     226        title=_(u'Start Date'), 
     227        description=_(u'Date of first log entry on this sheet'), 
    226228        required=True) 
    227229 
    228230    endDate = Date( 
    229         title=u'End Date', 
    230         description=u'Date of last log entry on this sheet', 
     231        title=_(u'End Date'), 
     232        description=_(u'Date of last log entry on this sheet'), 
    231233        required=True) 
    232234 
    233235    viewKey = Set( 
    234         title=u'View Key', 
    235         description=u'The keys defining the view on the underlying ' 
    236                     u'ITimeLogStore.', 
     236        title=_(u'View Key'), 
     237        description=_(u'The keys defining the view on the underlying ' 
     238                      u'ITimeLogStore.'), 
    237239        required=True, 
    238240        constraint=ContainerTypesConstraint(ITimeLogKey))