[fix] module translation should also load icon labels, fixes #1640
This commit is contained in:
parent
dc975c064c
commit
b9f1d6cee1
1 changed files with 2 additions and 0 deletions
|
|
@ -112,6 +112,8 @@ def get_dict(fortype, name=None):
|
|||
messages += frappe.db.sql("select 'DocType:', name from tabDocType")
|
||||
messages += frappe.db.sql("select 'Role:', name from tabRole")
|
||||
messages += frappe.db.sql("select 'Module:', name from `tabModule Def`")
|
||||
messages += frappe.db.sql("select 'Module:', label from `tabDesktop Icon` where standard=1 or owner=%s",
|
||||
frappe.session.user)
|
||||
|
||||
translation_assets[asset_key] = make_dict_from_messages(messages)
|
||||
translation_assets[asset_key].update(get_dict_from_hooks(fortype, name))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue