Merge pull request #43719 from frappe/mergify/bp/version-15-hotfix/pr-43295

fix: translate Update default_success_action.py (backport #43295)
This commit is contained in:
ruthra kumar
2024-10-18 12:05:27 +05:30
committed by GitHub

View File

@@ -11,14 +11,17 @@ doctype_list = [
def get_message(doctype):
return _("{0} has been submitted successfully").format(_(doctype))
# Properly format the string with translated doctype
return _("{0} has been submitted successfully").format(doctype)
def get_first_success_message(doctype):
# Reuse the get_message function for consistency
return get_message(doctype)
def get_default_success_action():
# Loop through each doctype in the list and return formatted actions
return [
{
"doctype": "Success Action",