From cade53bc857179883c9f1e2698424fd1c9f76eb0 Mon Sep 17 00:00:00 2001 From: marination Date: Mon, 8 Jan 2024 11:21:58 +0100 Subject: [PATCH] fix: Appropriate arguments to `log_error` - misc: Translate error messages --- erpnext_datev/erpnext_datev/report/datev/datev.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext_datev/erpnext_datev/report/datev/datev.py b/erpnext_datev/erpnext_datev/report/datev/datev.py index 465411f..57472eb 100644 --- a/erpnext_datev/erpnext_datev/report/datev/datev.py +++ b/erpnext_datev/erpnext_datev/report/datev/datev.py @@ -189,10 +189,10 @@ def validate(filters): validate_fiscal_year(from_date, to_date, company) if not frappe.db.exists("DATEV Settings", filters.get("company")): - msg = "Please create DATEV Settings for Company {}".format( + msg = _("Please create DATEV Settings for Company {}").format( filters.get("company") ) - frappe.log_error(msg, title="DATEV Settings missing") + frappe.log_error(message=msg, title=_("DATEV Settings missing")) return False return True