Merge pull request #37301 from prathameshkurunkar7/28969-exclude-css-class-names-from-translatable-strings

This commit is contained in:
Suraj Shetty 2026-02-23 12:25:36 +05:30 committed by GitHub
commit d428845db3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: