fix: Incorrect translation syntax

This commit is contained in:
Suraj Shetty
2020-01-29 15:06:18 +05:30
parent 239f0d529e
commit 48e9bc3fc9
59 changed files with 124 additions and 124 deletions

View File

@@ -81,7 +81,7 @@ class TestCompany(unittest.TestCase):
filters["is_group"] = 1
has_matching_accounts = frappe.get_all("Account", filters)
error_message = _("No Account matched these filters: {}".format(json.dumps(filters)))
error_message = _("No Account matched these filters: {}").format(json.dumps(filters))
self.assertTrue(has_matching_accounts, msg=error_message)
finally:
@@ -124,7 +124,7 @@ def create_child_company():
child_company.insert()
else:
child_company = frappe.get_doc("Company", child_company)
return child_company.name
def create_test_lead_in_company(company):

View File

@@ -143,5 +143,5 @@ def insert_record(records):
def welcome_email():
site_name = get_default_company()
title = _("Welcome to {0}".format(site_name))
title = _("Welcome to {0}").format(site_name)
return title