Commit 7324d91f authored by Yusei Tahara's avatar Yusei Tahara

Update English messages.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23435 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 179ce645
......@@ -56,7 +56,7 @@ class AccountTypeConstraint(Constraint):
message_inconsistent_account_type = translateString(
'Account is member'
' of ${category}, this should have account_type'
' in ${account_type_list}')
' in ${account_type_list}.')
def checkConsistency(self, obj, fixit=0):
"""Implement here the consistency checker
......@@ -65,7 +65,7 @@ class AccountTypeConstraint(Constraint):
if getattr(obj, 'getAccountType', _MARKER) is _MARKER:
errors.append(self._generateError(
obj,
translateString("Account does not have account_type category")))
translateString("Account does not have account_type category.")))
else:
account_type_map = getattr(self, '_account_type_map', ())
if not account_type_map:
......
......@@ -38,9 +38,9 @@ class AccountingTransactionBalance(Constraint):
'message_transaction_not_balanced_for_destination' ]
message_transaction_not_balanced_for_source = translateString(
'Transaction is not Balanced')
'Transaction is not balanced.')
message_transaction_not_balanced_for_destination = translateString(
'Transaction is not Balanced')
'Transaction is not balanced.')
def checkConsistency(self, obj, fixit=0):
"""Implement here the consistency checker
......
......@@ -46,13 +46,13 @@ class DocumentReferenceConstraint(Constraint):
'message_multiple_documents_exists' ]
message_property_not_defined = translateString(
'Property ${property_id} was not defined')
'Property ${property_id} was not defined.')
message_another_document_exists = translateString(
'Another document ${document_reference} - '
'${document_language} - ${document_version} already exists')
'${document_language} - ${document_version} already exists.')
message_multiple_documents_exists = translateString(
'Multiple (${document_count}) documents ${document_reference} - '
'${document_language} - ${document_version} already exists')
'${document_language} - ${document_version} already exists.')
def checkConsistency(self, object, fixit=0):
"""
......
......@@ -161,7 +161,7 @@ class TemplateTool (BaseTool):
path = pathname2url(path)
business_template.export(path=path, local=1)
if REQUEST is not None:
psm = translateString('Saved+in+${path}+.',
psm = translateString('Saved in ${path}.',
mapping={'path':pathname2url(path)})
ret_url = '%s/%s?portal_status_message=%s' % \
(business_template.absolute_url(),
......@@ -282,7 +282,7 @@ class TemplateTool (BaseTool):
if REQUEST is not None:
ret_url = bt.absolute_url() + '/view'
psm = translateString("Business+Template+Downloaded+Successfully")
psm = translateString("Business template downloaded successfully.")
REQUEST.RESPONSE.redirect("%s?portal_status_message=%s"
% (ret_url, psm))
......@@ -397,7 +397,7 @@ class TemplateTool (BaseTool):
if (import_file is None) or (len(import_file.read()) == 0):
if REQUEST is not None:
psm = translateString('No+file+or+an+empty+file+was+specified')
psm = translateString('No file or an empty file was specified.')
REQUEST.RESPONSE.redirect("%s?portal_status_message=%s"
% (self.absolute_url(), psm))
return
......@@ -422,7 +422,7 @@ class TemplateTool (BaseTool):
if (batch_mode == 0) and \
(REQUEST is not None):
ret_url = bt.absolute_url() + '/view'
psm = translateString("Business+Templates+Imported+Successfully")
psm = translateString("Business templates imported successfully.")
REQUEST.RESPONSE.redirect("%s?portal_status_message=%s"
% (ret_url, psm))
elif (batch_mode == 1):
......@@ -541,7 +541,7 @@ class TemplateTool (BaseTool):
if REQUEST is not None:
ret_url = self.absolute_url() + '/' + REQUEST.get('dialog_id', 'view')
psm = translateString("Business+Templates+Updated+Successfully")
psm = translateString("Business templates updated successfully.")
REQUEST.RESPONSE.redirect("%s?cancel_url=%s&portal_status_message=%s&dialog_category=object_exchange&selection_name=business_template_selection"
% (ret_url, REQUEST.form.get('cancel_url', ''), psm))
......
......@@ -106,9 +106,9 @@ def getSearchDialog(self, REQUEST=None):
usage=translateString('Usage'))),
items=[(translateString('Equals To'), ''),
(translateString('Greater Than'), 'min'),
(translateString('Lower Than'),'max'),
(translateString('Not Greater Then'), 'ngt'),
(translateString('Not Lower Than'), 'nlt'),
(translateString('Less Than'),'max'),
(translateString('Not Greater Than'), 'ngt'),
(translateString('Not Less Than'), 'nlt'),
]),
['title', 'items'])
......@@ -141,9 +141,9 @@ def getSearchDialog(self, REQUEST=None):
field._surcharged_edit(dict(title=translateString('${key} ${usage}', mapping=dict(key=translateString(column_title), usage=translateString('Usage'))),
items=[(translateString('Equals To'), ''),
(translateString('Greater Than'), 'min'),
(translateString('Lower Than'),'max'),
(translateString('Not Greater Then'), 'ngt'),
(translateString('Not Lower Than'), 'nlt'),
(translateString('Less Than'),'max'),
(translateString('Not Greater Than'), 'ngt'),
(translateString('Not Less Than'), 'nlt'),
]),
['title', 'items'])
......@@ -191,7 +191,7 @@ def getSearchDialog(self, REQUEST=None):
items=[(translateString('Default (${search_key})',
mapping=dict(search_key=
translateString(default_search_key))), ''),
(translateString('ExactMatch'), 'ExactMatch' ),
(translateString('Exact Match'), 'ExactMatch' ),
(translateString('Keyword'), 'Keyword'),
]),
......
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