Changeset 298

Show
Ignore:
Timestamp:
08/12/06 20:27:37 (2 years ago)
Author:
mj
Message:

Add i18n files to aid future translations. Also, get rid of the optional "default" keyword for message ids.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • z3wingdbg/trunk/configure.zcml

    r289 r298  
    1 <configure xmlns="http://namespaces.zope.org/zope"> 
     1<configure 
     2    xmlns="http://namespaces.zope.org/zope" 
     3    xmlns:i18n="http://namespaces.zope.org/i18n"> 
    24 
    35<!-- vocabulary --> 
     
    5557<include package=".server"/> 
    5658<include package=".browser"/> 
     59<i18n:registerTranslations directory="locales"/> 
    5760 
    5861</configure> 
  • z3wingdbg/trunk/interfaces.py

    r296 r298  
    105105        title=_(u'Wing Home'),  
    106106        description=_(u'wing-home-description', 
    107                       default=u'The directory where Wing IDE is installed on
    108                               u'this machine.  This is used to find Wing ' 
    109                               u"IDE's debugger support modules.")) 
     107                      u'The directory where Wing IDE is installed on this
     108                      u"machine.  This is used to find Wing IDE's debugger " 
     109                      u'support modules.')) 
    110110     
    111111    ideHost = schema.TextLine( 
    112112        title=_(u'IDE hostname'), 
    113113        description=_(u'ide-hostname-description', 
    114                       default=u'The host where Wing IDE is listening for the
    115                               u'debug connection.'), 
     114                      u'The host where Wing IDE is listening for the debug
     115                      u'connection.'), 
    116116        default=u'localhost') 
    117117     
     
    119119        title=_(u'IDE port'), 
    120120        description=_(u'ide-port-description', 
    121                       default=u'The port where Wing IDE is listening for the
    122                               u'debug connection.'), 
     121                      u'The port where Wing IDE is listening for the debug
     122                      u'connection.'), 
    123123        default=50005,  
    124124        min=0,  
     
    128128        title=_(u'Debug server type'), 
    129129        description=_(u'server-type-description', 
    130                       default=u'Type of server to use for the debug server'), 
     130                      u'Type of server to use for the debug server'), 
    131131        default=u'http',  
    132132        vocabulary=u'z3wingdbg.servertypes') 
     
    135135        title=_(u'Auto-start debug server'), 
    136136        description=_(u'auto-start-description', 
    137                       default=u'Automatically start the debug server when ' 
    138                               u'Zope starts'), 
     137                      u'Automatically start the debug server when Zope starts'), 
    139138        default=False) 
    140139     
     
    142141        title=_(u'Auto-connect IDE'), 
    143142        description=_(u'auto-connect-description', 
    144                       default=u'Automatically try to connect to the IDE when
    145                               u'the debug server is started'), 
     143                      u'Automatically try to connect to the IDE when the
     144                      u'debug server is started'), 
    146145        default=True) 
    147146     
     
    152151        title=_(u'Host'), 
    153152        description=_(u'server-host-description', 
    154                       default=u'The host where the debugger will listen for
    155                               u'requests from your client.'), 
     153                      u'The host where the debugger will listen for requests
     154                      u'from your client.'), 
    156155        default=u'localhost') 
    157156     
     
    159158        title=_(u'Port'), 
    160159        description=_(u'server-port-description', 
    161                       default=u'The port where the debugger will listen for ' 
    162                               u'requests'), 
     160                      u'The port where the debugger will listen for requests'), 
    163161        min=0,  
    164162        max=65535)