diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-09-15 17:20:18 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-09-15 17:20:18 +0400 |
commit | 0eda51f2eabe24016efdc8f07825f1ba667cac33 (patch) | |
tree | 03d6f876da6b1256b8890b89db09b63952fa544f /release/scripts/startup/bl_ui | |
parent | 30293dc2ca8052ad0c7113c77365feca590f4d05 (diff) |
Fixing issues with i18n stuff:
- Make gettext stuff draw-time. so switching between languages
can happens without restart now.
- Added option to translate visible interface (menus, buttons, labels)
and tooltips. Now it's possible to have english UI and localized tooltips.
- Clean-up sources, do not use gettext stuff for things which can be
collected with RNA.
- Fix issues with windows 64bit and ru_RU locale on my desktop
(it was codepage issue).
- Added operator "Get Messages" which generates new text block with
with all strings collected from RNA.
- Changed script for updating blender.pot so now it appends
messages collected from rna to automatically gathered messages.
To update .pot you have to re-generate messages.txt using "Get Messages"
operator and then run update_pot script.
- Clean up old translation stuff which wasn't used and most probably
wouldn't be used.
- Return back "International Fonts" option, so if it's disabled, no
gettext lookups happens on draw.
- Merged read_homefile function back. No need in splitting it.
TODO:
- Custom fonts and font size.
Current font isn't nice at least for russian locale, it's
difficult to read it.
- Put references to messages.txt so gettext can merge translation when
name/description of some property changes.
Diffstat (limited to 'release/scripts/startup/bl_ui')
41 files changed, 444 insertions, 459 deletions
diff --git a/release/scripts/startup/bl_ui/properties_animviz.py b/release/scripts/startup/bl_ui/properties_animviz.py index 6c5125b8e23..499ea4c95d4 100644 --- a/release/scripts/startup/bl_ui/properties_animviz.py +++ b/release/scripts/startup/bl_ui/properties_animviz.py @@ -28,7 +28,7 @@ from blf import gettext as _ class MotionPathButtonsPanel(): bl_space_type = 'PROPERTIES' bl_region_type = 'WINDOW' - bl_label = _("Motion Paths") + bl_label = "Motion Paths" bl_options = {'DEFAULT_CLOSED'} def draw_settings(self, context, avs, bones=False): @@ -66,7 +66,7 @@ class MotionPathButtonsPanel(): class OnionSkinButtonsPanel(): bl_space_type = 'PROPERTIES' bl_region_type = 'WINDOW' - bl_label = _("Onion Skinning") + bl_label = "Onion Skinning" bl_options = {'DEFAULT_CLOSED'} def draw(self, context): diff --git a/release/scripts/startup/bl_ui/properties_data_armature.py b/release/scripts/startup/bl_ui/properties_data_armature.py index 708f485a0f8..e5729a24b91 100644 --- a/release/scripts/startup/bl_ui/properties_data_armature.py +++ b/release/scripts/startup/bl_ui/properties_data_armature.py @@ -50,7 +50,7 @@ class DATA_PT_context_arm(ArmatureButtonsPanel, Panel): class DATA_PT_skeleton(ArmatureButtonsPanel, Panel): - bl_label = _("Skeleton") + bl_label = "Skeleton" def draw(self, context): layout = self.layout @@ -76,7 +76,7 @@ class DATA_PT_skeleton(ArmatureButtonsPanel, Panel): class DATA_PT_display(ArmatureButtonsPanel, Panel): - bl_label = _("Display") + bl_label = "Display" def draw(self, context): layout = self.layout @@ -101,7 +101,7 @@ class DATA_PT_display(ArmatureButtonsPanel, Panel): class DATA_PT_bone_group_specials(Menu): - bl_label = _("Bone Group Specials") + bl_label = "Bone Group Specials" def draw(self, context): layout = self.layout @@ -110,7 +110,7 @@ class DATA_PT_bone_group_specials(Menu): class DATA_PT_bone_groups(ArmatureButtonsPanel, Panel): - bl_label = _("Bone Groups") + bl_label = "Bone Groups" @classmethod def poll(cls, context): @@ -170,7 +170,7 @@ class DATA_PT_bone_groups(ArmatureButtonsPanel, Panel): class DATA_PT_pose_library(ArmatureButtonsPanel, Panel): - bl_label = _("Pose Library") + bl_label = "Pose Library" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -216,7 +216,7 @@ class DATA_PT_pose_library(ArmatureButtonsPanel, Panel): # TODO: this panel will soon be depreceated too class DATA_PT_ghost(ArmatureButtonsPanel, Panel): - bl_label = _("Ghost") + bl_label = "Ghost" def draw(self, context): layout = self.layout @@ -243,7 +243,7 @@ class DATA_PT_ghost(ArmatureButtonsPanel, Panel): class DATA_PT_iksolver_itasc(ArmatureButtonsPanel, Panel): - bl_label = _("iTaSC parameters") + bl_label = "iTaSC parameters" bl_options = {'DEFAULT_CLOSED'} @classmethod diff --git a/release/scripts/startup/bl_ui/properties_data_bone.py b/release/scripts/startup/bl_ui/properties_data_bone.py index 36c07bd1ef8..2c9b31fd88d 100644 --- a/release/scripts/startup/bl_ui/properties_data_bone.py +++ b/release/scripts/startup/bl_ui/properties_data_bone.py @@ -50,7 +50,7 @@ class BONE_PT_context_bone(BoneButtonsPanel, Panel): class BONE_PT_transform(BoneButtonsPanel, Panel): - bl_label = _("Transform") + bl_label = "Transform" @classmethod def poll(cls, context): @@ -104,7 +104,7 @@ class BONE_PT_transform(BoneButtonsPanel, Panel): class BONE_PT_transform_locks(BoneButtonsPanel, Panel): - bl_label = _("Transform Locks") + bl_label = "Transform Locks" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -137,7 +137,7 @@ class BONE_PT_transform_locks(BoneButtonsPanel, Panel): class BONE_PT_relations(BoneButtonsPanel, Panel): - bl_label = _("Relations") + bl_label = "Relations" def draw(self, context): layout = self.layout @@ -182,7 +182,7 @@ class BONE_PT_relations(BoneButtonsPanel, Panel): class BONE_PT_display(BoneButtonsPanel, Panel): - bl_label = _("Display") + bl_label = "Display" @classmethod def poll(cls, context): @@ -219,7 +219,7 @@ class BONE_PT_display(BoneButtonsPanel, Panel): class BONE_PT_inverse_kinematics(BoneButtonsPanel, Panel): - bl_label = _("Inverse Kinematics") + bl_label = "Inverse Kinematics" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -310,7 +310,7 @@ class BONE_PT_inverse_kinematics(BoneButtonsPanel, Panel): class BONE_PT_deform(BoneButtonsPanel, Panel): - bl_label = _("Deform") + bl_label = "Deform" bl_options = {'DEFAULT_CLOSED'} def draw_header(self, context): diff --git a/release/scripts/startup/bl_ui/properties_data_camera.py b/release/scripts/startup/bl_ui/properties_data_camera.py index c07acea47d5..0d79ec99789 100644 --- a/release/scripts/startup/bl_ui/properties_data_camera.py +++ b/release/scripts/startup/bl_ui/properties_data_camera.py @@ -55,7 +55,7 @@ class DATA_PT_context_camera(CameraButtonsPanel, Panel): class DATA_PT_camera(CameraButtonsPanel, Panel): - bl_label = _("Lens") + bl_label = "Lens" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} def draw(self, context): @@ -113,7 +113,7 @@ class DATA_PT_camera(CameraButtonsPanel, Panel): class DATA_PT_camera_display(CameraButtonsPanel, Panel): - bl_label = _("Display") + bl_label = "Display" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} def draw(self, context): diff --git a/release/scripts/startup/bl_ui/properties_data_curve.py b/release/scripts/startup/bl_ui/properties_data_curve.py index 36f61c1bd54..eb68311c8e2 100644 --- a/release/scripts/startup/bl_ui/properties_data_curve.py +++ b/release/scripts/startup/bl_ui/properties_data_curve.py @@ -116,7 +116,7 @@ class DATA_PT_shape_curve(CurveButtonsPanel, Panel): class DATA_PT_curve_texture_space(CurveButtonsPanel, Panel): - bl_label = _("Texture Space") + bl_label = "Texture Space" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @@ -135,7 +135,7 @@ class DATA_PT_curve_texture_space(CurveButtonsPanel, Panel): class DATA_PT_geometry_curve(CurveButtonsPanel, Panel): - bl_label = _("Geometry") + bl_label = "Geometry" @classmethod def poll(cls, context): @@ -168,7 +168,7 @@ class DATA_PT_geometry_curve(CurveButtonsPanel, Panel): class DATA_PT_pathanim(CurveButtonsPanelCurve, Panel): - bl_label = _("Path Animation") + bl_label = "Path Animation" def draw_header(self, context): curve = context.curve @@ -199,7 +199,7 @@ class DATA_PT_pathanim(CurveButtonsPanelCurve, Panel): class DATA_PT_active_spline(CurveButtonsPanelActive, Panel): - bl_label = _("Active Spline") + bl_label = "Active Spline" def draw(self, context): layout = self.layout @@ -270,7 +270,7 @@ class DATA_PT_active_spline(CurveButtonsPanelActive, Panel): class DATA_PT_font(CurveButtonsPanel, Panel): - bl_label = _("Font") + bl_label = "Font" @classmethod def poll(cls, context): @@ -334,7 +334,7 @@ class DATA_PT_font(CurveButtonsPanel, Panel): class DATA_PT_paragraph(CurveButtonsPanel, Panel): - bl_label = _("Paragraph") + bl_label = "Paragraph" @classmethod def poll(cls, context): @@ -363,7 +363,7 @@ class DATA_PT_paragraph(CurveButtonsPanel, Panel): class DATA_PT_text_boxes(CurveButtonsPanel, Panel): - bl_label = _("Text Boxes") + bl_label = "Text Boxes" @classmethod def poll(cls, context): diff --git a/release/scripts/startup/bl_ui/properties_data_empty.py b/release/scripts/startup/bl_ui/properties_data_empty.py index 1a6aad684c4..b6fa6d8e839 100644 --- a/release/scripts/startup/bl_ui/properties_data_empty.py +++ b/release/scripts/startup/bl_ui/properties_data_empty.py @@ -32,7 +32,7 @@ class DataButtonsPanel(): class DATA_PT_empty(DataButtonsPanel, Panel): - bl_label = _("Empty") + bl_label = "Empty" def draw(self, context): layout = self.layout diff --git a/release/scripts/startup/bl_ui/properties_data_lamp.py b/release/scripts/startup/bl_ui/properties_data_lamp.py index 4ae6ad2a7c1..93ed8ca369b 100644 --- a/release/scripts/startup/bl_ui/properties_data_lamp.py +++ b/release/scripts/startup/bl_ui/properties_data_lamp.py @@ -67,7 +67,7 @@ class DATA_PT_context_lamp(DataButtonsPanel, Panel): class DATA_PT_preview(DataButtonsPanel, Panel): - bl_label = _("Preview") + bl_label = "Preview" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} def draw(self, context): @@ -75,7 +75,7 @@ class DATA_PT_preview(DataButtonsPanel, Panel): class DATA_PT_lamp(DataButtonsPanel, Panel): - bl_label = _("Lamp") + bl_label = "Lamp" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} def draw(self, context): @@ -117,7 +117,7 @@ class DATA_PT_lamp(DataButtonsPanel, Panel): class DATA_PT_sunsky(DataButtonsPanel, Panel): - bl_label = _("Sky & Atmosphere") + bl_label = "Sky & Atmosphere" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @classmethod @@ -189,7 +189,7 @@ class DATA_PT_sunsky(DataButtonsPanel, Panel): class DATA_PT_shadow(DataButtonsPanel, Panel): - bl_label = _("Shadow") + bl_label = "Shadow" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @classmethod @@ -304,7 +304,7 @@ class DATA_PT_shadow(DataButtonsPanel, Panel): class DATA_PT_area(DataButtonsPanel, Panel): - bl_label = _("Area Shape") + bl_label = "Area Shape" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @classmethod @@ -330,7 +330,7 @@ class DATA_PT_area(DataButtonsPanel, Panel): class DATA_PT_spot(DataButtonsPanel, Panel): - bl_label = _("Spot Shape") + bl_label = "Spot Shape" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @classmethod @@ -364,7 +364,7 @@ class DATA_PT_spot(DataButtonsPanel, Panel): class DATA_PT_falloff_curve(DataButtonsPanel, Panel): - bl_label = _("Falloff Curve") + bl_label = "Falloff Curve" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} diff --git a/release/scripts/startup/bl_ui/properties_data_lattice.py b/release/scripts/startup/bl_ui/properties_data_lattice.py index d77de212247..14d6ea66894 100644 --- a/release/scripts/startup/bl_ui/properties_data_lattice.py +++ b/release/scripts/startup/bl_ui/properties_data_lattice.py @@ -20,7 +20,7 @@ import bpy from bpy.types import Panel from rna_prop_ui import PropertyPanel -from blf import gettext as _ + class DataButtonsPanel(): bl_space_type = 'PROPERTIES' @@ -53,7 +53,7 @@ class DATA_PT_context_lattice(DataButtonsPanel, Panel): class DATA_PT_lattice(DataButtonsPanel, Panel): - bl_label = _("Lattice") + bl_label = "Lattice" def draw(self, context): layout = self.layout diff --git a/release/scripts/startup/bl_ui/properties_data_mesh.py b/release/scripts/startup/bl_ui/properties_data_mesh.py index d18cc4ea678..b74c89bb67e 100644 --- a/release/scripts/startup/bl_ui/properties_data_mesh.py +++ b/release/scripts/startup/bl_ui/properties_data_mesh.py @@ -38,7 +38,7 @@ class MESH_MT_vertex_group_specials(Menu): class MESH_MT_shape_key_specials(Menu): - bl_label = _("Shape Key Specials") + bl_label = "Shape Key Specials" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} def draw(self, context): @@ -81,7 +81,7 @@ class DATA_PT_context_mesh(MeshButtonsPanel, Panel): class DATA_PT_normals(MeshButtonsPanel, Panel): - bl_label = _("Normals") + bl_label = "Normals" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} def draw(self, context): @@ -101,7 +101,7 @@ class DATA_PT_normals(MeshButtonsPanel, Panel): class DATA_PT_texture_space(MeshButtonsPanel, Panel): - bl_label = _("Texture Space") + bl_label = "Texture Space" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @@ -121,7 +121,7 @@ class DATA_PT_texture_space(MeshButtonsPanel, Panel): class DATA_PT_vertex_groups(MeshButtonsPanel, Panel): - bl_label = _("Vertex Groups") + bl_label = "Vertex Groups" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @classmethod @@ -170,7 +170,7 @@ class DATA_PT_vertex_groups(MeshButtonsPanel, Panel): class DATA_PT_shape_keys(MeshButtonsPanel, Panel): - bl_label = _("Shape Keys") + bl_label = "Shape Keys" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @classmethod @@ -263,7 +263,7 @@ class DATA_PT_shape_keys(MeshButtonsPanel, Panel): class DATA_PT_uv_texture(MeshButtonsPanel, Panel): - bl_label = _("UV Texture") + bl_label = "UV Texture" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} def draw(self, context): @@ -286,7 +286,7 @@ class DATA_PT_uv_texture(MeshButtonsPanel, Panel): class DATA_PT_texface(MeshButtonsPanel, Panel): - bl_label = _("Texture Face") + bl_label = "Texture Face" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @classmethod @@ -333,7 +333,7 @@ class DATA_PT_texface(MeshButtonsPanel, Panel): class DATA_PT_vertex_colors(MeshButtonsPanel, Panel): - bl_label = _("Vertex Colors") + bl_label = "Vertex Colors" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} def draw(self, context): diff --git a/release/scripts/startup/bl_ui/properties_data_metaball.py b/release/scripts/startup/bl_ui/properties_data_metaball.py index 55a7314bc7b..693cb697544 100644 --- a/release/scripts/startup/bl_ui/properties_data_metaball.py +++ b/release/scripts/startup/bl_ui/properties_data_metaball.py @@ -50,7 +50,7 @@ class DATA_PT_context_metaball(DataButtonsPanel, Panel): class DATA_PT_metaball(DataButtonsPanel, Panel): - bl_label = _("Metaball") + bl_label = "Metaball" def draw(self, context): layout = self.layout @@ -74,7 +74,7 @@ class DATA_PT_metaball(DataButtonsPanel, Panel): class DATA_PT_mball_texture_space(DataButtonsPanel, Panel): - bl_label = _("Texture Space") + bl_label = "Texture Space" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @@ -91,7 +91,7 @@ class DATA_PT_mball_texture_space(DataButtonsPanel, Panel): class DATA_PT_metaball_element(DataButtonsPanel, Panel): - bl_label = _("Active Element") + bl_label = "Active Element" @classmethod def poll(cls, context): diff --git a/release/scripts/startup/bl_ui/properties_data_modifier.py b/release/scripts/startup/bl_ui/properties_data_modifier.py index 8f1e1af4802..32324411669 100644 --- a/release/scripts/startup/bl_ui/properties_data_modifier.py +++ b/release/scripts/startup/bl_ui/properties_data_modifier.py @@ -28,7 +28,7 @@ class ModifierButtonsPanel(): class DATA_PT_modifiers(ModifierButtonsPanel, Panel): - bl_label = _("Modifiers") + bl_label = "Modifiers" def draw(self, context): layout = self.layout diff --git a/release/scripts/startup/bl_ui/properties_game.py b/release/scripts/startup/bl_ui/properties_game.py index 52cdfc4ad00..95ae54c4597 100644 --- a/release/scripts/startup/bl_ui/properties_game.py +++ b/release/scripts/startup/bl_ui/properties_game.py @@ -28,7 +28,7 @@ class PhysicsButtonsPanel(): class PHYSICS_PT_game_physics(PhysicsButtonsPanel, Panel): - bl_label = _("Physics") + bl_label = "Physics" COMPAT_ENGINES = {'BLENDER_GAME'} @classmethod @@ -169,7 +169,7 @@ class PHYSICS_PT_game_physics(PhysicsButtonsPanel, Panel): class PHYSICS_PT_game_collision_bounds(PhysicsButtonsPanel, Panel): - bl_label = _("Collision Bounds") + bl_label = "Collision Bounds" COMPAT_ENGINES = {'BLENDER_GAME'} @classmethod @@ -235,7 +235,7 @@ class RenderButtonsPanel(): class RENDER_PT_game(RenderButtonsPanel, Panel): - bl_label = _("Game") + bl_label = "Game" COMPAT_ENGINES = {'BLENDER_GAME'} def draw(self, context): @@ -247,7 +247,7 @@ class RENDER_PT_game(RenderButtonsPanel, Panel): class RENDER_PT_game_player(RenderButtonsPanel, Panel): - bl_label = _("Standalone Player") + bl_label = "Standalone Player" COMPAT_ENGINES = {'BLENDER_GAME'} def draw(self, context): @@ -280,7 +280,7 @@ class RENDER_PT_game_player(RenderButtonsPanel, Panel): class RENDER_PT_game_stereo(RenderButtonsPanel, Panel): - bl_label = _("Stereo") + bl_label = "Stereo" COMPAT_ENGINES = {'BLENDER_GAME'} def draw(self, context): @@ -334,7 +334,7 @@ class RENDER_PT_game_stereo(RenderButtonsPanel, Panel): class RENDER_PT_game_shading(RenderButtonsPanel, Panel): - bl_label = _("Shading") + bl_label = "Shading" COMPAT_ENGINES = {'BLENDER_GAME'} def draw(self, context): @@ -360,7 +360,7 @@ class RENDER_PT_game_shading(RenderButtonsPanel, Panel): class RENDER_PT_game_performance(RenderButtonsPanel, Panel): - bl_label = _("Performance") + bl_label = "Performance" COMPAT_ENGINES = {'BLENDER_GAME'} def draw(self, context): @@ -376,7 +376,7 @@ class RENDER_PT_game_performance(RenderButtonsPanel, Panel): class RENDER_PT_game_display(RenderButtonsPanel, Panel): - bl_label = _("Display") + bl_label = "Display" COMPAT_ENGINES = {'BLENDER_GAME'} def draw(self, context): @@ -486,7 +486,7 @@ class WORLD_PT_game_context_world(WorldButtonsPanel, Panel): class WORLD_PT_game_world(WorldButtonsPanel, Panel): - bl_label = _("World") + bl_label = "World" COMPAT_ENGINES = {'BLENDER_GAME'} @classmethod @@ -505,7 +505,7 @@ class WORLD_PT_game_world(WorldButtonsPanel, Panel): class WORLD_PT_game_mist(WorldButtonsPanel, Panel): - bl_label = _("Mist") + bl_label = "Mist" COMPAT_ENGINES = {'BLENDER_GAME'} @classmethod @@ -531,7 +531,7 @@ class WORLD_PT_game_mist(WorldButtonsPanel, Panel): class WORLD_PT_game_physics(WorldButtonsPanel, Panel): - bl_label = _("Physics") + bl_label = "Physics" COMPAT_ENGINES = {'BLENDER_GAME'} @classmethod diff --git a/release/scripts/startup/bl_ui/properties_material.py b/release/scripts/startup/bl_ui/properties_material.py index 18eae572e94..dda6610933d 100644 --- a/release/scripts/startup/bl_ui/properties_material.py +++ b/release/scripts/startup/bl_ui/properties_material.py @@ -52,14 +52,14 @@ def simple_material(mat): class MATERIAL_MT_sss_presets(Menu): - bl_label = _("SSS Presets") + bl_label = "SSS Presets" preset_subdir = "sss" preset_operator = "script.execute_preset" draw = Menu.draw_preset class MATERIAL_MT_specials(Menu): - bl_label = _("Material Specials") + bl_label = "Material Specials" def draw(self, context): layout = self.layout @@ -146,7 +146,7 @@ class MATERIAL_PT_context_material(MaterialButtonsPanel, Panel): class MATERIAL_PT_preview(MaterialButtonsPanel, Panel): - bl_label = _("Preview") + bl_label = "Preview" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} def draw(self, context): @@ -154,7 +154,7 @@ class MATERIAL_PT_preview(MaterialButtonsPanel, Panel): class MATERIAL_PT_pipeline(MaterialButtonsPanel, Panel): - bl_label = _("Render Pipeline Options") + bl_label = "Render Pipeline Options" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @@ -205,7 +205,7 @@ class MATERIAL_PT_pipeline(MaterialButtonsPanel, Panel): class MATERIAL_PT_diffuse(MaterialButtonsPanel, Panel): - bl_label = _("Diffuse") + bl_label = "Diffuse" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @classmethod @@ -262,7 +262,7 @@ class MATERIAL_PT_diffuse(MaterialButtonsPanel, Panel): class MATERIAL_PT_specular(MaterialButtonsPanel, Panel): - bl_label = _("Specular") + bl_label = "Specular" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @classmethod @@ -315,7 +315,7 @@ class MATERIAL_PT_specular(MaterialButtonsPanel, Panel): class MATERIAL_PT_shading(MaterialButtonsPanel, Panel): - bl_label = _("Shading") + bl_label = "Shading" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @classmethod @@ -349,7 +349,7 @@ class MATERIAL_PT_shading(MaterialButtonsPanel, Panel): class MATERIAL_PT_transp(MaterialButtonsPanel, Panel): - bl_label = _("Transparency") + bl_label = "Transparency" # bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @@ -415,7 +415,7 @@ class MATERIAL_PT_transp(MaterialButtonsPanel, Panel): class MATERIAL_PT_mirror(MaterialButtonsPanel, Panel): - bl_label = _("Mirror") + bl_label = "Mirror" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @@ -473,7 +473,7 @@ class MATERIAL_PT_mirror(MaterialButtonsPanel, Panel): class MATERIAL_PT_sss(MaterialButtonsPanel, Panel): - bl_label = _("Subsurface Scattering") + bl_label = "Subsurface Scattering" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @@ -525,7 +525,7 @@ class MATERIAL_PT_sss(MaterialButtonsPanel, Panel): class MATERIAL_PT_halo(MaterialButtonsPanel, Panel): - bl_label = _("Halo") + bl_label = "Halo" COMPAT_ENGINES = {'BLENDER_RENDER'} @classmethod @@ -578,7 +578,7 @@ class MATERIAL_PT_halo(MaterialButtonsPanel, Panel): class MATERIAL_PT_flare(MaterialButtonsPanel, Panel): - bl_label = _("Flare") + bl_label = "Flare" COMPAT_ENGINES = {'BLENDER_RENDER'} @classmethod @@ -613,7 +613,7 @@ class MATERIAL_PT_flare(MaterialButtonsPanel, Panel): class MATERIAL_PT_physics(MaterialButtonsPanel, Panel): - bl_label = _("Physics") + bl_label = "Physics" COMPAT_ENGINES = {'BLENDER_GAME'} @classmethod @@ -643,7 +643,7 @@ class MATERIAL_PT_physics(MaterialButtonsPanel, Panel): class MATERIAL_PT_strand(MaterialButtonsPanel, Panel): - bl_label = _("Strand") + bl_label = "Strand" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @@ -690,7 +690,7 @@ class MATERIAL_PT_strand(MaterialButtonsPanel, Panel): class MATERIAL_PT_options(MaterialButtonsPanel, Panel): - bl_label = _("Options") + bl_label = "Options" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @classmethod @@ -739,7 +739,7 @@ class MATERIAL_PT_options(MaterialButtonsPanel, Panel): class MATERIAL_PT_shadow(MaterialButtonsPanel, Panel): - bl_label = _("Shadow") + bl_label = "Shadow" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @@ -783,7 +783,7 @@ class MATERIAL_PT_shadow(MaterialButtonsPanel, Panel): class MATERIAL_PT_transp_game(MaterialButtonsPanel, Panel): - bl_label = _("Transparency") + bl_label = "Transparency" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_GAME'} @@ -826,7 +826,7 @@ class VolumeButtonsPanel(): class MATERIAL_PT_volume_density(VolumeButtonsPanel, Panel): - bl_label = _("Density") + bl_label = "Density" COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): @@ -840,7 +840,7 @@ class MATERIAL_PT_volume_density(VolumeButtonsPanel, Panel): class MATERIAL_PT_volume_shading(VolumeButtonsPanel, Panel): - bl_label = _("Shading") + bl_label = "Shading" COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): @@ -865,7 +865,7 @@ class MATERIAL_PT_volume_shading(VolumeButtonsPanel, Panel): class MATERIAL_PT_volume_lighting(VolumeButtonsPanel, Panel): - bl_label = _("Lighting") + bl_label = "Lighting" COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): @@ -900,7 +900,7 @@ class MATERIAL_PT_volume_lighting(VolumeButtonsPanel, Panel): class MATERIAL_PT_volume_transp(VolumeButtonsPanel, Panel): - bl_label = _("Transparency") + bl_label = "Transparency" COMPAT_ENGINES = {'BLENDER_RENDER'} @classmethod @@ -918,7 +918,7 @@ class MATERIAL_PT_volume_transp(VolumeButtonsPanel, Panel): class MATERIAL_PT_volume_integration(VolumeButtonsPanel, Panel): - bl_label = _("Integration") + bl_label = "Integration" COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): @@ -940,7 +940,7 @@ class MATERIAL_PT_volume_integration(VolumeButtonsPanel, Panel): class MATERIAL_PT_volume_options(VolumeButtonsPanel, Panel): - bl_label = _("Options") + bl_label = "Options" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} bl_options = {'DEFAULT_CLOSED'} diff --git a/release/scripts/startup/bl_ui/properties_object.py b/release/scripts/startup/bl_ui/properties_object.py index 73a218704f7..a099189eed6 100644 --- a/release/scripts/startup/bl_ui/properties_object.py +++ b/release/scripts/startup/bl_ui/properties_object.py @@ -44,7 +44,7 @@ class OBJECT_PT_context_object(ObjectButtonsPanel, Panel): class OBJECT_PT_transform(ObjectButtonsPanel, Panel): - bl_label = _("Transform") + bl_label = "Transform" def draw(self, context): layout = self.layout @@ -70,7 +70,7 @@ class OBJECT_PT_transform(ObjectButtonsPanel, Panel): class OBJECT_PT_delta_transform(ObjectButtonsPanel, Panel): - bl_label = _("Delta Transform") + bl_label = "Delta Transform" bl_options = {'DEFAULT_CLOSED'} def draw(self, context): @@ -96,7 +96,7 @@ class OBJECT_PT_delta_transform(ObjectButtonsPanel, Panel): class OBJECT_PT_transform_locks(ObjectButtonsPanel, Panel): - bl_label = _("Transform Locks") + bl_label = "Transform Locks" bl_options = {'DEFAULT_CLOSED'} def draw(self, context): @@ -122,7 +122,7 @@ class OBJECT_PT_transform_locks(ObjectButtonsPanel, Panel): class OBJECT_PT_relations(ObjectButtonsPanel, Panel): - bl_label = _("Relations") + bl_label = "Relations" def draw(self, context): layout = self.layout @@ -149,7 +149,7 @@ class OBJECT_PT_relations(ObjectButtonsPanel, Panel): class OBJECT_PT_groups(ObjectButtonsPanel, Panel): - bl_label = _("Groups") + bl_label = "Groups" def draw(self, context): layout = self.layout @@ -188,7 +188,7 @@ class OBJECT_PT_groups(ObjectButtonsPanel, Panel): class OBJECT_PT_display(ObjectButtonsPanel, Panel): - bl_label = _("Display") + bl_label = "Display" def draw(self, context): layout = self.layout @@ -222,7 +222,7 @@ class OBJECT_PT_display(ObjectButtonsPanel, Panel): class OBJECT_PT_duplication(ObjectButtonsPanel, Panel): - bl_label = _("Duplication") + bl_label = "Duplication" def draw(self, context): layout = self.layout @@ -260,7 +260,7 @@ class OBJECT_PT_duplication(ObjectButtonsPanel, Panel): # XXX: the following options are all quite buggy, ancient hacks that should be dropped class OBJECT_PT_animation(ObjectButtonsPanel, Panel): - bl_label = _("Animation Hacks") + bl_label = "Animation Hacks" bl_options = {'DEFAULT_CLOSED'} def draw(self, context): diff --git a/release/scripts/startup/bl_ui/properties_object_constraint.py b/release/scripts/startup/bl_ui/properties_object_constraint.py index 51544e63325..e7385d3926b 100644 --- a/release/scripts/startup/bl_ui/properties_object_constraint.py +++ b/release/scripts/startup/bl_ui/properties_object_constraint.py @@ -758,7 +758,7 @@ class ConstraintButtonsPanel(): class OBJECT_PT_constraints(ConstraintButtonsPanel, Panel): - bl_label = _("Object Constraints") + bl_label = "Object Constraints" bl_context = "constraint" @classmethod @@ -782,7 +782,7 @@ class OBJECT_PT_constraints(ConstraintButtonsPanel, Panel): class BONE_PT_constraints(ConstraintButtonsPanel, Panel): - bl_label = _("Bone Constraints") + bl_label = "Bone Constraints" bl_context = "bone_constraint" @classmethod diff --git a/release/scripts/startup/bl_ui/properties_particle.py b/release/scripts/startup/bl_ui/properties_particle.py index 307f362a195..eb301ec8534 100644 --- a/release/scripts/startup/bl_ui/properties_particle.py +++ b/release/scripts/startup/bl_ui/properties_particle.py @@ -179,7 +179,7 @@ class PARTICLE_PT_context_particles(ParticleButtonsPanel, Panel): class PARTICLE_PT_emission(ParticleButtonsPanel, Panel): - bl_label = _("Emission") + bl_label = "Emission" COMPAT_ENGINES = {'BLENDER_RENDER'} @classmethod @@ -248,7 +248,7 @@ class PARTICLE_PT_emission(ParticleButtonsPanel, Panel): class PARTICLE_PT_hair_dynamics(ParticleButtonsPanel, Panel): - bl_label = _("Hair dynamics") + bl_label = "Hair dynamics" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @@ -304,7 +304,7 @@ class PARTICLE_PT_hair_dynamics(ParticleButtonsPanel, Panel): class PARTICLE_PT_cache(ParticleButtonsPanel, Panel): - bl_label = _("Cache") + bl_label = "Cache" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @@ -330,7 +330,7 @@ class PARTICLE_PT_cache(ParticleButtonsPanel, Panel): class PARTICLE_PT_velocity(ParticleButtonsPanel, Panel): - bl_label = _("Velocity") + bl_label = "Velocity" COMPAT_ENGINES = {'BLENDER_RENDER'} @classmethod @@ -380,7 +380,7 @@ class PARTICLE_PT_velocity(ParticleButtonsPanel, Panel): class PARTICLE_PT_rotation(ParticleButtonsPanel, Panel): - bl_label = _("Rotation") + bl_label = "Rotation" COMPAT_ENGINES = {'BLENDER_RENDER'} @classmethod @@ -429,7 +429,7 @@ class PARTICLE_PT_rotation(ParticleButtonsPanel, Panel): class PARTICLE_PT_physics(ParticleButtonsPanel, Panel): - bl_label = _("Physics") + bl_label = "Physics" COMPAT_ENGINES = {'BLENDER_RENDER'} @classmethod @@ -644,7 +644,7 @@ class PARTICLE_PT_physics(ParticleButtonsPanel, Panel): class PARTICLE_PT_boidbrain(ParticleButtonsPanel, Panel): - bl_label = _("Boid Brain") + bl_label = "Boid Brain" COMPAT_ENGINES = {'BLENDER_RENDER'} @classmethod @@ -745,7 +745,7 @@ class PARTICLE_PT_boidbrain(ParticleButtonsPanel, Panel): class PARTICLE_PT_render(ParticleButtonsPanel, Panel): - bl_label = _("Render") + bl_label = "Render" COMPAT_ENGINES = {'BLENDER_RENDER'} @classmethod @@ -930,7 +930,7 @@ class PARTICLE_PT_render(ParticleButtonsPanel, Panel): class PARTICLE_PT_draw(ParticleButtonsPanel, Panel): - bl_label = _("Display") + bl_label = "Display" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @@ -992,7 +992,7 @@ class PARTICLE_PT_draw(ParticleButtonsPanel, Panel): class PARTICLE_PT_children(ParticleButtonsPanel, Panel): - bl_label = _("Children") + bl_label = "Children" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @@ -1092,7 +1092,7 @@ class PARTICLE_PT_children(ParticleButtonsPanel, Panel): class PARTICLE_PT_field_weights(ParticleButtonsPanel, Panel): - bl_label = _("Field Weights") + bl_label = "Field Weights" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @@ -1113,7 +1113,7 @@ class PARTICLE_PT_field_weights(ParticleButtonsPanel, Panel): class PARTICLE_PT_force_fields(ParticleButtonsPanel, Panel): - bl_label = _("Force Field Settings") + bl_label = "Force Field Settings" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @@ -1147,7 +1147,7 @@ class PARTICLE_PT_force_fields(ParticleButtonsPanel, Panel): class PARTICLE_PT_vertexgroups(ParticleButtonsPanel, Panel): - bl_label = _("Vertexgroups") + bl_label = "Vertexgroups" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} diff --git a/release/scripts/startup/bl_ui/properties_physics_cloth.py b/release/scripts/startup/bl_ui/properties_physics_cloth.py index 5e42a465c2a..de74d1473c8 100644 --- a/release/scripts/startup/bl_ui/properties_physics_cloth.py +++ b/release/scripts/startup/bl_ui/properties_physics_cloth.py @@ -35,7 +35,7 @@ class CLOTH_MT_presets(Menu): ''' Creates the menu items by scanning scripts/templates ''' - bl_label = _("Cloth Presets") + bl_label = "Cloth Presets" preset_subdir = "cloth" preset_operator = "script.execute_preset" draw = Menu.draw_preset @@ -54,7 +54,7 @@ class PhysicButtonsPanel(): class PHYSICS_PT_cloth(PhysicButtonsPanel, Panel): - bl_label = _("Cloth") + bl_label = "Cloth" def draw(self, context): layout = self.layout @@ -119,7 +119,7 @@ class PHYSICS_PT_cloth(PhysicButtonsPanel, Panel): class PHYSICS_PT_cloth_cache(PhysicButtonsPanel, Panel): - bl_label = _("Cloth Cache") + bl_label = "Cloth Cache" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -132,7 +132,7 @@ class PHYSICS_PT_cloth_cache(PhysicButtonsPanel, Panel): class PHYSICS_PT_cloth_collision(PhysicButtonsPanel, Panel): - bl_label = _("Cloth Collision") + bl_label = "Cloth Collision" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -173,7 +173,7 @@ class PHYSICS_PT_cloth_collision(PhysicButtonsPanel, Panel): class PHYSICS_PT_cloth_stiffness(PhysicButtonsPanel, Panel): - bl_label = _("Cloth Stiffness Scaling") + bl_label = "Cloth Stiffness Scaling" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -209,7 +209,7 @@ class PHYSICS_PT_cloth_stiffness(PhysicButtonsPanel, Panel): class PHYSICS_PT_cloth_field_weights(PhysicButtonsPanel, Panel): - bl_label = _("Cloth Field Weights") + bl_label = "Cloth Field Weights" bl_options = {'DEFAULT_CLOSED'} @classmethod diff --git a/release/scripts/startup/bl_ui/properties_physics_field.py b/release/scripts/startup/bl_ui/properties_physics_field.py index 25c92c52311..937df5c0ad9 100644 --- a/release/scripts/startup/bl_ui/properties_physics_field.py +++ b/release/scripts/startup/bl_ui/properties_physics_field.py @@ -39,7 +39,7 @@ class PhysicButtonsPanel(): class PHYSICS_PT_field(PhysicButtonsPanel, Panel): - bl_label = _("Force Fields") + bl_label = "Force Fields" @classmethod def poll(cls, context): @@ -166,7 +166,7 @@ class PHYSICS_PT_field(PhysicButtonsPanel, Panel): class PHYSICS_PT_collision(PhysicButtonsPanel, Panel): - bl_label = _("Collision") + bl_label = "Collision" #bl_options = {'DEFAULT_CLOSED'} @classmethod diff --git a/release/scripts/startup/bl_ui/properties_physics_fluid.py b/release/scripts/startup/bl_ui/properties_physics_fluid.py index 775ad116846..c89d7ec9755 100644 --- a/release/scripts/startup/bl_ui/properties_physics_fluid.py +++ b/release/scripts/startup/bl_ui/properties_physics_fluid.py @@ -34,7 +34,7 @@ class PhysicButtonsPanel(): class PHYSICS_PT_fluid(PhysicButtonsPanel, Panel): - bl_label = _("Fluid") + bl_label = "Fluid" def draw(self, context): layout = self.layout @@ -188,7 +188,7 @@ class PHYSICS_PT_fluid(PhysicButtonsPanel, Panel): class PHYSICS_PT_domain_gravity(PhysicButtonsPanel, Panel): - bl_label = _("Domain World") + bl_label = "Domain World" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -238,7 +238,7 @@ class PHYSICS_PT_domain_gravity(PhysicButtonsPanel, Panel): class PHYSICS_PT_domain_boundary(PhysicButtonsPanel, Panel): - bl_label = _("Domain Boundary") + bl_label = "Domain Boundary" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -267,7 +267,7 @@ class PHYSICS_PT_domain_boundary(PhysicButtonsPanel, Panel): class PHYSICS_PT_domain_particles(PhysicButtonsPanel, Panel): - bl_label = _("Domain Particles") + bl_label = "Domain Particles" bl_options = {'DEFAULT_CLOSED'} @classmethod diff --git a/release/scripts/startup/bl_ui/properties_physics_smoke.py b/release/scripts/startup/bl_ui/properties_physics_smoke.py index 5dfe543c8a8..61c477b6d49 100644 --- a/release/scripts/startup/bl_ui/properties_physics_smoke.py +++ b/release/scripts/startup/bl_ui/properties_physics_smoke.py @@ -40,7 +40,7 @@ class PhysicButtonsPanel(): class PHYSICS_PT_smoke(PhysicButtonsPanel, Panel): - bl_label = _("Smoke") + bl_label = "Smoke" def draw(self, context): layout = self.layout @@ -105,7 +105,7 @@ class PHYSICS_PT_smoke(PhysicButtonsPanel, Panel): class PHYSICS_PT_smoke_groups(PhysicButtonsPanel, Panel): - bl_label = _("Smoke Groups") + bl_label = "Smoke Groups" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -133,7 +133,7 @@ class PHYSICS_PT_smoke_groups(PhysicButtonsPanel, Panel): class PHYSICS_PT_smoke_highres(PhysicButtonsPanel, Panel): - bl_label = _("Smoke High Resolution") + bl_label = "Smoke High Resolution" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -170,7 +170,7 @@ class PHYSICS_PT_smoke_highres(PhysicButtonsPanel, Panel): class PHYSICS_PT_smoke_cache(PhysicButtonsPanel, Panel): - bl_label = _("Smoke Cache") + bl_label = "Smoke Cache" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -191,7 +191,7 @@ class PHYSICS_PT_smoke_cache(PhysicButtonsPanel, Panel): class PHYSICS_PT_smoke_field_weights(PhysicButtonsPanel, Panel): - bl_label = _("Smoke Field Weights") + bl_label = "Smoke Field Weights" bl_options = {'DEFAULT_CLOSED'} @classmethod diff --git a/release/scripts/startup/bl_ui/properties_physics_softbody.py b/release/scripts/startup/bl_ui/properties_physics_softbody.py index 44778ffee5f..5449e54c6e6 100644 --- a/release/scripts/startup/bl_ui/properties_physics_softbody.py +++ b/release/scripts/startup/bl_ui/properties_physics_softbody.py @@ -46,7 +46,7 @@ class PhysicButtonsPanel(): class PHYSICS_PT_softbody(PhysicButtonsPanel, Panel): - bl_label = _("Soft Body") + bl_label = "Soft Body" def draw(self, context): layout = self.layout @@ -73,7 +73,7 @@ class PHYSICS_PT_softbody(PhysicButtonsPanel, Panel): class PHYSICS_PT_softbody_cache(PhysicButtonsPanel, Panel): - bl_label = _("Soft Body Cache") + bl_label = "Soft Body Cache" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -86,7 +86,7 @@ class PHYSICS_PT_softbody_cache(PhysicButtonsPanel, Panel): class PHYSICS_PT_softbody_goal(PhysicButtonsPanel, Panel): - bl_label = _("Soft Body Goal") + bl_label = "Soft Body Goal" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -129,7 +129,7 @@ class PHYSICS_PT_softbody_goal(PhysicButtonsPanel, Panel): class PHYSICS_PT_softbody_edge(PhysicButtonsPanel, Panel): - bl_label = _("Soft Body Edges") + bl_label = "Soft Body Edges" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -182,7 +182,7 @@ class PHYSICS_PT_softbody_edge(PhysicButtonsPanel, Panel): class PHYSICS_PT_softbody_collision(PhysicButtonsPanel, Panel): - bl_label = _("Soft Body Self Collision") + bl_label = "Soft Body Self Collision" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -214,7 +214,7 @@ class PHYSICS_PT_softbody_collision(PhysicButtonsPanel, Panel): class PHYSICS_PT_softbody_solver(PhysicButtonsPanel, Panel): - bl_label = _("Soft Body Solver") + bl_label = "Soft Body Solver" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -250,7 +250,7 @@ class PHYSICS_PT_softbody_solver(PhysicButtonsPanel, Panel): class PHYSICS_PT_softbody_field_weights(PhysicButtonsPanel, Panel): - bl_label = _("Soft Body Field Weights") + bl_label = "Soft Body Field Weights" bl_options = {'DEFAULT_CLOSED'} @classmethod diff --git a/release/scripts/startup/bl_ui/properties_render.py b/release/scripts/startup/bl_ui/properties_render.py index 981d539a4b5..1e9c15eedae 100644 --- a/release/scripts/startup/bl_ui/properties_render.py +++ b/release/scripts/startup/bl_ui/properties_render.py @@ -23,21 +23,21 @@ from blf import gettext as _ class RENDER_MT_presets(Menu): - bl_label = _("Render Presets") + bl_label = "Render Presets" preset_subdir = "render" preset_operator = "script.execute_preset" draw = Menu.draw_preset class RENDER_MT_ffmpeg_presets(Menu): - bl_label = _("FFMPEG Presets") + bl_label = "FFMPEG Presets" preset_subdir = "ffmpeg" preset_operator = "script.python_file_run" draw = Menu.draw_preset class RENDER_MT_framerate_presets(Menu): - bl_label = _("Frame Rate Presets") + bl_label = "Frame Rate Presets" preset_subdir = "framerate" preset_operator = "script.execute_preset" draw = Menu.draw_preset @@ -56,7 +56,7 @@ class RenderButtonsPanel(): class RENDER_PT_render(RenderButtonsPanel, Panel): - bl_label = _("Render") + bl_label = "Render" COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): @@ -72,7 +72,7 @@ class RENDER_PT_render(RenderButtonsPanel, Panel): class RENDER_PT_layers(RenderButtonsPanel, Panel): - bl_label = _("Layers") + bl_label = "Layers" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @@ -176,7 +176,7 @@ class RENDER_PT_layers(RenderButtonsPanel, Panel): class RENDER_PT_dimensions(RenderButtonsPanel, Panel): - bl_label = _("Dimensions") + bl_label = "Dimensions" COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): @@ -212,9 +212,9 @@ class RENDER_PT_dimensions(RenderButtonsPanel, Panel): col = split.column() sub = col.column(align=True) sub.label(text=_("Frame Range:")) - sub.prop(scene, "frame_start", text=_("Start")) - sub.prop(scene, "frame_end", text=_("End")) - sub.prop(scene, "frame_step", text=_("Step")) + sub.prop(scene, "frame_start") + sub.prop(scene, "frame_end") + sub.prop(scene, "frame_step") sub.label(text=_("Frame Rate:")) if rd.fps_base == 1: @@ -243,7 +243,7 @@ class RENDER_PT_dimensions(RenderButtonsPanel, Panel): class RENDER_PT_antialiasing(RenderButtonsPanel, Panel): - bl_label = _("Anti-Aliasing") + bl_label = "Anti-Aliasing" COMPAT_ENGINES = {'BLENDER_RENDER'} def draw_header(self, context): @@ -271,7 +271,7 @@ class RENDER_PT_antialiasing(RenderButtonsPanel, Panel): class RENDER_PT_motion_blur(RenderButtonsPanel, Panel): - bl_label = _("Sampled Motion Blur") + bl_label = "Sampled Motion Blur" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @@ -297,7 +297,7 @@ class RENDER_PT_motion_blur(RenderButtonsPanel, Panel): class RENDER_PT_shading(RenderButtonsPanel, Panel): - bl_label = _("Shading") + bl_label = "Shading" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @@ -321,7 +321,7 @@ class RENDER_PT_shading(RenderButtonsPanel, Panel): class RENDER_PT_performance(RenderButtonsPanel, Panel): - bl_label = _("Performance") + bl_label = "Performance" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @@ -364,7 +364,7 @@ class RENDER_PT_performance(RenderButtonsPanel, Panel): class RENDER_PT_post_processing(RenderButtonsPanel, Panel): - bl_label = _("Post Processing") + bl_label = "Post Processing" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @@ -401,7 +401,7 @@ class RENDER_PT_post_processing(RenderButtonsPanel, Panel): class RENDER_PT_stamp(RenderButtonsPanel, Panel): - bl_label = _("Stamp") + bl_label = "Stamp" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @@ -446,7 +446,7 @@ class RENDER_PT_stamp(RenderButtonsPanel, Panel): class RENDER_PT_output(RenderButtonsPanel, Panel): - bl_label = _("Output") + bl_label = "Output" COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): @@ -546,7 +546,7 @@ class RENDER_PT_output(RenderButtonsPanel, Panel): class RENDER_PT_encoding(RenderButtonsPanel, Panel): - bl_label = _("Encoding") + bl_label = "Encoding" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @@ -599,7 +599,7 @@ class RENDER_PT_encoding(RenderButtonsPanel, Panel): class RENDER_PT_bake(RenderButtonsPanel, Panel): - bl_label = _("Bake") + bl_label = "Bake" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} diff --git a/release/scripts/startup/bl_ui/properties_scene.py b/release/scripts/startup/bl_ui/properties_scene.py index 11e20a8cd2a..9735ff5c01b 100644 --- a/release/scripts/startup/bl_ui/properties_scene.py +++ b/release/scripts/startup/bl_ui/properties_scene.py @@ -33,7 +33,7 @@ class SceneButtonsPanel(): class SCENE_PT_scene(SceneButtonsPanel, Panel): - bl_label = _("Scene") + bl_label = "Scene" COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): @@ -45,7 +45,7 @@ class SCENE_PT_scene(SceneButtonsPanel, Panel): class SCENE_PT_audio(SceneButtonsPanel, Panel): - bl_label = _("Audio") + bl_label = "Audio" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} def draw(self, context): @@ -73,7 +73,7 @@ class SCENE_PT_audio(SceneButtonsPanel, Panel): class SCENE_PT_unit(SceneButtonsPanel, Panel): - bl_label = _("Units") + bl_label = "Units" COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): @@ -91,7 +91,7 @@ class SCENE_PT_unit(SceneButtonsPanel, Panel): class SCENE_PT_keying_sets(SceneButtonsPanel, Panel): - bl_label = _("Keying Sets") + bl_label = "Keying Sets" def draw(self, context): layout = self.layout @@ -124,7 +124,7 @@ class SCENE_PT_keying_sets(SceneButtonsPanel, Panel): class SCENE_PT_keying_set_paths(SceneButtonsPanel, Panel): - bl_label = _("Active Keying Set") + bl_label = "Active Keying Set" @classmethod def poll(cls, context): @@ -174,7 +174,7 @@ class SCENE_PT_keying_set_paths(SceneButtonsPanel, Panel): class SCENE_PT_physics(SceneButtonsPanel, Panel): - bl_label = _("Gravity") + bl_label = "Gravity" COMPAT_ENGINES = {'BLENDER_RENDER'} def draw_header(self, context): @@ -191,7 +191,7 @@ class SCENE_PT_physics(SceneButtonsPanel, Panel): class SCENE_PT_simplify(SceneButtonsPanel, Panel): - bl_label = _("Simplify") + bl_label = "Simplify" COMPAT_ENGINES = {'BLENDER_RENDER'} def draw_header(self, context): @@ -230,12 +230,12 @@ class SCENE_PT_custom_props(SceneButtonsPanel, PropertyPanel, Panel): class ANIM_OT_keying_set_export(Operator): "Export Keying Set to a python script." bl_idname = "anim.keying_set_export" - bl_label = _("Export Keying Set...") + bl_label = "Export Keying Set..." - filepath = bpy.props.StringProperty(name=_("File Path"), description=_("Filepath to write file to.")) - filter_folder = bpy.props.BoolProperty(name=_("Filter folders"), description="", default=True, options={'HIDDEN'}) - filter_text = bpy.props.BoolProperty(name=_("Filter text"), description="", default=True, options={'HIDDEN'}) - filter_python = bpy.props.BoolProperty(name=_("Filter python"), description="", default=True, options={'HIDDEN'}) + filepath = bpy.props.StringProperty(name="File Path", description="Filepath to write file to.") + filter_folder = bpy.props.BoolProperty(name="Filter folders", description="", default=True, options={'HIDDEN'}) + filter_text = bpy.props.BoolProperty(name="Filter text", description="", default=True, options={'HIDDEN'}) + filter_python = bpy.props.BoolProperty(name="Filter python", description="", default=True, options={'HIDDEN'}) def execute(self, context): if not self.filepath: diff --git a/release/scripts/startup/bl_ui/properties_texture.py b/release/scripts/startup/bl_ui/properties_texture.py index c80f3fa76d3..c5f8708040f 100644 --- a/release/scripts/startup/bl_ui/properties_texture.py +++ b/release/scripts/startup/bl_ui/properties_texture.py @@ -24,7 +24,7 @@ from blf import gettext as _ class TEXTURE_MT_specials(Menu): - bl_label = _("Texture Specials") + bl_label = "Texture Specials" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} def draw(self, context): @@ -35,7 +35,7 @@ class TEXTURE_MT_specials(Menu): class TEXTURE_MT_envmap_specials(Menu): - bl_label = _("Environment Map Specials") + bl_label = "Environment Map Specials" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} def draw(self, context): @@ -153,7 +153,7 @@ class TEXTURE_PT_context_texture(TextureButtonsPanel, Panel): class TEXTURE_PT_preview(TextureButtonsPanel, Panel): - bl_label = _("Preview") + bl_label = "Preview" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} def draw(self, context): @@ -170,7 +170,7 @@ class TEXTURE_PT_preview(TextureButtonsPanel, Panel): class TEXTURE_PT_colors(TextureButtonsPanel, Panel): - bl_label = _("Colors") + bl_label = "Colors" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @@ -226,7 +226,7 @@ class TextureTypePanel(TextureButtonsPanel): class TEXTURE_PT_clouds(TextureTypePanel, Panel): - bl_label = _("Clouds") + bl_label = "Clouds" tex_type = 'CLOUDS' COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @@ -250,7 +250,7 @@ class TEXTURE_PT_clouds(TextureTypePanel, Panel): class TEXTURE_PT_wood(TextureTypePanel, Panel): - bl_label = _("Wood") + bl_label = "Wood" tex_type = 'WOOD' COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @@ -279,7 +279,7 @@ class TEXTURE_PT_wood(TextureTypePanel, Panel): class TEXTURE_PT_marble(TextureTypePanel, Panel): - bl_label = _("Marble") + bl_label = "Marble" tex_type = 'MARBLE' COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @@ -306,7 +306,7 @@ class TEXTURE_PT_marble(TextureTypePanel, Panel): class TEXTURE_PT_magic(TextureTypePanel, Panel): - bl_label = _("Magic") + bl_label = "Magic" tex_type = 'MAGIC' COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @@ -321,7 +321,7 @@ class TEXTURE_PT_magic(TextureTypePanel, Panel): class TEXTURE_PT_blend(TextureTypePanel, Panel): - bl_label = _("Blend") + bl_label = "Blend" tex_type = 'BLEND' COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @@ -339,7 +339,7 @@ class TEXTURE_PT_blend(TextureTypePanel, Panel): class TEXTURE_PT_stucci(TextureTypePanel, Panel): - bl_label = _("Stucci") + bl_label = "Stucci" tex_type = 'STUCCI' COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @@ -359,7 +359,7 @@ class TEXTURE_PT_stucci(TextureTypePanel, Panel): class TEXTURE_PT_image(TextureTypePanel, Panel): - bl_label = _("Image") + bl_label = "Image" tex_type = 'IMAGE' COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @@ -385,7 +385,7 @@ def texture_filter_common(tex, layout): class TEXTURE_PT_image_sampling(TextureTypePanel, Panel): - bl_label = _("Image Sampling") + bl_label = "Image Sampling" bl_options = {'DEFAULT_CLOSED'} tex_type = 'IMAGE' COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @@ -430,7 +430,7 @@ class TEXTURE_PT_image_sampling(TextureTypePanel, Panel): class TEXTURE_PT_image_mapping(TextureTypePanel, Panel): - bl_label = _("Image Mapping") + bl_label = "Image Mapping" bl_options = {'DEFAULT_CLOSED'} tex_type = 'IMAGE' COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @@ -486,7 +486,7 @@ class TEXTURE_PT_image_mapping(TextureTypePanel, Panel): class TEXTURE_PT_envmap(TextureTypePanel, Panel): - bl_label = _("Environment Map") + bl_label = "Environment Map" tex_type = 'ENVIRONMENT_MAP' COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @@ -524,7 +524,7 @@ class TEXTURE_PT_envmap(TextureTypePanel, Panel): class TEXTURE_PT_envmap_sampling(TextureTypePanel, Panel): - bl_label = _("Environment Map Sampling") + bl_label = "Environment Map Sampling" bl_options = {'DEFAULT_CLOSED'} tex_type = 'ENVIRONMENT_MAP' COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @@ -538,7 +538,7 @@ class TEXTURE_PT_envmap_sampling(TextureTypePanel, Panel): class TEXTURE_PT_musgrave(TextureTypePanel, Panel): - bl_label = _("Musgrave") + bl_label = "Musgrave" tex_type = 'MUSGRAVE' COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @@ -575,7 +575,7 @@ class TEXTURE_PT_musgrave(TextureTypePanel, Panel): class TEXTURE_PT_voronoi(TextureTypePanel, Panel): - bl_label = _("Voronoi") + bl_label = "Voronoi" tex_type = 'VORONOI' COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @@ -611,7 +611,7 @@ class TEXTURE_PT_voronoi(TextureTypePanel, Panel): class TEXTURE_PT_distortednoise(TextureTypePanel, Panel): - bl_label = _("Distorted Noise") + bl_label = "Distorted Noise" tex_type = 'DISTORTED_NOISE' COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @@ -633,7 +633,7 @@ class TEXTURE_PT_distortednoise(TextureTypePanel, Panel): class TEXTURE_PT_voxeldata(TextureButtonsPanel, Panel): - bl_label = _("Voxel Data") + bl_label = "Voxel Data" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @classmethod @@ -673,7 +673,7 @@ class TEXTURE_PT_voxeldata(TextureButtonsPanel, Panel): class TEXTURE_PT_pointdensity(TextureButtonsPanel, Panel): - bl_label = _("Point Density") + bl_label = "Point Density" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @classmethod @@ -739,7 +739,7 @@ class TEXTURE_PT_pointdensity(TextureButtonsPanel, Panel): class TEXTURE_PT_pointdensity_turbulence(TextureButtonsPanel, Panel): - bl_label = _("Turbulence") + bl_label = "Turbulence" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @classmethod @@ -776,7 +776,7 @@ class TEXTURE_PT_pointdensity_turbulence(TextureButtonsPanel, Panel): class TEXTURE_PT_mapping(TextureSlotPanel, Panel): - bl_label = _("Mapping") + bl_label = "Mapping" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @classmethod @@ -864,7 +864,7 @@ class TEXTURE_PT_mapping(TextureSlotPanel, Panel): class TEXTURE_PT_influence(TextureSlotPanel, Panel): - bl_label = _("Influence") + bl_label = "Influence" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} @classmethod diff --git a/release/scripts/startup/bl_ui/properties_world.py b/release/scripts/startup/bl_ui/properties_world.py index 07df2ff53ec..916667ea400 100644 --- a/release/scripts/startup/bl_ui/properties_world.py +++ b/release/scripts/startup/bl_ui/properties_world.py @@ -64,7 +64,7 @@ class WORLD_PT_context_world(WorldButtonsPanel, Panel): class WORLD_PT_preview(WorldButtonsPanel, Panel): - bl_label = _("Preview") + bl_label = "Preview" COMPAT_ENGINES = {'BLENDER_RENDER'} @classmethod @@ -77,7 +77,7 @@ class WORLD_PT_preview(WorldButtonsPanel, Panel): class WORLD_PT_world(WorldButtonsPanel, Panel): - bl_label = _("World") + bl_label = "World" COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): @@ -102,7 +102,7 @@ class WORLD_PT_world(WorldButtonsPanel, Panel): class WORLD_PT_ambient_occlusion(WorldButtonsPanel, Panel): - bl_label = _("Ambient Occlusion") + bl_label = "Ambient Occlusion" COMPAT_ENGINES = {'BLENDER_RENDER'} def draw_header(self, context): @@ -140,7 +140,7 @@ class WORLD_PT_environment_lighting(WorldButtonsPanel, Panel): class WORLD_PT_indirect_lighting(WorldButtonsPanel, Panel): - bl_label = _("Indirect Lighting") + bl_label = "Indirect Lighting" COMPAT_ENGINES = {'BLENDER_RENDER'} def draw_header(self, context): @@ -162,7 +162,7 @@ class WORLD_PT_indirect_lighting(WorldButtonsPanel, Panel): class WORLD_PT_gather(WorldButtonsPanel, Panel): - bl_label = _("Gather") + bl_label = "Gather" COMPAT_ENGINES = {'BLENDER_RENDER'} def draw(self, context): @@ -210,7 +210,7 @@ class WORLD_PT_gather(WorldButtonsPanel, Panel): class WORLD_PT_mist(WorldButtonsPanel, Panel): - bl_label = _("Mist") + bl_label = "Mist" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} @@ -239,7 +239,7 @@ class WORLD_PT_mist(WorldButtonsPanel, Panel): class WORLD_PT_stars(WorldButtonsPanel, Panel): - bl_label = _("Stars") + bl_label = "Stars" bl_options = {'DEFAULT_CLOSED'} COMPAT_ENGINES = {'BLENDER_RENDER'} diff --git a/release/scripts/startup/bl_ui/space_console.py b/release/scripts/startup/bl_ui/space_console.py index fae5f1d313d..bb0cf6eda2c 100644 --- a/release/scripts/startup/bl_ui/space_console.py +++ b/release/scripts/startup/bl_ui/space_console.py @@ -38,7 +38,7 @@ class CONSOLE_HT_header(Header): class CONSOLE_MT_console(Menu): - bl_label = _("Console") + bl_label = "Console" def draw(self, context): layout = self.layout @@ -55,7 +55,7 @@ class CONSOLE_MT_console(Menu): class CONSOLE_MT_language(Menu): - bl_label = _("Languages...") + bl_label = "Languages..." def draw(self, context): import sys @@ -84,7 +84,7 @@ def add_scrollback(text, text_type): class ConsoleExec(Operator): '''Execute the current console line as a python expression''' bl_idname = "console.execute" - bl_label = _("Console Execute") + bl_label = "Console Execute" def execute(self, context): sc = context.space_data @@ -102,7 +102,7 @@ class ConsoleExec(Operator): class ConsoleAutocomplete(Operator): '''Evaluate the namespace up until the cursor and give a list of options or complete the name if there is only one''' bl_idname = "console.autocomplete" - bl_label = _("Console Autocomplete") + bl_label = "Console Autocomplete" def execute(self, context): sc = context.space_data @@ -119,7 +119,7 @@ class ConsoleAutocomplete(Operator): class ConsoleBanner(Operator): '''Print a message whem the terminal initializes''' bl_idname = "console.banner" - bl_label = _("Console Banner") + bl_label = "Console Banner" def execute(self, context): sc = context.space_data @@ -141,10 +141,10 @@ class ConsoleBanner(Operator): class ConsoleLanguage(Operator): '''Set the current language for this console''' bl_idname = "console.language" - bl_label = _("Console Language") + bl_label = "Console Language" language = StringProperty( - name=_("Language"), + name="Language", maxlen=32, ) diff --git a/release/scripts/startup/bl_ui/space_dopesheet.py b/release/scripts/startup/bl_ui/space_dopesheet.py index 06905d1505a..580a4e7f1b6 100644 --- a/release/scripts/startup/bl_ui/space_dopesheet.py +++ b/release/scripts/startup/bl_ui/space_dopesheet.py @@ -140,7 +140,7 @@ class DOPESHEET_HT_header(Header): class DOPESHEET_MT_view(Menu): - bl_label = _("View") + bl_label = "View" def draw(self, context): layout = self.layout @@ -174,7 +174,7 @@ class DOPESHEET_MT_view(Menu): class DOPESHEET_MT_select(Menu): - bl_label = _("Select") + bl_label = "Select" def draw(self, context): layout = self.layout @@ -209,7 +209,7 @@ class DOPESHEET_MT_select(Menu): class DOPESHEET_MT_marker(Menu): - bl_label = _("Marker") + bl_label = "Marker" def draw(self, context): layout = self.layout @@ -239,7 +239,7 @@ class DOPESHEET_MT_marker(Menu): # Keyframe Editing class DOPESHEET_MT_channel(Menu): - bl_label = _("Channel") + bl_label = "Channel" def draw(self, context): layout = self.layout @@ -269,7 +269,7 @@ class DOPESHEET_MT_channel(Menu): class DOPESHEET_MT_key(Menu): - bl_label = _("Key") + bl_label = "Key" def draw(self, context): layout = self.layout @@ -301,7 +301,7 @@ class DOPESHEET_MT_key(Menu): class DOPESHEET_MT_key_transform(Menu): - bl_label = _("Transform") + bl_label = "Transform" def draw(self, context): layout = self.layout @@ -316,7 +316,7 @@ class DOPESHEET_MT_key_transform(Menu): # Grease Pencil Editing class DOPESHEET_MT_gpencil_channel(Menu): - bl_label = _("Channel") + bl_label = "Channel" def draw(self, context): layout = self.layout @@ -343,7 +343,7 @@ class DOPESHEET_MT_gpencil_channel(Menu): class DOPESHEET_MT_gpencil_frame(Menu): - bl_label = _("Frame") + bl_label = "Frame" def draw(self, context): layout = self.layout diff --git a/release/scripts/startup/bl_ui/space_graph.py b/release/scripts/startup/bl_ui/space_graph.py index 7048d5febf8..fd50d60bd45 100644 --- a/release/scripts/startup/bl_ui/space_graph.py +++ b/release/scripts/startup/bl_ui/space_graph.py @@ -62,7 +62,7 @@ class GRAPH_HT_header(Header): class GRAPH_MT_view(Menu): - bl_label = _("View") + bl_label = "View" def draw(self, context): layout = self.layout @@ -106,7 +106,7 @@ class GRAPH_MT_view(Menu): class GRAPH_MT_select(Menu): - bl_label = _("Select") + bl_label = "Select" def draw(self, context): layout = self.layout @@ -140,7 +140,7 @@ class GRAPH_MT_select(Menu): class GRAPH_MT_marker(Menu): - bl_label = _("Marker") + bl_label = "Marker" def draw(self, context): layout = self.layout @@ -160,7 +160,7 @@ class GRAPH_MT_marker(Menu): class GRAPH_MT_channel(Menu): - bl_label = _("Channel") + bl_label = "Channel" def draw(self, context): layout = self.layout @@ -191,7 +191,7 @@ class GRAPH_MT_channel(Menu): class GRAPH_MT_key(Menu): - bl_label = _("Key") + bl_label = "Key" def draw(self, context): layout = self.layout @@ -229,7 +229,7 @@ class GRAPH_MT_key(Menu): class GRAPH_MT_key_transform(Menu): - bl_label = _("Transform") + bl_label = "Transform" def draw(self, context): layout = self.layout diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py index 0f23802a401..f5be25d14f6 100644 --- a/release/scripts/startup/bl_ui/space_image.py +++ b/release/scripts/startup/bl_ui/space_image.py @@ -34,7 +34,7 @@ class BrushButtonsPanel(): class IMAGE_MT_view(Menu): - bl_label = _("View") + bl_label = "View" def draw(self, context): layout = self.layout @@ -82,7 +82,7 @@ class IMAGE_MT_view(Menu): class IMAGE_MT_select(Menu): - bl_label = _("Select") + bl_label = "Select" def draw(self, context): layout = self.layout @@ -103,7 +103,7 @@ class IMAGE_MT_select(Menu): class IMAGE_MT_image(Menu): - bl_label = _("Image") + bl_label = "Image" def draw(self, context): layout = self.layout @@ -154,7 +154,7 @@ class IMAGE_MT_image(Menu): class IMAGE_MT_image_invert(Menu): - bl_label = _("Invert") + bl_label = "Invert" def draw(self, context): layout = self.layout @@ -180,7 +180,7 @@ class IMAGE_MT_image_invert(Menu): class IMAGE_MT_uvs_showhide(Menu): - bl_label = _("Show/Hide Faces") + bl_label = "Show/Hide Faces" def draw(self, context): layout = self.layout @@ -191,7 +191,7 @@ class IMAGE_MT_uvs_showhide(Menu): class IMAGE_MT_uvs_transform(Menu): - bl_label = _("Transform") + bl_label = "Transform" def draw(self, context): layout = self.layout @@ -206,7 +206,7 @@ class IMAGE_MT_uvs_transform(Menu): class IMAGE_MT_uvs_snap(Menu): - bl_label = _("Snap") + bl_label = "Snap" def draw(self, context): layout = self.layout @@ -223,7 +223,7 @@ class IMAGE_MT_uvs_snap(Menu): class IMAGE_MT_uvs_mirror(Menu): - bl_label = _("Mirror") + bl_label = "Mirror" def draw(self, context): layout = self.layout @@ -234,7 +234,7 @@ class IMAGE_MT_uvs_mirror(Menu): class IMAGE_MT_uvs_weldalign(Menu): - bl_label = _("Weld/Align") + bl_label = "Weld/Align" def draw(self, context): layout = self.layout @@ -289,7 +289,7 @@ class IMAGE_MT_uvs(Menu): class IMAGE_MT_uvs_select_mode(Menu): - bl_label = _("UV Select Mode") + bl_label = "UV Select Mode" def draw(self, context): layout = self.layout @@ -417,7 +417,7 @@ class IMAGE_HT_header(Header): class IMAGE_PT_image_properties(Panel): bl_space_type = 'IMAGE_EDITOR' bl_region_type = 'UI' - bl_label = _("Image") + bl_label = "Image" @classmethod def poll(cls, context): @@ -436,7 +436,7 @@ class IMAGE_PT_image_properties(Panel): class IMAGE_PT_game_properties(Panel): bl_space_type = 'IMAGE_EDITOR' bl_region_type = 'UI' - bl_label = _("Game Properties") + bl_label = "Game Properties" @classmethod def poll(cls, context): @@ -478,7 +478,7 @@ class IMAGE_PT_game_properties(Panel): class IMAGE_PT_view_histogram(Panel): bl_space_type = 'IMAGE_EDITOR' bl_region_type = 'PREVIEW' - bl_label = _("Histogram") + bl_label = "Histogram" @classmethod def poll(cls, context): @@ -497,7 +497,7 @@ class IMAGE_PT_view_histogram(Panel): class IMAGE_PT_view_waveform(Panel): bl_space_type = 'IMAGE_EDITOR' bl_region_type = 'PREVIEW' - bl_label = _("Waveform") + bl_label = "Waveform" @classmethod def poll(cls, context): @@ -518,7 +518,7 @@ class IMAGE_PT_view_waveform(Panel): class IMAGE_PT_view_vectorscope(Panel): bl_space_type = 'IMAGE_EDITOR' bl_region_type = 'PREVIEW' - bl_label = _("Vectorscope") + bl_label = "Vectorscope" @classmethod def poll(cls, context): @@ -536,7 +536,7 @@ class IMAGE_PT_view_vectorscope(Panel): class IMAGE_PT_sample_line(Panel): bl_space_type = 'IMAGE_EDITOR' bl_region_type = 'PREVIEW' - bl_label = _("Sample Line") + bl_label = "Sample Line" @classmethod def poll(cls, context): @@ -556,7 +556,7 @@ class IMAGE_PT_sample_line(Panel): class IMAGE_PT_scope_sample(Panel): bl_space_type = 'IMAGE_EDITOR' bl_region_type = 'PREVIEW' - bl_label = _("Scope Samples") + bl_label = "Scope Samples" @classmethod def poll(cls, context): @@ -578,7 +578,7 @@ class IMAGE_PT_scope_sample(Panel): class IMAGE_PT_view_properties(Panel): bl_space_type = 'IMAGE_EDITOR' bl_region_type = 'UI' - bl_label = _("Display") + bl_label = "Display" @classmethod def poll(cls, context): @@ -637,7 +637,7 @@ class IMAGE_PT_view_properties(Panel): class IMAGE_PT_paint(Panel): bl_space_type = 'IMAGE_EDITOR' bl_region_type = 'UI' - bl_label = _("Paint") + bl_label = "Paint" @classmethod def poll(cls, context): @@ -679,7 +679,7 @@ class IMAGE_PT_paint(Panel): class IMAGE_PT_tools_brush_texture(BrushButtonsPanel, Panel): - bl_label = _("Texture") + bl_label = "Texture" bl_options = {'DEFAULT_CLOSED'} def draw(self, context): @@ -694,7 +694,7 @@ class IMAGE_PT_tools_brush_texture(BrushButtonsPanel, Panel): class IMAGE_PT_tools_brush_tool(BrushButtonsPanel, Panel): - bl_label = _("Tool") + bl_label = "Tool" bl_options = {'DEFAULT_CLOSED'} def draw(self, context): @@ -712,7 +712,7 @@ class IMAGE_PT_tools_brush_tool(BrushButtonsPanel, Panel): class IMAGE_PT_paint_stroke(BrushButtonsPanel, Panel): - bl_label = _("Paint Stroke") + bl_label = "Paint Stroke" bl_options = {'DEFAULT_CLOSED'} def draw(self, context): @@ -736,7 +736,7 @@ class IMAGE_PT_paint_stroke(BrushButtonsPanel, Panel): class IMAGE_PT_paint_curve(BrushButtonsPanel, Panel): - bl_label = _("Paint Curve") + bl_label = "Paint Curve" bl_options = {'DEFAULT_CLOSED'} def draw(self, context): diff --git a/release/scripts/startup/bl_ui/space_info.py b/release/scripts/startup/bl_ui/space_info.py index 416defb3bf5..99ee24406ac 100644 --- a/release/scripts/startup/bl_ui/space_info.py +++ b/release/scripts/startup/bl_ui/space_info.py @@ -89,7 +89,7 @@ class INFO_HT_header(Header): class INFO_MT_report(Menu): - bl_label = _("Report") + bl_label = "Report" def draw(self, context): layout = self.layout @@ -101,7 +101,7 @@ class INFO_MT_report(Menu): class INFO_MT_file(Menu): - bl_label = _("File"); + bl_label = "File" def draw(self, context): layout = self.layout @@ -156,7 +156,7 @@ class INFO_MT_file(Menu): class INFO_MT_file_import(Menu): bl_idname = "INFO_MT_file_import" - bl_label = _("Import") + bl_label = "Import" def draw(self, context): if hasattr(bpy.types, "WM_OT_collada_import"): @@ -165,7 +165,7 @@ class INFO_MT_file_import(Menu): class INFO_MT_file_export(Menu): bl_idname = "INFO_MT_file_export" - bl_label = _("Export") + bl_label = "Export" def draw(self, context): if hasattr(bpy.types, "WM_OT_collada_export"): @@ -173,7 +173,7 @@ class INFO_MT_file_export(Menu): class INFO_MT_file_external_data(Menu): - bl_label = _("External Data") + bl_label = "External Data" def draw(self, context): layout = self.layout @@ -191,7 +191,7 @@ class INFO_MT_file_external_data(Menu): class INFO_MT_mesh_add(Menu): bl_idname = "INFO_MT_mesh_add" - bl_label = _("Mesh") + bl_label = "Mesh" def draw(self, context): layout = self.layout @@ -212,7 +212,7 @@ class INFO_MT_mesh_add(Menu): class INFO_MT_curve_add(Menu): bl_idname = "INFO_MT_curve_add" - bl_label = _("Curve") + bl_label = "Curve" def draw(self, context): layout = self.layout @@ -227,7 +227,7 @@ class INFO_MT_curve_add(Menu): class INFO_MT_edit_curve_add(Menu): bl_idname = "INFO_MT_edit_curve_add" - bl_label = _("Add") + bl_label = "Add" def draw(self, context): is_surf = context.active_object.type == 'SURFACE' @@ -243,7 +243,7 @@ class INFO_MT_edit_curve_add(Menu): class INFO_MT_surface_add(Menu): bl_idname = "INFO_MT_surface_add" - bl_label = _("Surface") + bl_label = "Surface" def draw(self, context): layout = self.layout @@ -259,7 +259,7 @@ class INFO_MT_surface_add(Menu): class INFO_MT_armature_add(Menu): bl_idname = "INFO_MT_armature_add" - bl_label = _("Armature") + bl_label = "Armature" def draw(self, context): layout = self.layout @@ -269,7 +269,7 @@ class INFO_MT_armature_add(Menu): class INFO_MT_add(Menu): - bl_label = _("Add") + bl_label = "Add" def draw(self, context): layout = self.layout @@ -312,7 +312,7 @@ class INFO_MT_add(Menu): class INFO_MT_game(Menu): - bl_label = _("Game") + bl_label = "Game" def draw(self, context): layout = self.layout @@ -333,7 +333,7 @@ class INFO_MT_game(Menu): class INFO_MT_render(Menu): - bl_label = _("Render") + bl_label = "Render" def draw(self, context): layout = self.layout @@ -353,7 +353,7 @@ class INFO_MT_render(Menu): class INFO_MT_help(Menu): - bl_label = _("Help") + bl_label = "Help" def draw(self, context): import sys @@ -390,7 +390,7 @@ class INFO_MT_help(Menu): class HELP_OT_operator_cheat_sheet(Operator): bl_idname = "help.operator_cheat_sheet" - bl_label = _("Operator Cheat Sheet") + bl_label = "Operator Cheat Sheet" def execute(self, context): op_strings = [] diff --git a/release/scripts/startup/bl_ui/space_logic.py b/release/scripts/startup/bl_ui/space_logic.py index 38b63823ff3..b1149913d17 100644 --- a/release/scripts/startup/bl_ui/space_logic.py +++ b/release/scripts/startup/bl_ui/space_logic.py @@ -25,7 +25,7 @@ from blf import gettext as _ class LOGIC_PT_properties(Panel): bl_space_type = 'LOGIC_EDITOR' bl_region_type = 'UI' - bl_label = _("Properties") + bl_label = "Properties" @classmethod def poll(cls, context): @@ -52,7 +52,7 @@ class LOGIC_PT_properties(Panel): class LOGIC_MT_logicbricks_add(Menu): - bl_label = _("Add") + bl_label = "Add" def draw(self, context): layout = self.layout @@ -75,7 +75,7 @@ class LOGIC_HT_header(Header): class LOGIC_MT_view(Menu): - bl_label = _("View") + bl_label = "View" def draw(self, context): layout = self.layout diff --git a/release/scripts/startup/bl_ui/space_nla.py b/release/scripts/startup/bl_ui/space_nla.py index aa8dc337c39..8a4b0a61291 100644 --- a/release/scripts/startup/bl_ui/space_nla.py +++ b/release/scripts/startup/bl_ui/space_nla.py @@ -49,7 +49,7 @@ class NLA_HT_header(Header): class NLA_MT_view(Menu): - bl_label = _("View") + bl_label = "View" def draw(self, context): layout = self.layout @@ -81,7 +81,7 @@ class NLA_MT_view(Menu): class NLA_MT_select(Menu): - bl_label = _("Select") + bl_label = "Select" def draw(self, context): layout = self.layout @@ -118,7 +118,7 @@ class NLA_MT_marker(Menu): class NLA_MT_edit(Menu): - bl_label = _("Edit") + bl_label = "Edit" def draw(self, context): layout = self.layout @@ -160,7 +160,7 @@ class NLA_MT_edit(Menu): class NLA_MT_add(Menu): - bl_label = _("Add") + bl_label = "Add" def draw(self, context): layout = self.layout @@ -179,7 +179,7 @@ class NLA_MT_add(Menu): class NLA_MT_edit_transform(Menu): - bl_label = _("Transform") + bl_label = "Transform" def draw(self, context): layout = self.layout diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py index 6a58fc143fa..0808ddf769a 100644 --- a/release/scripts/startup/bl_ui/space_node.py +++ b/release/scripts/startup/bl_ui/space_node.py @@ -75,7 +75,7 @@ class NODE_HT_header(Header): class NODE_MT_view(Menu): - bl_label = _("View") + bl_label = "View" def draw(self, context): layout = self.layout @@ -104,7 +104,7 @@ class NODE_MT_view(Menu): class NODE_MT_select(Menu): - bl_label = _("Select") + bl_label = "Select" def draw(self, context): layout = self.layout @@ -121,7 +121,7 @@ class NODE_MT_select(Menu): class NODE_MT_node(Menu): - bl_label = _("Node") + bl_label = "Node" def draw(self, context): layout = self.layout @@ -164,7 +164,7 @@ class NODE_MT_node(Menu): class NODE_PT_properties(Panel): bl_space_type = 'NODE_EDITOR' bl_region_type = 'UI' - bl_label = _("Backdrop") + bl_label = "Backdrop" @classmethod def poll(cls, context): diff --git a/release/scripts/startup/bl_ui/space_outliner.py b/release/scripts/startup/bl_ui/space_outliner.py index b3be568cf68..b1e6eaf3245 100644 --- a/release/scripts/startup/bl_ui/space_outliner.py +++ b/release/scripts/startup/bl_ui/space_outliner.py @@ -19,7 +19,6 @@ # <pep8 compliant> import bpy from bpy.types import Header, Menu -from blf import gettext as _ class OUTLINER_HT_header(Header): @@ -66,7 +65,7 @@ class OUTLINER_HT_header(Header): class OUTLINER_MT_view(Menu): - bl_label = _("View") + bl_label = "View" def draw(self, context): layout = self.layout @@ -88,7 +87,7 @@ class OUTLINER_MT_view(Menu): class OUTLINER_MT_search(Menu): - bl_label = _("Search") + bl_label = "Search" def draw(self, context): layout = self.layout @@ -100,7 +99,7 @@ class OUTLINER_MT_search(Menu): class OUTLINER_MT_edit_datablocks(Menu): - bl_label = _("Edit") + bl_label = "Edit" def draw(self, context): layout = self.layout diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index ddbbc08eb46..a9a5eae3179 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -79,7 +79,7 @@ class SEQUENCER_HT_header(Header): class SEQUENCER_MT_view_toggle(Menu): - bl_label = _("View Type") + bl_label = "View Type" def draw(self, context): layout = self.layout @@ -90,7 +90,7 @@ class SEQUENCER_MT_view_toggle(Menu): class SEQUENCER_MT_view(Menu): - bl_label = _("View") + bl_label = "View" def draw(self, context): layout = self.layout @@ -134,7 +134,7 @@ class SEQUENCER_MT_view(Menu): class SEQUENCER_MT_select(Menu): - bl_label = _("Select") + bl_label = "Select" def draw(self, context): layout = self.layout @@ -152,7 +152,7 @@ class SEQUENCER_MT_select(Menu): class SEQUENCER_MT_marker(Menu): - bl_label = _("Marker") + bl_label = "Marker" def draw(self, context): layout = self.layout @@ -172,7 +172,7 @@ class SEQUENCER_MT_marker(Menu): class SEQUENCER_MT_change(Menu): - bl_label = _("Change") + bl_label = "Change" def draw(self, context): layout = self.layout @@ -185,7 +185,7 @@ class SEQUENCER_MT_change(Menu): class SEQUENCER_MT_add(Menu): - bl_label = _("Add") + bl_label = "Add" def draw(self, context): layout = self.layout @@ -205,7 +205,7 @@ class SEQUENCER_MT_add(Menu): class SEQUENCER_MT_add_effect(Menu): - bl_label = _("Effect Strip...") + bl_label = "Effect Strip..." def draw(self, context): layout = self.layout @@ -230,7 +230,7 @@ class SEQUENCER_MT_add_effect(Menu): class SEQUENCER_MT_strip(Menu): - bl_label = _("Strip") + bl_label = "Strip" def draw(self, context): layout = self.layout @@ -336,7 +336,7 @@ class SequencerButtonsPanel_Output(): class SEQUENCER_PT_edit(SequencerButtonsPanel, Panel): - bl_label = _("Edit Strip") + bl_label = "Edit Strip" def draw(self, context): layout = self.layout @@ -394,7 +394,7 @@ class SEQUENCER_PT_edit(SequencerButtonsPanel, Panel): class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel): - bl_label = _("Effect Strip") + bl_label = "Effect Strip" @classmethod def poll(cls, context): @@ -532,7 +532,7 @@ class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel): class SEQUENCER_PT_input(SequencerButtonsPanel, Panel): - bl_label = _("Strip Input") + bl_label = "Strip Input" @classmethod def poll(cls, context): @@ -617,7 +617,7 @@ class SEQUENCER_PT_input(SequencerButtonsPanel, Panel): class SEQUENCER_PT_sound(SequencerButtonsPanel, Panel): - bl_label = _("Sound") + bl_label = "Sound" @classmethod def poll(cls, context): @@ -660,7 +660,7 @@ class SEQUENCER_PT_sound(SequencerButtonsPanel, Panel): class SEQUENCER_PT_scene(SequencerButtonsPanel, Panel): - bl_label = _("Scene") + bl_label = "Scene" @classmethod def poll(cls, context): @@ -694,7 +694,7 @@ class SEQUENCER_PT_scene(SequencerButtonsPanel, Panel): class SEQUENCER_PT_filter(SequencerButtonsPanel, Panel): - bl_label = _("Filter") + bl_label = "Filter" @classmethod def poll(cls, context): @@ -756,7 +756,7 @@ class SEQUENCER_PT_filter(SequencerButtonsPanel, Panel): class SEQUENCER_PT_proxy(SequencerButtonsPanel, Panel): - bl_label = _("Proxy / Timecode") + bl_label = "Proxy / Timecode" @classmethod def poll(cls, context): @@ -831,7 +831,7 @@ class SEQUENCER_PT_preview(SequencerButtonsPanel_Output, Panel): class SEQUENCER_PT_view(SequencerButtonsPanel_Output, Panel): - bl_label = _("View Settings") + bl_label = "View Settings" def draw(self, context): layout = self.layout diff --git a/release/scripts/startup/bl_ui/space_text.py b/release/scripts/startup/bl_ui/space_text.py index 03baf8f34ca..cd72d42857b 100644 --- a/release/scripts/startup/bl_ui/space_text.py +++ b/release/scripts/startup/bl_ui/space_text.py @@ -79,7 +79,7 @@ class TEXT_HT_header(Header): class TEXT_PT_properties(Panel): bl_space_type = 'TEXT_EDITOR' bl_region_type = 'UI' - bl_label = _("Properties") + bl_label = "Properties" def draw(self, context): layout = self.layout @@ -110,7 +110,7 @@ class TEXT_PT_properties(Panel): class TEXT_PT_find(Panel): bl_space_type = 'TEXT_EDITOR' bl_region_type = 'UI' - bl_label = _("Find") + bl_label = "Find" def draw(self, context): layout = self.layout @@ -142,7 +142,7 @@ class TEXT_PT_find(Panel): class TEXT_MT_view(Menu): - bl_label = _("View") + bl_label = "View" def draw(self, context): layout = self.layout @@ -165,7 +165,7 @@ class TEXT_MT_view(Menu): class TEXT_MT_text(Menu): - bl_label = _("Text") + bl_label = "Text" def draw(self, context): layout = self.layout @@ -193,7 +193,7 @@ class TEXT_MT_text(Menu): class TEXT_MT_templates(Menu): - bl_label = _("Templates") + bl_label = "Templates" def draw(self, context): self.path_menu(bpy.utils.script_paths("templates"), @@ -203,7 +203,7 @@ class TEXT_MT_templates(Menu): class TEXT_MT_edit_select(Menu): - bl_label = _("Select") + bl_label = "Select" def draw(self, context): layout = self.layout @@ -213,7 +213,7 @@ class TEXT_MT_edit_select(Menu): class TEXT_MT_edit_markers(Menu): - bl_label = _("Markers") + bl_label = "Markers" def draw(self, context): layout = self.layout @@ -224,7 +224,7 @@ class TEXT_MT_edit_markers(Menu): class TEXT_MT_format(Menu): - bl_label = _("Format") + bl_label = "Format" def draw(self, context): layout = self.layout @@ -243,7 +243,7 @@ class TEXT_MT_format(Menu): class TEXT_MT_edit_to3d(Menu): - bl_label = _("Text To 3D Object") + bl_label = "Text To 3D Object" def draw(self, context): layout = self.layout @@ -257,7 +257,7 @@ class TEXT_MT_edit_to3d(Menu): class TEXT_MT_edit(Menu): - bl_label = _("Edit") + bl_label = "Edit" @classmethod def poll(cls, context): diff --git a/release/scripts/startup/bl_ui/space_time.py b/release/scripts/startup/bl_ui/space_time.py index 157fe9939e8..d654c1e4d8b 100644 --- a/release/scripts/startup/bl_ui/space_time.py +++ b/release/scripts/startup/bl_ui/space_time.py @@ -93,7 +93,7 @@ class TIME_HT_header(Header): class TIME_MT_view(Menu): - bl_label = _("View") + bl_label = "View" def draw(self, context): layout = self.layout @@ -118,7 +118,7 @@ class TIME_MT_view(Menu): class TIME_MT_cache(Menu): - bl_label = _("Cache") + bl_label = "Cache" def draw(self, context): layout = self.layout @@ -138,7 +138,7 @@ class TIME_MT_cache(Menu): class TIME_MT_frame(Menu): - bl_label = _("Frame") + bl_label = "Frame" def draw(self, context): layout = self.layout @@ -164,7 +164,7 @@ class TIME_MT_frame(Menu): class TIME_MT_playback(Menu): - bl_label = _("Playback") + bl_label = "Playback" def draw(self, context): layout = self.layout @@ -189,7 +189,7 @@ class TIME_MT_playback(Menu): class TIME_MT_autokey(Menu): - bl_label = _("Auto-Keyframing Mode") + bl_label = "Auto-Keyframing Mode" def draw(self, context): layout = self.layout diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py index c90497de29c..d1009a018f0 100644 --- a/release/scripts/startup/bl_ui/space_userpref.py +++ b/release/scripts/startup/bl_ui/space_userpref.py @@ -116,7 +116,7 @@ class USERPREF_PT_tabs(Panel): class USERPREF_MT_interaction_presets(Menu): - bl_label = _("Presets") + bl_label = "Presets" preset_subdir = "interaction" preset_operator = "script.execute_preset" draw = Menu.draw_preset @@ -153,7 +153,7 @@ class USERPREF_MT_splash(Menu): class USERPREF_PT_interface(Panel): bl_space_type = 'USER_PREFERENCES' - bl_label = _("Interface") + bl_label = "Interface" bl_region_type = 'WINDOW' bl_options = {'HIDE_HEADER'} @@ -250,7 +250,7 @@ class USERPREF_PT_interface(Panel): class USERPREF_PT_edit(Panel): bl_space_type = 'USER_PREFERENCES' - bl_label = _("Edit") + bl_label = "Edit" bl_region_type = 'WINDOW' bl_options = {'HIDE_HEADER'} @@ -363,7 +363,7 @@ class USERPREF_PT_edit(Panel): class USERPREF_PT_system(Panel): bl_space_type = 'USER_PREFERENCES' - bl_label = _("System") + bl_label = "System" bl_region_type = 'WINDOW' bl_options = {'HIDE_HEADER'} @@ -418,20 +418,6 @@ class USERPREF_PT_system(Panel): col.separator() col.separator() - #column = split.column() - #colsplit = column.split(percentage=0.85) - - # No translation in 2.5 yet - #col.prop(system, "language") - #col.label(text="Translate:") - #col.prop(system, "use_translate_tooltips", text="Tooltips") - #col.prop(system, "use_translate_buttons", text="Labels") - #col.prop(system, "use_translate_toolbox", text="Toolbox") - - #col.separator() - - #col.prop(system, "use_textured_fonts") - # 2. Column column = split.column() colsplit = column.split(percentage=0.85) @@ -486,9 +472,6 @@ class USERPREF_PT_system(Panel): column.label(text=_("Color Picker Type:")) column.row().prop(system, "color_picker_type", text="") - column.label(text=_("Select Language:")) - column.row().prop(system, "language", text="") - column.separator() column.prop(system, "use_weight_color_range", text=_("Custom Weight Paint Range")) @@ -496,10 +479,21 @@ class USERPREF_PT_system(Panel): sub.active = system.use_weight_color_range sub.template_color_ramp(system, "weight_color_range", expand=True) + column.separator() + + column.prop(system, "use_international_fonts") + if system.use_international_fonts: + column.label(text=_("Select Language:")) + column.prop(system, "language", text="") + column.label(text="Translate:") + row = column.row() + row.prop(system, "use_translate_interface", text="Interface") + row.prop(system, "use_translate_tooltips", text="Tooltips") + class USERPREF_PT_theme(Panel): bl_space_type = 'USER_PREFERENCES' - bl_label = _("Themes") + bl_label = "Themes" bl_region_type = 'WINDOW' bl_options = {'HIDE_HEADER'} @@ -682,7 +676,7 @@ class USERPREF_PT_theme(Panel): class USERPREF_PT_file(Panel): bl_space_type = 'USER_PREFERENCES' - bl_label = _("Files") + bl_label = "Files" bl_region_type = 'WINDOW' bl_options = {'HIDE_HEADER'} @@ -758,7 +752,7 @@ from bl_ui.space_userpref_keymap import InputKeyMapPanel class USERPREF_MT_ndof_settings(Menu): # accessed from the window keybindings in C (only) - bl_label = _("3D Mouse Settings") + bl_label = "3D Mouse Settings" def draw(self, context): layout = self.layout @@ -794,7 +788,7 @@ class USERPREF_MT_ndof_settings(Menu): class USERPREF_PT_input(Panel, InputKeyMapPanel): bl_space_type = 'USER_PREFERENCES' - bl_label = _("Input") + bl_label = "Input" @classmethod def poll(cls, context): @@ -883,7 +877,7 @@ class USERPREF_PT_input(Panel, InputKeyMapPanel): class USERPREF_MT_addons_dev_guides(Menu): - bl_label = _("Development Guides") + bl_label = "Development Guides" # menu to open webpages with addons development guides def draw(self, context): @@ -895,7 +889,7 @@ class USERPREF_MT_addons_dev_guides(Menu): class USERPREF_PT_addons(Panel): bl_space_type = 'USER_PREFERENCES' - bl_label = _("Addons") + bl_label = "Addons" bl_region_type = 'WINDOW' bl_options = {'HIDE_HEADER'} @@ -1086,11 +1080,11 @@ class USERPREF_PT_addons(Panel): class WM_OT_addon_enable(Operator): "Enable an addon" bl_idname = "wm.addon_enable" - bl_label = _("Enable Add-On") + bl_label = "Enable Add-On" module = StringProperty( - name=_("Module"), - description=_("Module name of the addon to enable"), + name="Module", + description="Module name of the addon to enable", ) def execute(self, context): @@ -1115,11 +1109,11 @@ class WM_OT_addon_enable(Operator): class WM_OT_addon_disable(Operator): "Disable an addon" bl_idname = "wm.addon_disable" - bl_label = _("Disable Add-On") + bl_label = "Disable Add-On" module = StringProperty( - name=_("Module"), - description=_("Module name of the addon to disable"), + name="Module", + description="Module name of the addon to disable", ) def execute(self, context): @@ -1130,11 +1124,11 @@ class WM_OT_addon_disable(Operator): class WM_OT_addon_install(Operator): "Install an addon" bl_idname = "wm.addon_install" - bl_label = _("Install Add-On...") + bl_label = "Install Add-On..." overwrite = BoolProperty( - name=_("Overwrite"), - description=_("Remove existing addons with the same ID"), + name="Overwrite", + description="Remove existing addons with the same ID", default=True, ) target = EnumProperty( @@ -1144,16 +1138,16 @@ class WM_OT_addon_install(Operator): ) filepath = StringProperty( - name=_("File Path"), - description=_("File path to write file to"), + name="File Path", + description="File path to write file to", ) filter_folder = BoolProperty( - name=_("Filter folders"), + name="Filter folders", default=True, options={'HIDDEN'}, ) filter_python = BoolProperty( - name=_("Filter python"), + name="Filter python", default=True, options={'HIDDEN'}, ) @@ -1295,11 +1289,11 @@ class WM_OT_addon_install(Operator): class WM_OT_addon_remove(Operator): "Disable an addon" bl_idname = "wm.addon_remove" - bl_label = _("Remove Add-On") + bl_label = "Remove Add-On" module = StringProperty( - name=_("Module"), - description=_("Module name of the addon to remove"), + name="Module", + description="Module name of the addon to remove", ) @staticmethod @@ -1349,8 +1343,8 @@ class WM_OT_addon_expand(Operator): bl_label = "" module = StringProperty( - name=_("Module"), - description=_("Module name of the addon to expand"), + name="Module", + description="Module name of the addon to expand", ) def execute(self, context): diff --git a/release/scripts/startup/bl_ui/space_userpref_keymap.py b/release/scripts/startup/bl_ui/space_userpref_keymap.py index 336e4edf006..bc760a73c9a 100644 --- a/release/scripts/startup/bl_ui/space_userpref_keymap.py +++ b/release/scripts/startup/bl_ui/space_userpref_keymap.py @@ -128,7 +128,7 @@ def _merge_keymaps(kc1, kc2): class USERPREF_MT_keyconfigs(Menu): - bl_label = _("KeyPresets") + bl_label = "KeyPresets" preset_subdir = "keyconfig" preset_operator = "wm.keyconfig_activate" @@ -143,7 +143,7 @@ class USERPREF_MT_keyconfigs(Menu): class InputKeyMapPanel: bl_space_type = 'USER_PREFERENCES' - bl_label = _("Input") + bl_label = "Input" bl_region_type = 'WINDOW' bl_options = {'HIDE_HEADER'} @@ -263,7 +263,7 @@ class InputKeyMapPanel: if km.is_modal: row.prop(kmi, "propvalue", text="") else: - row.label(text=kmi.name) + row.label(text=_(kmi.name)) row = split.row() row.prop(kmi, "map_type", text="") @@ -426,7 +426,6 @@ class WM_OT_keyconfig_test(Operator): "Test keyconfig for conflicts" bl_idname = "wm.keyconfig_test" bl_label = _("Test Key Configuration for Conflicts") - __doc__ = _("Test keyconfig for conflicts") def testEntry(self, kc, entry, src=None, parent=None): result = False @@ -534,32 +533,31 @@ def _string_value(value): class WM_OT_keyconfig_import(Operator): "Import key configuration from a python script" bl_idname = "wm.keyconfig_import" - bl_label = _("Import Key Configuration...") - __doc__ = _("Import key configuration from a python script") + bl_label = "Import Key Configuration..." filepath = StringProperty( - name=_("File Path"), - description=_("Filepath to write file to"), + name="File Path", + description="Filepath to write file to", default="keymap.py", ) filter_folder = BoolProperty( - name=_("Filter folders"), + name="Filter folders", default=True, options={'HIDDEN'}, ) filter_text = BoolProperty( - name=_("Filter text"), + name="Filter text", default=True, options={'HIDDEN'}, ) filter_python = BoolProperty( - name=_("Filter python"), + name="Filter python", default=True, options={'HIDDEN'}, ) keep_original = BoolProperty( - name=_("Keep original"), - description=_("Keep original file after copying to configuration folder"), + name="Keep original", + description="Keep original file after copying to configuration folder", default=True, ) @@ -602,25 +600,24 @@ class WM_OT_keyconfig_export(Operator): "Export key configuration to a python script" bl_idname = "wm.keyconfig_export" bl_label = _("Export Key Configuration...") - __doc__ = _("Export key configuration to a python script") filepath = StringProperty( - name=_("File Path"), - description=_("Filepath to write file to"), + name="File Path", + description="Filepath to write file to", default="keymap.py", ) filter_folder = BoolProperty( - name=_("Filter folders"), + name="Filter folders", default=True, options={'HIDDEN'}, ) filter_text = BoolProperty( - name=_("Filter text"), + name="Filter text", default=True, options={'HIDDEN'}, ) filter_python = BoolProperty( - name=_("Filter python"), + name="Filter python", default=True, options={'HIDDEN'}, ) @@ -711,12 +708,11 @@ class WM_OT_keyconfig_export(Operator): class WM_OT_keymap_restore(Operator): "Restore key map(s)" bl_idname = "wm.keymap_restore" - bl_label = _("Restore Key Map(s)") - __doc__ = _("Restore key map(s)") + bl_label = "Restore Key Map(s)" all = BoolProperty( - name=_("All Keymaps"), - description=_("Restore all keymaps to default"), + name="All Keymaps", + description="Restore all keymaps to default", ) def execute(self, context): @@ -735,12 +731,11 @@ class WM_OT_keymap_restore(Operator): class WM_OT_keyitem_restore(Operator): "Restore key map item" bl_idname = "wm.keyitem_restore" - bl_label = _("Restore Key Map Item") - __doc__ = _("Restore key map item") + bl_label = "Restore Key Map Item" item_id = IntProperty( - name=_("Item Identifier"), - description=_("Identifier of the item to remove"), + name="Item Identifier", + description="Identifier of the item to remove", ) @classmethod @@ -761,8 +756,7 @@ class WM_OT_keyitem_restore(Operator): class WM_OT_keyitem_add(Operator): "Add key map item" bl_idname = "wm.keyitem_add" - bl_label = _("Add Key Map Item") - __doc__ = _("Add key map item") + bl_label = "Add Key Map Item" def execute(self, context): km = context.keymap @@ -784,12 +778,11 @@ class WM_OT_keyitem_add(Operator): class WM_OT_keyitem_remove(Operator): "Remove key map item" bl_idname = "wm.keyitem_remove" - bl_label = _("Remove Key Map Item") - __doc__ = _("Remove key map item") + bl_label = "Remove Key Map Item" item_id = IntProperty( - name=_("Item Identifier"), - description=_("Identifier of the item to remove"), + name="Item Identifier", + description="Identifier of the item to remove", ) @classmethod @@ -806,8 +799,7 @@ class WM_OT_keyitem_remove(Operator): class WM_OT_keyconfig_remove(Operator): "Remove key config" bl_idname = "wm.keyconfig_remove" - bl_label = _("Remove Key Config") - __doc__ = _("Remove key config") + bl_label = "Remove Key Config" @classmethod def poll(cls, context): diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index c78ad774165..69dd18d7a60 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -119,7 +119,7 @@ class VIEW3D_HT_header(Header): class ShowHideMenu(): - bl_label = _("Show/Hide") + bl_label = "Show/Hide" _operator_name = "" def draw(self, context): @@ -131,17 +131,17 @@ class ShowHideMenu(): class VIEW3D_MT_transform(Menu): - bl_label = _("Transform") + bl_label = "Transform" # TODO: get rid of the custom text strings? def draw(self, context): layout = self.layout - layout.operator("transform.translate", text=_("Grab/Move")) + layout.operator("transform.translate", text="Grab/Move") # TODO: sub-menu for grab per axis - layout.operator("transform.rotate", text=_("Rotate")) + layout.operator("transform.rotate", text="Rotate") # TODO: sub-menu for rot per axis - layout.operator("transform.resize", text=_("Scale")) + layout.operator("transform.resize", text="Scale") # TODO: sub-menu for scale per axis layout.separator() @@ -187,7 +187,7 @@ class VIEW3D_MT_transform(Menu): class VIEW3D_MT_mirror(Menu): - bl_label = _("Mirror") + bl_label = "Mirror" def draw(self, context): layout = self.layout @@ -225,7 +225,7 @@ class VIEW3D_MT_mirror(Menu): class VIEW3D_MT_snap(Menu): - bl_label = _("Snap") + bl_label = "Snap" def draw(self, context): layout = self.layout @@ -242,7 +242,7 @@ class VIEW3D_MT_snap(Menu): class VIEW3D_MT_uv_map(Menu): - bl_label = _("UV Mapping") + bl_label = "UV Mapping" def draw(self, context): layout = self.layout @@ -275,7 +275,7 @@ class VIEW3D_MT_uv_map(Menu): class VIEW3D_MT_view(Menu): - bl_label = _("View") + bl_label = "View" def draw(self, context): layout = self.layout @@ -333,7 +333,7 @@ class VIEW3D_MT_view(Menu): class VIEW3D_MT_view_navigation(Menu): - bl_label = _("Navigation") + bl_label = "Navigation" def draw(self, context): layout = self.layout @@ -356,7 +356,7 @@ class VIEW3D_MT_view_navigation(Menu): class VIEW3D_MT_view_align(Menu): - bl_label = _("Align View") + bl_label = "Align View" def draw(self, context): layout = self.layout @@ -372,7 +372,7 @@ class VIEW3D_MT_view_align(Menu): class VIEW3D_MT_view_align_selected(Menu): - bl_label = _("Align View to Selected") + bl_label = "Align View to Selected" def draw(self, context): layout = self.layout @@ -398,7 +398,7 @@ class VIEW3D_MT_view_align_selected(Menu): class VIEW3D_MT_view_cameras(Menu): - bl_label = _("Cameras") + bl_label = "Cameras" def draw(self, context): layout = self.layout @@ -410,7 +410,7 @@ class VIEW3D_MT_view_cameras(Menu): class VIEW3D_MT_select_object(Menu): - bl_label = _("Select") + bl_label = "Select" def draw(self, context): layout = self.layout @@ -436,7 +436,7 @@ class VIEW3D_MT_select_object(Menu): class VIEW3D_MT_select_pose(Menu): - bl_label = _("Select") + bl_label = "Select" def draw(self, context): layout = self.layout @@ -473,7 +473,7 @@ class VIEW3D_MT_select_pose(Menu): class VIEW3D_MT_select_particle(Menu): - bl_label = _("Select") + bl_label = "Select" def draw(self, context): layout = self.layout @@ -498,7 +498,7 @@ class VIEW3D_MT_select_particle(Menu): class VIEW3D_MT_select_edit_mesh(Menu): - bl_label = _("Select") + bl_label = "Select" def draw(self, context): layout = self.layout @@ -550,7 +550,7 @@ class VIEW3D_MT_select_edit_mesh(Menu): class VIEW3D_MT_select_edit_curve(Menu): - bl_label = _("Select") + bl_label = "Select" def draw(self, context): layout = self.layout @@ -579,7 +579,7 @@ class VIEW3D_MT_select_edit_curve(Menu): class VIEW3D_MT_select_edit_surface(Menu): - bl_label = _("Select") + bl_label = "Select" def draw(self, context): layout = self.layout @@ -605,7 +605,7 @@ class VIEW3D_MT_select_edit_surface(Menu): class VIEW3D_MT_select_edit_metaball(Menu): - bl_label = _("Select") + bl_label = "Select" def draw(self, context): layout = self.layout @@ -623,7 +623,7 @@ class VIEW3D_MT_select_edit_metaball(Menu): class VIEW3D_MT_select_edit_lattice(Menu): - bl_label = _("Select") + bl_label = "Select" def draw(self, context): layout = self.layout @@ -636,7 +636,7 @@ class VIEW3D_MT_select_edit_lattice(Menu): class VIEW3D_MT_select_edit_armature(Menu): - bl_label = _("Select") + bl_label = "Select" def draw(self, context): layout = self.layout @@ -667,7 +667,7 @@ class VIEW3D_MT_select_edit_armature(Menu): class VIEW3D_MT_select_face(Menu): # XXX no matching enum - bl_label = _("Select") + bl_label = "Select" def draw(self, context): # layout = self.layout @@ -681,7 +681,7 @@ class VIEW3D_MT_select_face(Menu): # XXX no matching enum class VIEW3D_MT_object(Menu): bl_context = "objectmode" - bl_label = _("Object") + bl_label = "Object" def draw(self, context): layout = self.layout @@ -738,7 +738,7 @@ class VIEW3D_MT_object(Menu): class VIEW3D_MT_object_animation(Menu): - bl_label = _("Animation") + bl_label = "Animation" def draw(self, context): layout = self.layout @@ -749,7 +749,7 @@ class VIEW3D_MT_object_animation(Menu): class VIEW3D_MT_object_clear(Menu): - bl_label = _("Clear") + bl_label = "Clear" def draw(self, context): layout = self.layout @@ -761,7 +761,7 @@ class VIEW3D_MT_object_clear(Menu): class VIEW3D_MT_object_specials(Menu): - bl_label = _("Specials") + bl_label = "Specials" @classmethod def poll(cls, context): @@ -856,7 +856,7 @@ class VIEW3D_MT_object_specials(Menu): class VIEW3D_MT_object_apply(Menu): - bl_label = _("Apply") + bl_label = "Apply" def draw(self, context): layout = self.layout @@ -875,7 +875,7 @@ class VIEW3D_MT_object_apply(Menu): class VIEW3D_MT_object_parent(Menu): - bl_label = _("Parent") + bl_label = "Parent" def draw(self, context): layout = self.layout @@ -885,7 +885,7 @@ class VIEW3D_MT_object_parent(Menu): class VIEW3D_MT_object_track(Menu): - bl_label = _("Track") + bl_label = "Track" def draw(self, context): layout = self.layout @@ -895,7 +895,7 @@ class VIEW3D_MT_object_track(Menu): class VIEW3D_MT_object_group(Menu): - bl_label = _("Group") + bl_label = "Group" def draw(self, context): layout = self.layout @@ -910,7 +910,7 @@ class VIEW3D_MT_object_group(Menu): class VIEW3D_MT_object_constraints(Menu): - bl_label = _("Constraints") + bl_label = "Constraints" def draw(self, context): layout = self.layout @@ -921,7 +921,7 @@ class VIEW3D_MT_object_constraints(Menu): class VIEW3D_MT_object_showhide(Menu): - bl_label = _("Show/Hide") + bl_label = "Show/Hide" def draw(self, context): layout = self.layout @@ -932,7 +932,7 @@ class VIEW3D_MT_object_showhide(Menu): class VIEW3D_MT_make_single_user(Menu): - bl_label = _("Make Single User") + bl_label = "Make Single User" def draw(self, context): layout = self.layout @@ -954,7 +954,7 @@ class VIEW3D_MT_make_single_user(Menu): class VIEW3D_MT_make_links(Menu): - bl_label = _("Make Links") + bl_label = "Make Links" def draw(self, context): layout = self.layout @@ -971,7 +971,7 @@ class VIEW3D_MT_make_links(Menu): class VIEW3D_MT_object_game(Menu): - bl_label = _("Game") + bl_label = "Game" def draw(self, context): layout = self.layout @@ -993,7 +993,7 @@ class VIEW3D_MT_object_game(Menu): class VIEW3D_MT_paint_vertex(Menu): - bl_label = _("Paint") + bl_label = "Paint" def draw(self, context): layout = self.layout @@ -1008,7 +1008,7 @@ class VIEW3D_MT_paint_vertex(Menu): class VIEW3D_MT_hook(Menu): - bl_label = _("Hooks") + bl_label = "Hooks" def draw(self, context): layout = self.layout @@ -1027,7 +1027,7 @@ class VIEW3D_MT_hook(Menu): class VIEW3D_MT_vertex_group(Menu): - bl_label = _("Vertex Groups") + bl_label = "Vertex Groups" def draw(self, context): layout = self.layout @@ -1052,7 +1052,7 @@ class VIEW3D_MT_vertex_group(Menu): class VIEW3D_MT_paint_weight(Menu): - bl_label = _("Weights") + bl_label = "Weights" def draw(self, context): layout = self.layout @@ -1082,7 +1082,7 @@ class VIEW3D_MT_paint_weight(Menu): class VIEW3D_MT_sculpt(Menu): - bl_label = _("Sculpt") + bl_label = "Sculpt" def draw(self, context): layout = self.layout @@ -1132,7 +1132,7 @@ class VIEW3D_MT_sculpt(Menu): class VIEW3D_MT_particle(Menu): - bl_label = _("Particle") + bl_label = "Particle" def draw(self, context): layout = self.layout @@ -1164,7 +1164,7 @@ class VIEW3D_MT_particle(Menu): class VIEW3D_MT_particle_specials(Menu): - bl_label = _("Specials") + bl_label = "Specials" def draw(self, context): layout = self.layout @@ -1188,7 +1188,7 @@ class VIEW3D_MT_particle_showhide(ShowHideMenu, Menu): class VIEW3D_MT_pose(Menu): - bl_label = _("Pose") + bl_label = "Pose" def draw(self, context): layout = self.layout @@ -1257,7 +1257,7 @@ class VIEW3D_MT_pose(Menu): class VIEW3D_MT_pose_transform(Menu): - bl_label = _("Clear Transform") + bl_label = "Clear Transform" def draw(self, context): layout = self.layout @@ -1276,7 +1276,7 @@ class VIEW3D_MT_pose_transform(Menu): class VIEW3D_MT_pose_slide(Menu): - bl_label = _("In-Betweens") + bl_label = "In-Betweens" def draw(self, context): layout = self.layout @@ -1287,7 +1287,7 @@ class VIEW3D_MT_pose_slide(Menu): class VIEW3D_MT_pose_propagate(Menu): - bl_label = _("Propagate") + bl_label = "Propagate" def draw(self, context): layout = self.layout @@ -1305,7 +1305,7 @@ class VIEW3D_MT_pose_propagate(Menu): class VIEW3D_MT_pose_library(Menu): - bl_label = _("Pose Library") + bl_label = "Pose Library" def draw(self, context): layout = self.layout @@ -1320,7 +1320,7 @@ class VIEW3D_MT_pose_library(Menu): class VIEW3D_MT_pose_motion(Menu): - bl_label = _("Motion Paths") + bl_label = "Motion Paths" def draw(self, context): layout = self.layout @@ -1330,7 +1330,7 @@ class VIEW3D_MT_pose_motion(Menu): class VIEW3D_MT_pose_group(Menu): - bl_label = _("Bone Groups") + bl_label = "Bone Groups" def draw(self, context): layout = self.layout @@ -1344,7 +1344,7 @@ class VIEW3D_MT_pose_group(Menu): class VIEW3D_MT_pose_ik(Menu): - bl_label = _("Inverse Kinematics") + bl_label = "Inverse Kinematics" def draw(self, context): layout = self.layout @@ -1354,7 +1354,7 @@ class VIEW3D_MT_pose_ik(Menu): class VIEW3D_MT_pose_constraints(Menu): - bl_label = _("Constraints") + bl_label = "Constraints" def draw(self, context): layout = self.layout @@ -1425,7 +1425,7 @@ class VIEW3D_MT_bone_options_disable(Menu, BoneOptions): class VIEW3D_MT_edit_mesh(Menu): - bl_label = _("Mesh") + bl_label = "Mesh" def draw(self, context): layout = self.layout @@ -1472,7 +1472,7 @@ class VIEW3D_MT_edit_mesh(Menu): class VIEW3D_MT_edit_mesh_specials(Menu): - bl_label = _("Specials") + bl_label = "Specials" def draw(self, context): layout = self.layout @@ -1497,7 +1497,7 @@ class VIEW3D_MT_edit_mesh_specials(Menu): class VIEW3D_MT_edit_mesh_select_mode(Menu): - bl_label = _("Mesh Select Mode") + bl_label = "Mesh Select Mode" def draw(self, context): layout = self.layout @@ -1518,7 +1518,7 @@ class VIEW3D_MT_edit_mesh_select_mode(Menu): class VIEW3D_MT_edit_mesh_extrude(Menu): - bl_label = _("Extrude") + bl_label = "Extrude" _extrude_funcs = { \ "VERT": lambda layout: layout.operator("mesh.extrude_vertices_move", text=_("Vertices Only")), @@ -1553,7 +1553,7 @@ class VIEW3D_MT_edit_mesh_extrude(Menu): class VIEW3D_OT_edit_mesh_extrude_individual_move(Operator): "Extrude individual elements and move" - bl_label = _("Extrude Individual and Move") + bl_label = "Extrude Individual and Move" bl_idname = "view3d.edit_mesh_extrude_individual_move" def execute(self, context): @@ -1582,7 +1582,7 @@ class VIEW3D_OT_edit_mesh_extrude_individual_move(Operator): class VIEW3D_OT_edit_mesh_extrude_move(Operator): "Extrude and move along normals" - bl_label = _("Extrude and Move on Normals") + bl_label = "Extrude and Move on Normals" bl_idname = "view3d.edit_mesh_extrude_move_normal" def execute(self, context): @@ -1607,7 +1607,7 @@ class VIEW3D_OT_edit_mesh_extrude_move(Operator): class VIEW3D_MT_edit_mesh_vertices(Menu): - bl_label = _("Vertices") + bl_label = "Vertices" def draw(self, context): layout = self.layout @@ -1639,7 +1639,7 @@ class VIEW3D_MT_edit_mesh_vertices(Menu): class VIEW3D_MT_edit_mesh_edges(Menu): - bl_label = _("Edges") + bl_label = "Edges" def draw(self, context): layout = self.layout @@ -1679,7 +1679,7 @@ class VIEW3D_MT_edit_mesh_edges(Menu): class VIEW3D_MT_edit_mesh_faces(Menu): - bl_label = _("Faces") + bl_label = "Faces" bl_idname = "VIEW3D_MT_edit_mesh_faces" def draw(self, context): @@ -1727,7 +1727,7 @@ class VIEW3D_MT_edit_mesh_faces(Menu): class VIEW3D_MT_edit_mesh_normals(Menu): - bl_label = _("Normals") + bl_label = "Normals" def draw(self, context): layout = self.layout @@ -1781,13 +1781,13 @@ def draw_curve(self, context): class VIEW3D_MT_edit_curve(Menu): - bl_label = _("Curve") + bl_label = "Curve" draw = draw_curve class VIEW3D_MT_edit_curve_ctrlpoints(Menu): - bl_label = _("Control Points") + bl_label = "Control Points" def draw(self, context): layout = self.layout @@ -1809,7 +1809,7 @@ class VIEW3D_MT_edit_curve_ctrlpoints(Menu): class VIEW3D_MT_edit_curve_segments(Menu): - bl_label = _("Segments") + bl_label = "Segments" def draw(self, context): layout = self.layout @@ -1819,7 +1819,7 @@ class VIEW3D_MT_edit_curve_segments(Menu): class VIEW3D_MT_edit_curve_specials(Menu): - bl_label = _("Specials") + bl_label = "Specials" def draw(self, context): layout = self.layout @@ -1837,13 +1837,13 @@ class VIEW3D_MT_edit_curve_showhide(ShowHideMenu, Menu): class VIEW3D_MT_edit_surface(Menu): - bl_label = _("Surface") + bl_label = "Surface" draw = draw_curve class VIEW3D_MT_edit_font(Menu): - bl_label = _("Text") + bl_label = "Text" def draw(self, context): layout = self.layout @@ -1863,7 +1863,7 @@ class VIEW3D_MT_edit_font(Menu): class VIEW3D_MT_edit_text_chars(Menu): - bl_label = _("Special Characters") + bl_label = "Special Characters" def draw(self, context): layout = self.layout @@ -1897,7 +1897,7 @@ class VIEW3D_MT_edit_text_chars(Menu): class VIEW3D_MT_edit_meta(Menu): - bl_label = _("Metaball") + bl_label = "Metaball" def draw(self, context): layout = self.layout @@ -1930,7 +1930,7 @@ class VIEW3D_MT_edit_meta(Menu): class VIEW3D_MT_edit_meta_showhide(Menu): - bl_label = _("Show/Hide") + bl_label = "Show/Hide" def draw(self, context): layout = self.layout @@ -1941,7 +1941,7 @@ class VIEW3D_MT_edit_meta_showhide(Menu): class VIEW3D_MT_edit_lattice(Menu): - bl_label = _("Lattice") + bl_label = "Lattice" def draw(self, context): layout = self.layout @@ -1963,7 +1963,7 @@ class VIEW3D_MT_edit_lattice(Menu): class VIEW3D_MT_edit_armature(Menu): - bl_label = _("Armature") + bl_label = "Armature" def draw(self, context): layout = self.layout @@ -2018,7 +2018,7 @@ class VIEW3D_MT_edit_armature(Menu): class VIEW3D_MT_armature_specials(Menu): - bl_label = _("Specials") + bl_label = "Specials" def draw(self, context): layout = self.layout @@ -2038,7 +2038,7 @@ class VIEW3D_MT_armature_specials(Menu): class VIEW3D_MT_edit_armature_parent(Menu): - bl_label = _("Parent") + bl_label = "Parent" def draw(self, context): layout = self.layout @@ -2048,7 +2048,7 @@ class VIEW3D_MT_edit_armature_parent(Menu): class VIEW3D_MT_edit_armature_roll(Menu): - bl_label = _("Bone Roll") + bl_label = "Bone Roll" def draw(self, context): layout = self.layout @@ -2065,7 +2065,7 @@ class VIEW3D_MT_edit_armature_roll(Menu): class VIEW3D_PT_view3d_properties(Panel): bl_space_type = 'VIEW_3D' bl_region_type = 'UI' - bl_label = _("View") + bl_label = "View" @classmethod def poll(cls, context): @@ -2108,7 +2108,7 @@ class VIEW3D_PT_view3d_properties(Panel): class VIEW3D_PT_view3d_name(Panel): bl_space_type = 'VIEW_3D' bl_region_type = 'UI' - bl_label = _("Item") + bl_label = "Item" @classmethod def poll(cls, context): @@ -2133,7 +2133,7 @@ class VIEW3D_PT_view3d_name(Panel): class VIEW3D_PT_view3d_display(Panel): bl_space_type = 'VIEW_3D' bl_region_type = 'UI' - bl_label = _("Display") + bl_label = "Display" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -2205,7 +2205,7 @@ class VIEW3D_PT_view3d_display(Panel): class VIEW3D_PT_view3d_meshdisplay(Panel): bl_space_type = 'VIEW_3D' bl_region_type = 'UI' - bl_label = _("Mesh Display") + bl_label = "Mesh Display" @classmethod def poll(cls, context): @@ -2242,7 +2242,7 @@ class VIEW3D_PT_view3d_meshdisplay(Panel): class VIEW3D_PT_view3d_curvedisplay(Panel): bl_space_type = 'VIEW_3D' bl_region_type = 'UI' - bl_label = _("Curve Display") + bl_label = "Curve Display" @classmethod def poll(cls, context): @@ -2264,7 +2264,7 @@ class VIEW3D_PT_view3d_curvedisplay(Panel): class VIEW3D_PT_background_image(Panel): bl_space_type = 'VIEW_3D' bl_region_type = 'UI' - bl_label = _("Background Images") + bl_label = "Background Images" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -2317,7 +2317,7 @@ class VIEW3D_PT_background_image(Panel): class VIEW3D_PT_transform_orientations(Panel): bl_space_type = 'VIEW_3D' bl_region_type = 'UI' - bl_label = _("Transform Orientations") + bl_label = "Transform Orientations" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -2345,7 +2345,7 @@ class VIEW3D_PT_transform_orientations(Panel): class VIEW3D_PT_etch_a_ton(Panel): bl_space_type = 'VIEW_3D' bl_region_type = 'UI' - bl_label = _("Skeleton Sketching") + bl_label = "Skeleton Sketching" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -2390,7 +2390,7 @@ class VIEW3D_PT_etch_a_ton(Panel): class VIEW3D_PT_context_properties(Panel): bl_space_type = 'VIEW_3D' bl_region_type = 'UI' - bl_label = _("Properties") + bl_label = "Properties" bl_options = {'DEFAULT_CLOSED'} def _active_context_member(context): diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index 16d4b9b7fe6..7ac2df7b5d5 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -68,7 +68,7 @@ def draw_gpencil_tools(context, layout): class VIEW3D_PT_tools_objectmode(View3DPanel, Panel): bl_context = "objectmode" - bl_label = _("Object Tools") + bl_label = "Object Tools" def draw(self, context): layout = self.layout |