Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2018-12-24 00:03:12 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-12-24 00:03:43 +0300
commit59b530ca1810f109c3696814655e427d912ad6b7 (patch)
tree7032778ef0d79601810821949d851ba23f231bb8 /release/scripts/modules/bl_i18n_utils/bl_extract_messages.py
parent1158b9f73a3d9903657a95736897f570c2cb46ad (diff)
Fix and workaround for i18n messages extraction code.
Diffstat (limited to 'release/scripts/modules/bl_i18n_utils/bl_extract_messages.py')
-rw-r--r--release/scripts/modules/bl_i18n_utils/bl_extract_messages.py5
1 files changed, 3 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 f22675b481f..0285a22a923 100644
--- a/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py
+++ b/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py
@@ -379,7 +379,8 @@ def dump_rna_messages(msgs, reports, settings, verbose=False):
km_i18n_context = bpy.app.translations.contexts.id_windowmanager
for lvl in hier:
msgsrc = msgsrc_prev + "." + lvl[1]
- process_msg(msgs, km_i18n_context, lvl[0], msgsrc, reports, None, settings)
+ if isinstance(lvl[0], str): # Can be a function too, now, with tool system...
+ process_msg(msgs, km_i18n_context, lvl[0], msgsrc, reports, None, settings)
if lvl[3]:
walk_keymap_hierarchy(lvl[3], msgsrc)
@@ -987,7 +988,7 @@ def main():
args = parser.parse_args(argv)
settings = settings_i18n.I18nSettings()
- settings.from_json(args.settings)
+ settings.load(args.settings)
if args.output:
settings.FILE_NAME_POT = args.output