diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2013-02-09 22:26:40 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2013-02-09 22:26:40 +0400 |
commit | 82c86af7f7b37e940748e99efe3b19fd5b92d6ca (patch) | |
tree | 76699950d46a3084077ed71f3a95c2169d36d761 /release/scripts/startup/bl_ui/properties_material.py | |
parent | 1083a069004490b0ed8679679adb2a7ea881ba62 (diff) |
Bunch of fixes for py ui messages (all those using 'formating' were not translated previously, now they use bpy.app.translations.pgettext). Also pleas avoid complex py statements in 'text' values (like 'text="foo" if cond else "bar"'), thes make message extraction script fails!
And another "final point in UI message" removal!
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_material.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_material.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_material.py b/release/scripts/startup/bl_ui/properties_material.py index 3a3cd88953c..9b7cfe89a08 100644 --- a/release/scripts/startup/bl_ui/properties_material.py +++ b/release/scripts/startup/bl_ui/properties_material.py @@ -80,9 +80,10 @@ class MATERIAL_UL_matslots(UIList): if ma and not context.scene.render.use_shading_nodes: manode = ma.active_node_material if manode: - layout.label(text="Node %s" % manode.name, translate=False, icon_value=layout.icon(manode)) + pgettext = bpy.app.translations.pgettext + layout.label(text=pgettext("Node %s") % manode.name, translate=False, icon_value=layout.icon(manode)) elif ma.use_nodes: - layout.label(text="Node <none>", translate=False) + layout.label(text="Node <none>") else: layout.label(text="") elif self.layout_type in {'GRID'}: |