remove use of gettext: _("...") style translation now its handled by rna.

This commit is contained in:
Campbell Barton
2011-09-21 15:18:38 +00:00
parent ae0124157f
commit f4c56a879d
40 changed files with 1963 additions and 2004 deletions

View File

@@ -19,7 +19,6 @@
# <pep8 compliant>
import bpy
from bpy.types import Header, Menu, Panel
from blf import gettext as _
class NODE_HT_header(Header):
@@ -62,7 +61,7 @@ class NODE_HT_header(Header):
elif snode.tree_type == 'COMPOSITING':
layout.prop(snode_id, "use_nodes")
layout.prop(snode_id.render, "use_free_unused_nodes", text=_("Free Unused"))
layout.prop(snode_id.render, "use_free_unused_nodes", text="Free Unused")
layout.prop(snode, "show_backdrop")
if snode.show_backdrop:
row = layout.row(align=True)
@@ -93,9 +92,9 @@ class NODE_MT_view(Menu):
if context.space_data.show_backdrop:
layout.separator()
layout.operator("node.backimage_move", text=_("Backdrop move"))
layout.operator("node.backimage_zoom", text=_("Backdrop zoom in")).factor = 1.2
layout.operator("node.backimage_zoom", text=_("Backdrop zoom out")).factor = 0.833
layout.operator("node.backimage_move", text="Backdrop move")
layout.operator("node.backimage_zoom", text="Backdrop zoom in").factor = 1.2
layout.operator("node.backimage_zoom", text="Backdrop zoom out").factor = 0.833
layout.separator()
@@ -138,7 +137,7 @@ class NODE_MT_node(Menu):
layout.separator()
layout.operator("node.link_make")
layout.operator("node.link_make", text=_("Make and Replace Links")).replace = True
layout.operator("node.link_make", text="Make and Replace Links").replace = True
layout.operator("node.links_cut")
layout.separator()
@@ -181,13 +180,13 @@ class NODE_PT_properties(Panel):
snode = context.space_data
layout.active = snode.show_backdrop
layout.prop(snode, "backdrop_channels", text="")
layout.prop(snode, "backdrop_zoom", text=_("Zoom"))
layout.prop(snode, "backdrop_zoom", text="Zoom")
col = layout.column(align=True)
col.label(text=_("Offset:"))
col.label(text="Offset:")
col.prop(snode, "backdrop_x", text="X")
col.prop(snode, "backdrop_y", text="Y")
col.operator("node.backimage_move", text=_("Move"))
col.operator("node.backimage_move", text="Move")
if __name__ == "__main__": # only for live edit.
bpy.utils.register_module(__name__)