Merge pull request #10493 from surajshetty3416/fix-shared-translation-bug
This commit is contained in:
commit
366bffe3dc
1 changed files with 6 additions and 3 deletions
|
|
@ -126,15 +126,18 @@ def get_dict(fortype, name=None):
|
|||
# remove untranslated
|
||||
message_dict = {k:v for k, v in iteritems(message_dict) if k!=v}
|
||||
|
||||
if fortype=="boot":
|
||||
message_dict.update(get_user_translations(frappe.local.lang))
|
||||
|
||||
translation_assets[asset_key] = message_dict
|
||||
|
||||
cache.hset("translation_assets", frappe.local.lang, translation_assets, shared=True)
|
||||
|
||||
if fortype=="boot":
|
||||
message_dict.update(get_user_translations(frappe.local.lang))
|
||||
|
||||
return message_dict
|
||||
|
||||
return translation_assets[asset_key]
|
||||
|
||||
|
||||
def get_dict_from_hooks(fortype, name):
|
||||
translated_dict = {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue