forked from bartvdbraak/blender
Update to i18n tools (new [CTX_]DATA_ macros, and some more exceptions to spell check...).
This commit is contained in:
parent
6926596174
commit
72a3714695
@ -135,7 +135,7 @@ def print_info(reports, pot):
|
|||||||
_print("{} messages were rejected.".format(len(reports["messages_skipped"])))
|
_print("{} messages were rejected.".format(len(reports["messages_skipped"])))
|
||||||
_print("\n")
|
_print("\n")
|
||||||
_print("Current POT stats:")
|
_print("Current POT stats:")
|
||||||
pot.print_stats(prefix="\t", output=_print)
|
pot.print_info(prefix="\t", output=_print)
|
||||||
_print("\n")
|
_print("\n")
|
||||||
|
|
||||||
check_ctxt = reports["check_ctxt"]
|
check_ctxt = reports["check_ctxt"]
|
||||||
|
@ -237,10 +237,10 @@ _ctxt_re = _ctxt_re_gen("")
|
|||||||
_msg_re = r"(?P<msg_raw>" + _str_whole_re.format(_="_msg") + r")"
|
_msg_re = r"(?P<msg_raw>" + _str_whole_re.format(_="_msg") + r")"
|
||||||
PYGETTEXT_KEYWORDS = (() +
|
PYGETTEXT_KEYWORDS = (() +
|
||||||
tuple((r"{}\(\s*" + _msg_re + r"\s*\)").format(it)
|
tuple((r"{}\(\s*" + _msg_re + r"\s*\)").format(it)
|
||||||
for it in ("IFACE_", "TIP_", "N_")) +
|
for it in ("IFACE_", "TIP_", "DATA_", "N_")) +
|
||||||
|
|
||||||
tuple((r"{}\(\s*" + _ctxt_re + r"\s*,\s*" + _msg_re + r"\s*\)").format(it)
|
tuple((r"{}\(\s*" + _ctxt_re + r"\s*,\s*" + _msg_re + r"\s*\)").format(it)
|
||||||
for it in ("CTX_IFACE_", "CTX_TIP_", "CTX_N_")) +
|
for it in ("CTX_IFACE_", "CTX_TIP_", "CTX_DATA_", "CTX_N_")) +
|
||||||
|
|
||||||
tuple(("{}\\((?:[^\"',]+,){{1,2}}\\s*" + _msg_re + r"\s*(?:\)|,)").format(it)
|
tuple(("{}\\((?:[^\"',]+,){{1,2}}\\s*" + _msg_re + r"\s*(?:\)|,)").format(it)
|
||||||
for it in ("BKE_report", "BKE_reportf", "BKE_reports_prepend", "BKE_reports_prependf",
|
for it in ("BKE_report", "BKE_reportf", "BKE_reports_prepend", "BKE_reports_prependf",
|
||||||
@ -308,6 +308,7 @@ WARN_MSGID_NOT_CAPITALIZED_ALLOWED = {
|
|||||||
"sqrt(x*x+y*y+z*z)",
|
"sqrt(x*x+y*y+z*z)",
|
||||||
"sRGB",
|
"sRGB",
|
||||||
"utf-8",
|
"utf-8",
|
||||||
|
"var",
|
||||||
"vBVH",
|
"vBVH",
|
||||||
"view",
|
"view",
|
||||||
"wav",
|
"wav",
|
||||||
|
@ -374,8 +374,9 @@ class SpellChecker():
|
|||||||
"fluidsim",
|
"fluidsim",
|
||||||
"frameserver",
|
"frameserver",
|
||||||
"enum",
|
"enum",
|
||||||
|
"idcol",
|
||||||
"keyframe", "keyframes", "keyframing", "keyframed",
|
"keyframe", "keyframes", "keyframing", "keyframed",
|
||||||
"metaball", "metaballs",
|
"metaball", "metaballs", "mball",
|
||||||
"metaelement", "metaelements",
|
"metaelement", "metaelements",
|
||||||
"metastrip", "metastrips",
|
"metastrip", "metastrips",
|
||||||
"movieclip",
|
"movieclip",
|
||||||
|
Loading…
Reference in New Issue
Block a user