Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/modules/bl_i18n_utils/settings.py
| Show First 20 Lines • Show All 256 Lines • ▼ Show 20 Lines | PYGETTEXT_KEYWORDS = (() + | ||||
| tuple((r"{}\(\s*" + _msg_re + r"\s*,\s*(?:" + | tuple((r"{}\(\s*" + _msg_re + r"\s*,\s*(?:" + | ||||
| r"\s*,\s*)?(?:".join(_ctxt_re_gen(i) for i in range(PYGETTEXT_MAX_MULTI_CTXT)) + r")?\s*\)").format(it) | r"\s*,\s*)?(?:".join(_ctxt_re_gen(i) for i in range(PYGETTEXT_MAX_MULTI_CTXT)) + r")?\s*\)").format(it) | ||||
| for it in ("BLT_I18N_MSGID_MULTI_CTXT",)) | for it in ("BLT_I18N_MSGID_MULTI_CTXT",)) | ||||
| ) | ) | ||||
| # Check printf mismatches between msgid and msgstr. | # Check printf mismatches between msgid and msgstr. | ||||
| CHECK_PRINTF_FORMAT = ( | CHECK_PRINTF_FORMAT = ( | ||||
| r"(?!<%)(?:%%)*%" # Begining, with handling for crazy things like '%%%%%s' | r"(?!<%)(?:%%)*%" # Beginning, with handling for crazy things like '%%%%%s' | ||||
| r"[-+#0]?" # Flags (note: do not add the ' ' (space) flag here, generates too much false positives!) | r"[-+#0]?" # Flags (note: do not add the ' ' (space) flag here, generates too much false positives!) | ||||
| r"(?:\*|[0-9]+)?" # Width | r"(?:\*|[0-9]+)?" # Width | ||||
| r"(?:\.(?:\*|[0-9]+))?" # Precision | r"(?:\.(?:\*|[0-9]+))?" # Precision | ||||
| r"(?:[hljztL]|hh|ll)?" # Length | r"(?:[hljztL]|hh|ll)?" # Length | ||||
| r"[tldiuoxXfFeEgGaAcspn]" # Specifiers (note we have Blender-specific %t and %l ones too) | r"[tldiuoxXfFeEgGaAcspn]" # Specifiers (note we have Blender-specific %t and %l ones too) | ||||
| ) | ) | ||||
| # Should po parser warn when finding a first letter not capitalized? | # Should po parser warn when finding a first letter not capitalized? | ||||
| ▲ Show 20 Lines • Show All 318 Lines • Show Last 20 Lines | |||||