diff options
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_operators/sequencer.py | 9 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/properties_render.py | 6 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_console.py | 16 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_text.py | 35 |
4 files changed, 34 insertions, 32 deletions
diff --git a/release/scripts/startup/bl_operators/sequencer.py b/release/scripts/startup/bl_operators/sequencer.py index 16b72406c49..5ea06169cae 100644 --- a/release/scripts/startup/bl_operators/sequencer.py +++ b/release/scripts/startup/bl_operators/sequencer.py @@ -21,13 +21,14 @@ import bpy from bpy.props import IntProperty +from blf import gettext as _ class SequencerCrossfadeSounds(bpy.types.Operator): '''Do crossfading volume animation of two selected sound strips.''' bl_idname = "sequencer.crossfade_sounds" - bl_label = "Crossfade sounds" + bl_label = _("Crossfade sounds") bl_options = {'REGISTER', 'UNDO'} @classmethod @@ -78,10 +79,10 @@ class SequencerCutMulticam(bpy.types.Operator): '''Cut multicam strip and select camera.''' bl_idname = "sequencer.cut_multicam" - bl_label = "Cut multicam" + bl_label = _("Cut multicam") bl_options = {'REGISTER', 'UNDO'} - camera = IntProperty(name="Camera", + camera = IntProperty(name=_("Camera"), default=1, min=1, max=32, soft_min=1, soft_max=32) @classmethod @@ -116,7 +117,7 @@ class SequencerDeinterlaceSelectedMovies(bpy.types.Operator): '''Deinterlace all selected movie sources.''' bl_idname = "sequencer.deinterlace_selected_movies" - bl_label = "Deinterlace Movies" + bl_label = _("Deinterlace Movies") bl_options = {'REGISTER', 'UNDO'} @classmethod diff --git a/release/scripts/startup/bl_ui/properties_render.py b/release/scripts/startup/bl_ui/properties_render.py index c6d77b6424f..b6904d9f98a 100644 --- a/release/scripts/startup/bl_ui/properties_render.py +++ b/release/scripts/startup/bl_ui/properties_render.py @@ -331,13 +331,13 @@ class RENDER_PT_performance(RenderButtonsPanel, bpy.types.Panel): split = layout.split() col = split.column() - col.label(text="Threads:") + col.label(text=_("Threads:")) col.row().prop(rd, "threads_mode", expand=True) sub = col.column() sub.enabled = rd.threads_mode == 'FIXED' sub.prop(rd, "threads") sub = col.column(align=True) - sub.label(text="Tiles:") + sub.label(text=_("Tiles:")) sub.prop(rd, "parts_x", text="X") sub.prop(rd, "parts_y", text="Y") @@ -352,7 +352,7 @@ class RENDER_PT_performance(RenderButtonsPanel, bpy.types.Panel): sub.prop(rd, "use_free_unused_nodes") sub = col.column() sub.active = rd.use_raytrace - sub.label(text="Acceleration structure:") + sub.label(text=_("Acceleration structure:")) sub.prop(rd, "raytrace_method", text="") if rd.raytrace_method == 'OCTREE': sub.prop(rd, "octree_resolution", text=_("Resolution")) diff --git a/release/scripts/startup/bl_ui/space_console.py b/release/scripts/startup/bl_ui/space_console.py index da6c102100b..de83e7bab1f 100644 --- a/release/scripts/startup/bl_ui/space_console.py +++ b/release/scripts/startup/bl_ui/space_console.py @@ -19,7 +19,7 @@ # <pep8 compliant> import bpy from bpy.props import StringProperty - +from blf import gettext as _ class CONSOLE_HT_header(bpy.types.Header): bl_space_type = 'CONSOLE' @@ -35,11 +35,11 @@ class CONSOLE_HT_header(bpy.types.Header): sub.menu("CONSOLE_MT_console") row = layout.row(align=True) - row.operator("console.autocomplete", text="Autocomplete") + row.operator("console.autocomplete", text=_("Autocomplete")) class CONSOLE_MT_console(bpy.types.Menu): - bl_label = "Console" + bl_label = _("Console") def draw(self, context): layout = self.layout @@ -56,7 +56,7 @@ class CONSOLE_MT_console(bpy.types.Menu): class CONSOLE_MT_language(bpy.types.Menu): - bl_label = "Languages..." + bl_label = _("Languages...") def draw(self, context): import sys @@ -85,7 +85,7 @@ def add_scrollback(text, text_type): class ConsoleExec(bpy.types.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 @@ -103,7 +103,7 @@ class ConsoleExec(bpy.types.Operator): class ConsoleAutocomplete(bpy.types.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 @@ -120,7 +120,7 @@ class ConsoleAutocomplete(bpy.types.Operator): class ConsoleBanner(bpy.types.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 @@ -142,7 +142,7 @@ class ConsoleBanner(bpy.types.Operator): class ConsoleLanguage(bpy.types.Operator): '''Set the current language for this console''' bl_idname = "console.language" - bl_label = "Console Language" + bl_label = _("Console Language") language = StringProperty(name="Language", maxlen=32, default="") def execute(self, context): diff --git a/release/scripts/startup/bl_ui/space_text.py b/release/scripts/startup/bl_ui/space_text.py index 0fc8d937f66..0c3da2f5e1b 100644 --- a/release/scripts/startup/bl_ui/space_text.py +++ b/release/scripts/startup/bl_ui/space_text.py @@ -18,6 +18,7 @@ # <pep8 compliant> import bpy +from blf import gettext as _ class TEXT_HT_header(bpy.types.Header): @@ -73,7 +74,7 @@ class TEXT_HT_header(bpy.types.Header): class TEXT_PT_properties(bpy.types.Panel): bl_space_type = 'TEXT_EDITOR' bl_region_type = 'UI' - bl_label = "Properties" + bl_label = _("Properties") def draw(self, context): layout = self.layout @@ -104,7 +105,7 @@ class TEXT_PT_properties(bpy.types.Panel): class TEXT_PT_find(bpy.types.Panel): bl_space_type = 'TEXT_EDITOR' bl_region_type = 'UI' - bl_label = "Find" + bl_label = _("Find") def draw(self, context): layout = self.layout @@ -131,12 +132,12 @@ class TEXT_PT_find(bpy.types.Panel): # settings layout.prop(st, "use_match_case") row = layout.row() - row.prop(st, "use_find_wrap", text="Wrap") - row.prop(st, "use_find_all", text="All") + row.prop(st, "use_find_wrap", text=_("Wrap")) + row.prop(st, "use_find_all", text=_("All")) class TEXT_MT_view(bpy.types.Menu): - bl_label = "View" + bl_label = _("View") def draw(self, context): layout = self.layout @@ -150,12 +151,12 @@ class TEXT_MT_view(bpy.types.Menu): layout.separator() - layout.operator("text.move", text="Top of File").type = 'FILE_TOP' - layout.operator("text.move", text="Bottom of File").type = 'FILE_BOTTOM' + layout.operator("text.move", text=_("Top of File")).type = 'FILE_TOP' + layout.operator("text.move", text=_("Bottom of File")).type = 'FILE_BOTTOM' class TEXT_MT_text(bpy.types.Menu): - bl_label = "Text" + bl_label = _("Text") def draw(self, context): layout = self.layout @@ -194,14 +195,14 @@ class TEXT_MT_templates(bpy.types.Menu): ''' Creates the menu items by scanning scripts/templates ''' - bl_label = "Script Templates" + bl_label = _("Script Templates") def draw(self, context): self.path_menu(bpy.utils.script_paths("templates"), "text.open", {"internal": True}) class TEXT_MT_edit_select(bpy.types.Menu): - bl_label = "Select" + bl_label = _("Select") def draw(self, context): layout = self.layout @@ -211,7 +212,7 @@ class TEXT_MT_edit_select(bpy.types.Menu): class TEXT_MT_edit_markers(bpy.types.Menu): - bl_label = "Markers" + bl_label = _("Markers") def draw(self, context): layout = self.layout @@ -222,7 +223,7 @@ class TEXT_MT_edit_markers(bpy.types.Menu): class TEXT_MT_format(bpy.types.Menu): - bl_label = "Format" + bl_label = _("Format") def draw(self, context): layout = self.layout @@ -241,17 +242,17 @@ class TEXT_MT_format(bpy.types.Menu): class TEXT_MT_edit_to3d(bpy.types.Menu): - bl_label = "Text To 3D Object" + bl_label = _("Text To 3D Object") def draw(self, context): layout = self.layout - layout.operator("text.to_3d_object", text="One Object").split_lines = False - layout.operator("text.to_3d_object", text="One Object Per Line").split_lines = True + layout.operator("text.to_3d_object", text=_("One Object")).split_lines = False + layout.operator("text.to_3d_object", text=_("One Object Per Line")).split_lines = True class TEXT_MT_edit(bpy.types.Menu): - bl_label = "Edit" + bl_label = _("Edit") @classmethod def poll(cls, context): @@ -277,7 +278,7 @@ class TEXT_MT_edit(bpy.types.Menu): layout.separator() layout.operator("text.jump") - layout.operator("text.properties", text="Find...") + layout.operator("text.properties", text=_("Find...")) layout.separator() |