diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2012-10-26 21:32:50 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2012-10-26 21:32:50 +0400 |
commit | c9dade4fe0ba8c94aad919a1fedc3403e8dc5419 (patch) | |
tree | 2c7cb5e5889987262491af7543319fc849b83bf0 /release/scripts/modules/bl_i18n_utils/settings.py | |
parent | 6abd7fda52a01349a851650e309399817fc095f9 (diff) |
Big i18n commit: add "reports" from bmesh/readfile/tracking/dynapaint (and a few others), and another bunch of UI messages tweaks/fixes, as well as some BKE_report()<->BKE_reportf()...
Diffstat (limited to 'release/scripts/modules/bl_i18n_utils/settings.py')
-rw-r--r-- | release/scripts/modules/bl_i18n_utils/settings.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/release/scripts/modules/bl_i18n_utils/settings.py b/release/scripts/modules/bl_i18n_utils/settings.py index bb1a4c521a8..7de6ff80fe4 100644 --- a/release/scripts/modules/bl_i18n_utils/settings.py +++ b/release/scripts/modules/bl_i18n_utils/settings.py @@ -156,12 +156,14 @@ PYGETTEXT_KEYWORDS = (() + for it in ("IFACE_", "TIP_", "N_")) + tuple((r"{}\(\s*" + _ctxt_re + r"\s*,\s*" + _msg_re + r"\s*\)").format(it) for it in ("CTX_IFACE_", "CTX_TIP_", "CTX_N_")) + - tuple(("{}\\([^\"',]+,(?:[^\"',]+,)?\\s*" + _msg_re + r"\s*(?:\)|,)").format(it) - for it in ("BKE_report", "BKE_reportf", "BKE_reports_prepend", "BKE_reports_prependf")) + tuple(("{}\\((?:[^\"',]+,){{1,2}}\\s*" + _msg_re + r"\s*(?:\)|,)").format(it) + for it in ("BKE_report", "BKE_reportf", "BKE_reports_prepend", "BKE_reports_prependf")) + + tuple(("{}\\((?:[^\"',]+,){{3}}\\s*" + _msg_re + r"\s*(?:\)|,)").format(it) + for it in ("BMO_error_raise",)) ) ESCAPE_RE = ( - ('((?<!\\\\)"|(?<!\\\\)\\\\(?!\\\\|"))', r"\\\1"), + (r'((?<!\\)"|(?<!\\)\\(?!\\|"))', r"\\\1"), ('\t', r"\\t"), ) |