From 68fa6cd9d03ca408b7d450786ff1a0f7ffb0cc5a Mon Sep 17 00:00:00 2001 From: Maxwell Morais Date: Tue, 26 Apr 2016 14:27:36 -0300 Subject: [PATCH] Enable translation of Capitalized Keywords The regex checkin only lower letters, dont allow the translation of things like - VAT - NPV - IRR - PV - PMT --- frappe/translate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/translate.py b/frappe/translate.py index f82797612d..4ff9d9762d 100644 --- a/frappe/translate.py +++ b/frappe/translate.py @@ -501,7 +501,7 @@ def extract_messages_from_code(code, is_py=False): return pos_to_line_no(messages, code) def is_translatable(m): - if re.search("[a-z]", m) and not m.startswith("icon-") and not m.endswith("px") and not m.startswith("eval:"): + if re.search("[a-zA-Z]", m) and not m.startswith("icon-") and not m.endswith("px") and not m.startswith("eval:"): return True return False