Merge pull request #37301 from prathameshkurunkar7/28969-exclude-css-class-names-from-translatable-strings
This commit is contained in:
commit
d428845db3
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