resolve conflict, apply reviewer changes
This commit is contained in:
commit
c6f3350bae
2 changed files with 2 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ def _(msg, lang=None):
|
|||
# msg should always be unicode
|
||||
msg = as_unicode(msg).strip()
|
||||
|
||||
# retrun lang_full_dict according to lang passed parameter
|
||||
# return lang_full_dict according to lang passed parameter
|
||||
return get_full_dict(lang).get(msg) or msg
|
||||
|
||||
def as_unicode(text, encoding='utf-8'):
|
||||
|
|
|
|||
|
|
@ -178,6 +178,7 @@ def get_full_dict(lang):
|
|||
if not lang:
|
||||
return {}
|
||||
|
||||
# found in local, return!
|
||||
if getattr(frappe.local, 'lang_full_dict', {}).get(lang, None):
|
||||
return frappe.local.lang_full_dict
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue