diff options
author | Xiao Xiangquan <xiaoxiangquan@gmail.com> | 2011-07-13 18:41:12 +0400 |
---|---|---|
committer | Xiao Xiangquan <xiaoxiangquan@gmail.com> | 2011-07-13 18:41:12 +0400 |
commit | 470a5017fb80f21bac08373e4b5816c92d42990a (patch) | |
tree | dc91c7e24136e376859c351f58ee06a1af458539 /release/scripts/startup/bl_ui/space_logic.py | |
parent | b4c02ee72218fd4c76f7659db2e994895f67dc22 (diff) |
complete space outliner, space node, space nla, etc.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_logic.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_logic.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/release/scripts/startup/bl_ui/space_logic.py b/release/scripts/startup/bl_ui/space_logic.py index 7f7aba71a46..da4161cd88c 100644 --- a/release/scripts/startup/bl_ui/space_logic.py +++ b/release/scripts/startup/bl_ui/space_logic.py @@ -18,12 +18,13 @@ # <pep8 compliant> import bpy +from blf import gettext as _ class LOGIC_PT_properties(bpy.types.Panel): bl_space_type = 'LOGIC_EDITOR' bl_region_type = 'UI' - bl_label = "Properties" + bl_label = _("Properties") @classmethod def poll(cls, context): @@ -36,7 +37,7 @@ class LOGIC_PT_properties(bpy.types.Panel): ob = context.active_object game = ob.game - layout.operator("object.game_property_new", text="Add Game Property", icon='ZOOMIN') + layout.operator("object.game_property_new", text=_("Add Game Property"), icon='ZOOMIN') for i, prop in enumerate(game.properties): @@ -50,14 +51,14 @@ class LOGIC_PT_properties(bpy.types.Panel): class LOGIC_MT_logicbricks_add(bpy.types.Menu): - bl_label = "Add" + bl_label = _("Add") def draw(self, context): layout = self.layout - layout.operator_menu_enum("logic.sensor_add", "type", text="Sensor") - layout.operator_menu_enum("logic.controller_add", "type", text="Controller") - layout.operator_menu_enum("logic.actuator_add", "type", text="Actuator") + layout.operator_menu_enum("logic.sensor_add", "type", text=_("Sensor")) + layout.operator_menu_enum("logic.controller_add", "type", text=_("Controller")) + layout.operator_menu_enum("logic.actuator_add", "type", text=_("Actuator")) class LOGIC_HT_header(bpy.types.Header): @@ -77,7 +78,7 @@ class LOGIC_HT_header(bpy.types.Header): class LOGIC_MT_view(bpy.types.Menu): - bl_label = "View" + bl_label = _("View") def draw(self, context): layout = self.layout |