From 46043f2d94432f152cdbffdcf21432545ff904ae Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 5 Mar 2013 18:23:34 +0530 Subject: [PATCH] messages updated in voucher import tool --- accounts/page/voucher_import_tool/voucher_import_tool.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/accounts/page/voucher_import_tool/voucher_import_tool.py b/accounts/page/voucher_import_tool/voucher_import_tool.py index 2d7cd25fd1..bbd8b4e04d 100644 --- a/accounts/page/voucher_import_tool/voucher_import_tool.py +++ b/accounts/page/voucher_import_tool/voucher_import_tool.py @@ -1,5 +1,6 @@ from __future__ import unicode_literals import webnotes +from webnotes import _ from webnotes.utils import flt, comma_and @webnotes.whitelist() @@ -244,7 +245,10 @@ def get_data(rows, company_abbr): accounts = [c for c in rows[i+1] if c.endswith(" - " + company_abbr)] if accounts and (len(columns) != rows[i+1].index(accounts[0])): - raise Exception, """All account columns should be after standard columns and \ - on the right. Please rectify it in the file and try again.""" + raise Exception, _("""All account columns should be after \ + standard columns and on the right. + If you entered it properly, next probable reason \ + could be wrong account name. + Please rectify it in the file and try again.""") return data, start_row_idx \ No newline at end of file