[bug fix] Label in dashboard.html not translated (#5859)

* Update translate.py

New label introduced via dashboard html template file can not be translated, because the logic to fetch to be translated label for the doctype does not include dashboard.html

* Update translate.py
This commit is contained in:
Fisher Yu 2018-07-24 19:30:05 +08:00 committed by Rushabh Mehta
parent 0c5f5dcb92
commit e7ddbb7c5e

View file

@ -345,6 +345,7 @@ def get_messages_from_doctype(name):
messages.extend(get_messages_from_file(doctype_file_path + "_list.js"))
messages.extend(get_messages_from_file(doctype_file_path + "_list.html"))
messages.extend(get_messages_from_file(doctype_file_path + "_calendar.js"))
messages.extend(get_messages_from_file(doctype_file_path + "_dashboard.html"))
# workflow based on doctype
messages.extend(get_messages_from_workflow(doctype=name))