Skip to content

Commit

Permalink
Merge pull request #43719 from frappe/mergify/bp/version-15-hotfix/pr…
Browse files Browse the repository at this point in the history
…-43295

fix: translate Update default_success_action.py (backport #43295)
  • Loading branch information
ruthra-kumar authored Oct 18, 2024
2 parents a58ce52 + f70506f commit 03b5d5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion erpnext/setup/default_success_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@


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",
Expand Down

0 comments on commit 03b5d5a

Please sign in to comment.