Ignore:
Timestamp:
07/05/10 14:51:56 (23 months ago)
Author:
dart
Message:

LoReality?:
o CSS custo
o Begin i18n
o Fill some new fields in mission
o Fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loreality/loreality/controllers/pilot.py

    r2104 r2105  
    1919from formencode import htmlfill, variabledecode 
    2020from formencode.validators import Invalid 
     21from pylons.i18n.translation import _, ungettext 
    2122import uuid 
    2223 
     
    2627    #-------------------------------------------------------------- 
    2728    def index(self, values=None, errors=None ): 
    28         c.heading = "Pilots" 
    29         c.title = "All pilots" 
     29        c.heading = _("Pilots") 
     30        c.title = _("All pilots") 
    3031 
    3132        pilot_q = meta.Session.query(model.Pilot).order_by( model.Pilot.name ) 
     
    4344            abort(404) 
    4445 
    45         c.heading = "Pilots" 
     46        c.heading = _("Pilots") 
    4647        c.title = pilot.name 
    4748        c.pilot = pilot 
     
    6061            abort(404) 
    6162 
    62         c.heading = "Pilots" 
     63        c.heading = _("Pilots") 
    6364        c.title = "Edit %s"%pilot.name 
    6465        c.pilot = pilot 
Note: See TracChangeset for help on using the changeset viewer.