Merge pull request #1731 from MaxMorais/patch-18

Enable translation of Capitalized Keywords
This commit is contained in:
Anand Doshi 2016-04-27 12:30:05 +05:30
commit 7801d940c8

View file

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