Merge branch 'blender-v3.5-release'

This commit is contained in:
2023-03-07 11:06:19 +01:00
2 changed files with 12 additions and 2 deletions

View File

@@ -690,6 +690,15 @@ def dump_py_messages_from_files(msgs, reports, files, settings):
else:
continue
# Skip function if it's marked as not translatable.
do_translate = True
for kw in node.keywords:
if kw.arg == "translate" and not kw.value.value:
do_translate = False
break
if not do_translate:
continue
func_args = func_translate_args.get(func_id, {})
# First try to get i18n contexts, for every possible msgid id.