fix: prevent translation of icon class names for workflow states in select options
This commit is contained in:
parent
66877405e1
commit
a879b8dd65
1 changed files with 3 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue