Commit e56f677e authored by Jérome Perrin's avatar Jérome Perrin

fix english messages and remove title PropertyExistence


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24139 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 98b3adfe
......@@ -33,13 +33,6 @@ class TaskConstraint:
"""
_constraints = (
{ 'id' : 'title_existence',
'description' : 'Title must be defined',
'type' : 'PropertyExistence',
'title' : None,
'message_property_not_set': 'Title must be defined',
'message_no_such_property' : 'Title must be defined',
},
{ 'id' : 'source_category_membership_arity',
'description' : 'Source must be defined',
'type' : 'CategoryMembershipArity',
......@@ -76,6 +69,6 @@ class TaskConstraint:
'type' : 'ContentExistence',
'portal_type' : ('Task Line', 'Task Report Line' ),
'message_no_subobject_portal_type' : \
'It is required create at least one Line.',
'At least one line is required',
},
)
......@@ -35,8 +35,8 @@ class TaskLineConstraint:
'description' : 'Property quantity must be defined',
'type' : 'PropertyExistence',
'quantity' : None,
"message_property_not_set" : 'Quantity must be defined at Lines',
"message_no_such_property" : 'Quantity must be defined at Lines'
"message_property_not_set" : 'Quantity must be defined in lines',
"message_no_such_property" : 'Quantity must be defined in lines'
},
{ 'id' : 'resource',
'description' : 'Resource must be defined',
......@@ -45,6 +45,6 @@ class TaskLineConstraint:
'max_arity' : '1',
'portal_type' : ( ),
'base_category' : ('resource',),
'message_arity_not_in_range' : 'Resource must be defined at Lines.' ,
'message_arity_not_in_range' : 'Service must be defined in lines',
},
)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment