resolve conflict, apply reviewer changes

This commit is contained in:
Yaqin Shurrab 2017-03-05 12:54:39 +02:00
commit c6f3350bae
2 changed files with 2 additions and 1 deletions

View file

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

View file

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