diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2013-02-10 13:09:26 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2013-02-10 13:09:26 +0400 |
commit | c0fa16f2c99abb3db9b4fab1a952383e6fd81167 (patch) | |
tree | 1a52708f0ebdec86e1412f4354f5a72c03d2e88b /release/scripts/startup/bl_ui/properties_material.py | |
parent | 5d4df1a999d65bdfe67cec1088b34d9d47fc5412 (diff) |
Another fix for r54414 (cleaner to "import" pgettext once at top of files, also now using usual '_' shortcut).
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 9b7cfe89a08..8c6a67ea17e 100644 --- a/release/scripts/startup/bl_ui/properties_material.py +++ b/release/scripts/startup/bl_ui/properties_material.py @@ -21,6 +21,8 @@ import bpy from bpy.types import Menu, Panel, UIList from rna_prop_ui import PropertyPanel +_ = bpy.app.translations.pgettext + def active_node_mat(mat): # TODO, 2.4x has a pipeline section, for 2.5 we need to communicate @@ -80,8 +82,7 @@ class MATERIAL_UL_matslots(UIList): if ma and not context.scene.render.use_shading_nodes: manode = ma.active_node_material if manode: - pgettext = bpy.app.translations.pgettext - layout.label(text=pgettext("Node %s") % manode.name, translate=False, icon_value=layout.icon(manode)) + layout.label(text=_("Node %s") % manode.name, translate=False, icon_value=layout.icon(manode)) elif ma.use_nodes: layout.label(text="Node <none>") else: |