Преглед на файлове

Enable translation of Capitalized Keywords

The regex checkin only lower letters, dont allow the translation of things like

- VAT
- NPV
- IRR
- PV
- PMT
version-14
Maxwell Morais преди 9 години
родител
ревизия
68fa6cd9d0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. +1
    -1
      frappe/translate.py

+ 1
- 1
frappe/translate.py Целия файл

@@ -501,7 +501,7 @@ def extract_messages_from_code(code, is_py=False):
return pos_to_line_no(messages, code) return pos_to_line_no(messages, code)


def is_translatable(m): 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 True
return False return False




Зареждане…
Отказ
Запис