Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: translate Update default_success_action.py #43295

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading