mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
Merge pull request #43295 from doancan/patch-1
fix: translate Update default_success_action.py
This commit is contained in:
@@ -11,14 +11,17 @@ doctype_list = [
|
|||||||
|
|
||||||
|
|
||||||
def get_message(doctype):
|
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):
|
def get_first_success_message(doctype):
|
||||||
|
# Reuse the get_message function for consistency
|
||||||
return get_message(doctype)
|
return get_message(doctype)
|
||||||
|
|
||||||
|
|
||||||
def get_default_success_action():
|
def get_default_success_action():
|
||||||
|
# Loop through each doctype in the list and return formatted actions
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
"doctype": "Success Action",
|
"doctype": "Success Action",
|
||||||
|
|||||||
Reference in New Issue
Block a user