Ignore:
Timestamp:
28 Feb 2012, 11:50:10 (13 years ago)
Author:
Henrik Bettermann
Message:

Internationalization of payments package finished.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/payments/interfaces.py

    r7627 r7717  
    1919from zope import schema
    2020from waeup.sirp.interfaces import ISIRPObject, SimpleSIRPVocabulary
     21from waeup.sirp.interfaces import MessageFactory as _
    2122
    2223payment_states = SimpleSIRPVocabulary(
    23     ('Not yet paid','unpaid'),
    24     ('Paid','paid'),
    25     ('Failed','failed'),
     24    (_('Not yet paid'),'unpaid'),
     25    (_('Paid'),'paid'),
     26    (_('Failed'),'failed'),
    2627    )
    2728
    2829payment_categories = SimpleSIRPVocabulary(
    29     ('School Fee','schoolfee'),
    30     ('Clearance','clearance'),
    31     ('Bed Allocation','bed_allocation'),
    32     ('Hostel Maintenance','hostel_maintenance'),
    33     ('Transfer','transfer'),
    34     ('Gown','gown'),
    35     ('Acceptance Fee', 'acceptance'),
     30    (_('School Fee'),'schoolfee'),
     31    (_('Clearance'),'clearance'),
     32    (_('Bed Allocation'),'bed_allocation'),
     33    (_('Hostel Maintenance'),'hostel_maintenance'),
     34    (_('Transfer'),'transfer'),
     35    (_('Gown'),'gown'),
     36    (_('Acceptance Fee'), 'acceptance'),
    3637    )
    3738
     
    4849
    4950    p_category = schema.Choice(
    50         title = u'Payment Category',
     51        title = _(u'Payment Category'),
    5152        default = u'schoolfee',
    5253        vocabulary = payment_categories,
     
    5556
    5657    p_item = schema.TextLine(
    57         title = u'Payment Item',
     58        title = _(u'Payment Item'),
    5859        default = None,
    5960        required = False,
     
    6162
    6263    p_state = schema.Choice(
    63         title = u'Payment State',
     64        title = _(u'Payment State'),
    6465        default = u'unpaid',
    6566        vocabulary = payment_states,
     
    6869
    6970    creation_date = schema.Datetime(
    70         title = u'Ticket Creation Date',
     71        title = _(u'Ticket Creation Date'),
    7172        readonly = False,
    7273        )
    7374
    7475    payment_date = schema.Datetime(
    75         title = u'Payment Date',
     76        title = _(u'Payment Date'),
    7677        required = False,
    7778        readonly = False,
     
    7980
    8081    amount_auth = schema.Int(
    81         title = u'Amount Authorized',
     82        title = _(u'Amount Authorized'),
    8283        default = 0,
    8384        required = True,
     
    9192
    9293    p_code = schema.TextLine(
    93         title = u'Payment Access Code',
    94         default = u'Certificate XYZ',
     94        title = _(u'Payment Access Code'),
     95        #default = u'Certificate XYZ',
    9596        required = False,
    9697        readonly = True,
     
    103104
    104105    surcharge_1 = schema.Int(
    105         title = u'Surcharge 1',
     106        title = _(u'Surcharge 1'),
    106107        default = 0,
    107108        required = False,
     
    110111
    111112    surcharge_2 = schema.Int(
    112         title = u'Surcharge 2',
     113        title = _(u'Surcharge 2'),
    113114        default = 0,
    114115        required = False,
     
    117118
    118119    surcharge_3 = schema.Int(
    119         title = u'Surcharge 3',
     120        title = _(u'Surcharge 3'),
    120121        default = 0,
    121122        required = False,
     
    130131
    131132    ac = schema.TextLine(
    132         title = u'Activation Code',
     133        title = _(u'Activation Code'),
    133134        default = None,
    134135        required = False,
     
    137138
    138139    r_amount_approved = schema.Int(
    139         title = u'Response Amount Approved',
     140        title = _(u'Response Amount Approved'),
    140141        default = 0,
    141142        required = False,
     
    144145
    145146    r_desc = schema.TextLine(
    146         title = u'Response Description',
     147        title = _(u'Response Description'),
    147148        default = None,
    148149        required = False,
     
    151152
    152153    r_pay_reference = schema.TextLine(
    153         title = u'Response Payment Reference',
     154        title = _(u'Response Payment Reference'),
    154155        default = None,
    155156        required = False,
     
    158159
    159160    r_code = schema.TextLine(
    160         title = u'Response Code',
     161        title = _(u'Response Code'),
    161162        default = None,
    162163        required = False,
     
    165166
    166167    r_card_num = schema.TextLine(
    167         title = u'Response Card Number',
     168        title = _(u'Response Card Number'),
    168169        default = None,
    169170        required = False,
Note: See TracChangeset for help on using the changeset viewer.