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>2013-02-24 19:40:28 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2013-02-24 19:40:28 +0400
commitb1543f07bf1e135dc6f99567175e728fda6c4726 (patch)
tree44af13fc9fbc91a2c7437e5b6951d889a626dfc1 /release
parent4e14fe45090cf17b43e0fa0dd21bb3c79a351cd1 (diff)
Another bunch of UI translation fixes, thanks to Leon Cheung, Gabriel Gazzán and S. Lockal for spotting them!
Diffstat (limited to 'release')
-rw-r--r--release/scripts/modules/bl_i18n_utils/bl_extract_messages.py8
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py5
2 files changed, 12 insertions, 1 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 5287bcdbeb5..18c7b736ea5 100644
--- a/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py
+++ b/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py
@@ -776,6 +776,14 @@ def dump_messages(do_messages, do_checks, settings):
# Get strings from C source code.
dump_src_messages(msgs, reports, settings)
+ # Get strings from addons' categories.
+ print("foo, bar", bpy.types.WindowManager.addon_filter[1]['items'](bpy.context.window_manager, bpy.context))
+ for uid, label, tip in bpy.types.WindowManager.addon_filter[1]['items'](bpy.context.window_manager, bpy.context):
+ print(uid, label, tip)
+ process_msg(msgs, settings.DEFAULT_CONTEXT, label, "Addons' categories", reports, None, settings)
+ if tip:
+ process_msg(msgs, settings.DEFAULT_CONTEXT, tip, "Addons' categories", reports, None, settings)
+
# Get strings specific to translations' menu.
for lng in settings.LANGUAGES:
process_msg(msgs, settings.DEFAULT_CONTEXT, lng[1], "Languages’ labels from bl_i18n_utils/settings.py",
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index fcc20243a8c..1965d11c22f 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -1612,6 +1612,8 @@ class BoneOptions:
def draw(self, context):
layout = self.layout
+ default_context = bpy.app.translations.contexts.default
+
options = [
"show_wire",
"use_deform",
@@ -1631,7 +1633,8 @@ class BoneOptions:
opt_suffix = "bone."
for opt in options:
- props = layout.operator("wm.context_collection_boolean_set", text=bone_props[opt].name)
+ props = layout.operator("wm.context_collection_boolean_set", text=bone_props[opt].name,
+ text_ctxt=default_context)
props.data_path_iter = data_path_iter
props.data_path_item = opt_suffix + opt
props.type = self.type