diff --git a/frappe/translate.py b/frappe/translate.py index 800aa85f01..e92ab271eb 100644 --- a/frappe/translate.py +++ b/frappe/translate.py @@ -507,7 +507,7 @@ def extract_messages_from_code(code, is_py=False): :param code: code from which translatable files are to be extracted :param is_py: include messages in triple quotes e.g. `_('''message''')`""" try: - code = render_include(code) + code = frappe.as_unicode(render_include(code)) except (TemplateError, ImportError, InvalidIncludePath): # Exception will occur when it encounters John Resig's microtemplating code pass