From a879b8dd65ea309a787753462b2adf7049c168c3 Mon Sep 17 00:00:00 2001 From: prathameshkurunkar7 Date: Fri, 20 Feb 2026 12:54:03 +0530 Subject: [PATCH] fix: prevent translation of icon class names for workflow states in select options --- frappe/translate.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frappe/translate.py b/frappe/translate.py index 64c80e7591..c54b8c7dce 100644 --- a/frappe/translate.py +++ b/frappe/translate.py @@ -329,6 +329,9 @@ def get_messages_from_doctype(name): if d.fieldtype == "Select" and d.options: options = d.options.split("\n") + # for workflow state, we don't want to translate the icon(css classnames) + if d.fieldname == "icon" and name == "Workflow State": + continue if "icon" not in options[0]: messages.extend(options) if d.fieldtype == "HTML" and d.options: