I18n: Translate Window manager job names
Job names displayed in the status bar were not extracted or translated. This commit adds a regex to the bl_i18n_utils settings to detect `WM_jobs_get()`, and the `RPT_` translation macro to translate the message in the UI. About 30 new messages are translated. Reported by Ye Gui in #43295.
This commit is contained in:
committed by
Bastien Montagne
parent
ac8a3f98c2
commit
14957fe2ac
@@ -266,6 +266,10 @@ PYGETTEXT_KEYWORDS = (() +
|
||||
tuple(("{}\\((?:[^\"',]+,){{2}}\\s*" + _msg_re + r"\s*(?:\)|,)").format(it)
|
||||
for it in ("BKE_modifier_set_error",)) +
|
||||
|
||||
# Window manager job names.
|
||||
tuple(("{}\\((?:[^\"',]+,){{3}}\\s*" + _msg_re + r"\s*,").format(it)
|
||||
for it in ("WM_jobs_get",)) +
|
||||
|
||||
# Compositor and EEVEE messages.
|
||||
# Ends either with `)` (function call close), or `,` when there are extra formatting parameters.
|
||||
tuple((r"{}\(\s*" + _msg_re + r"\s*(?:\)|,)").format(it)
|
||||
|
||||
Reference in New Issue
Block a user