[MERGE] Improved warning messages for all l10n modules

bzr revid: pso@tinyerp.com-20120722075217-ky50shhjo44zxiar
This commit is contained in:
pso (OpenERP) 2012-07-22 13:22:17 +05:30
commit 104baf0a0a
6 changed files with 12 additions and 12 deletions

View File

@ -301,7 +301,7 @@ msgstr ""
#. module: l10n_be
#: code:addons/l10n_be/wizard/l10n_be_vat_intra.py:102
#, python-format
msgid "The period code you entered is not valid."
msgid "Period code is not valid."
msgstr ""
#. module: l10n_be

View File

@ -113,7 +113,7 @@ class partner_vat_intra(osv.osv_memory):
issued_by = company_vat[:2]
if len(wiz_data.period_code) != 6:
raise osv.except_osv(_('Wrong Period Code'), _('The period code you entered is not valid.'))
raise osv.except_osv(_('Wrong Period Code'), _('Period code is not valid.'))
if not wiz_data.period_ids:
raise osv.except_osv(_('Data Insufficient!'),_('Please select at least one Period.'))

View File

@ -100,7 +100,7 @@ msgstr ""
#. module: l10n_ch
#: code:addons/l10n_ch/wizard/create_dta.py:0
#, python-format
msgid "The Bank type %s of the bank account: %s is not supported"
msgid "The Bank type %s of the bank account: %s is not supported."
msgstr ""
#. module: l10n_ch
@ -325,7 +325,7 @@ msgstr ""
#. module: l10n_ch
#: code:addons/l10n_ch/wizard/create_dta.py:0
#, python-format
msgid "not implemented"
msgid "Not implemented."
msgstr ""
#. module: l10n_ch
@ -396,7 +396,7 @@ msgstr ""
#. module: l10n_ch
#: code:addons/l10n_ch/wizard/create_dta.py:0
#, python-format
msgid "No payment mode"
msgid "No payment mode."
msgstr ""
#. module: l10n_ch

View File

@ -207,7 +207,7 @@ class BVRWebKitParser(webkit_report.WebKitParser):
if not header and report_xml.header:
raise except_osv(
_('No header defined for this Webkit report!'),
_('Please set a header in company settings')
_('Please set a header in company settings.')
)
if not report_xml.header :
#I know it could be cleaner ...

View File

@ -222,10 +222,10 @@ def _import(self, cursor, user, data, context=None):
account_id = int(value.split(',')[1])
else :
raise osv.except_osv(_('Error'),
_('The properties account payable account receivable are not set'))
_('The properties account payable account receivable are not set.'))
if not account_id and line_ids:
raise osv.except_osv(_('Error'),
_('The properties account payable account receivable are not set'))
_('The properties account payable account receivable are not set.'))
values['account_id'] = account_id
values['partner_id'] = partner_id
statement_line_obj.create(cursor, user, values, context=context)

View File

@ -99,7 +99,7 @@ class record:
Must instanciate a fields list, field = (name,size)
and update a local_values dict.
"""
raise _('not implemented')
raise _('Not implemented.')
def generate(self):
res=''
@ -373,7 +373,7 @@ def _create_dta(obj, cr, uid, data, context=None):
# _('Please confirm it'))
if not payment.mode:
raise osv.except_osv(_('Error'),
_('No payment mode'))
_('No payment mode.'))
bank = payment.mode.bank_id
if not bank:
raise osv.except_osv(_('Error'), _('No bank account for the company.'))
@ -558,7 +558,7 @@ def _create_dta(obj, cr, uid, data, context=None):
raise osv.except_osv(_('Error'),
_('BVR reference number is not valid \n'
'for the line: %s. \n'
'Mod10 check failed') % pline.name)
'Mod10 check failed.') % pline.name)
# fill reference with 0
v['reference'] = v['reference'].rjust(27, '0')
else:
@ -603,7 +603,7 @@ def _create_dta(obj, cr, uid, data, context=None):
v['partner_bank_number'] = '/C/'+v['partner_post_number']
record_type = record_gt827
else:
raise osv.except_osv(_('Error'), _('The Bank type %s of the bank account: %s is not supported') \
raise osv.except_osv(_('Error'), _('The Bank type %s of the bank account: %s is not supported.') \
% (elec_pay, res_partner_bank_obj.name_get(cr, uid, [pline.bank_id.id], context)[0][1],))
dta_line = record_type(v).generate()