diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-05-29 12:08:26 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-05-29 12:08:26 +0300 |
commit | 7b743defd4f09cfc76a2ff55e20979b377a49691 (patch) | |
tree | 9d33452696a40c6cbed0f527eb2333720c74f4e2 /release/scripts/modules/bl_i18n_utils | |
parent | 166408cfe2767bb783a651ddf7ca048dc121a71b (diff) |
Fix wrong 'check context' handling in addon i18n messages generator.
Reported (with patch) by yedpodtrzitko (yed podtrzitko), thanks a bunch!
Differential Revision: https://developer.blender.org/D1327
Diffstat (limited to 'release/scripts/modules/bl_i18n_utils')
-rw-r--r-- | release/scripts/modules/bl_i18n_utils/bl_extract_messages.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py b/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py index 527bb714a22..580753482c2 100644 --- a/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py +++ b/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py @@ -64,7 +64,7 @@ def _gen_check_ctxt(settings): def _diff_check_ctxt(check_ctxt, minus_check_ctxt): - """Returns check_ctxt - minus_check_ctxt""" + """Removes minus_check_ctxt from check_ctxt""" for key in check_ctxt: if isinstance(check_ctxt[key], set): for warning in minus_check_ctxt[key]: @@ -898,7 +898,7 @@ def dump_addon_messages(module_name, do_checks, settings): del msgs[key] if check_ctxt: - check_ctxt = _diff_check_ctxt(check_ctxt, minus_check_ctxt) + _diff_check_ctxt(check_ctxt, minus_check_ctxt) # and we are done with those! del minus_pot |