From f4c56a879d946fb0a233307f72cd739e900f9f7c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 21 Sep 2011 15:18:38 +0000 Subject: remove use of gettext: _("...") style translation now its handled by rna. --- release/scripts/startup/bl_ui/properties_render.py | 143 ++++++++++----------- 1 file changed, 71 insertions(+), 72 deletions(-) (limited to 'release/scripts/startup/bl_ui/properties_render.py') diff --git a/release/scripts/startup/bl_ui/properties_render.py b/release/scripts/startup/bl_ui/properties_render.py index 1e9c15eedae..d2f6329bf40 100644 --- a/release/scripts/startup/bl_ui/properties_render.py +++ b/release/scripts/startup/bl_ui/properties_render.py @@ -19,7 +19,6 @@ # import bpy from bpy.types import Menu, Panel -from blf import gettext as _ class RENDER_MT_presets(Menu): @@ -65,10 +64,10 @@ class RENDER_PT_render(RenderButtonsPanel, Panel): rd = context.scene.render row = layout.row() - row.operator("render.render", text=_("Image"), icon='RENDER_STILL') - row.operator("render.render", text=_("Animation"), icon='RENDER_ANIMATION').animation = True + row.operator("render.render", text="Image", icon='RENDER_STILL') + row.operator("render.render", text="Animation", icon='RENDER_ANIMATION').animation = True - layout.prop(rd, "display_mode", text=_("Display")) + layout.prop(rd, "display_mode", text="Display") class RENDER_PT_layers(RenderButtonsPanel, Panel): @@ -98,25 +97,25 @@ class RENDER_PT_layers(RenderButtonsPanel, Panel): split = layout.split() col = split.column() - col.prop(scene, "layers", text=_("Scene")) + col.prop(scene, "layers", text="Scene") col.label(text="") - col.prop(rl, "light_override", text=_("Light")) - col.prop(rl, "material_override", text=_("Material")) + col.prop(rl, "light_override", text="Light") + col.prop(rl, "material_override", text="Material") col = split.column() - col.prop(rl, "layers", text=_("Layer")) - col.label(text=_("Mask Layers:")) + col.prop(rl, "layers", text="Layer") + col.label(text="Mask Layers:") col.prop(rl, "layers_zmask", text="") layout.separator() - layout.label(text=_("Include:")) + layout.label(text="Include:") split = layout.split() col = split.column() col.prop(rl, "use_zmask") row = col.row() - row.prop(rl, "invert_zmask", text=_("Negate")) + row.prop(rl, "invert_zmask", text="Negate") row.active = rl.use_zmask col.prop(rl, "use_all_z") @@ -135,7 +134,7 @@ class RENDER_PT_layers(RenderButtonsPanel, Panel): split = layout.split() col = split.column() - col.label(text=_("Passes:")) + col.label(text="Passes:") col.prop(rl, "use_pass_combined") col.prop(rl, "use_pass_z") col.prop(rl, "use_pass_vector") @@ -194,29 +193,29 @@ class RENDER_PT_dimensions(RenderButtonsPanel, Panel): col = split.column() sub = col.column(align=True) - sub.label(text=_("Resolution:")) + sub.label(text="Resolution:") sub.prop(rd, "resolution_x", text="X") sub.prop(rd, "resolution_y", text="Y") sub.prop(rd, "resolution_percentage", text="") - sub.label(text=_("Aspect Ratio:")) + sub.label(text="Aspect Ratio:") sub.prop(rd, "pixel_aspect_x", text="X") sub.prop(rd, "pixel_aspect_y", text="Y") row = col.row() - row.prop(rd, "use_border", text=_("Border")) + row.prop(rd, "use_border", text="Border") sub = row.row() sub.active = rd.use_border - sub.prop(rd, "use_crop_to_border", text=_("Crop")) + sub.prop(rd, "use_crop_to_border", text="Crop") col = split.column() sub = col.column(align=True) - sub.label(text=_("Frame Range:")) + sub.label(text="Frame Range:") sub.prop(scene, "frame_start") sub.prop(scene, "frame_end") sub.prop(scene, "frame_step") - sub.label(text=_("Frame Rate:")) + sub.label(text="Frame Rate:") if rd.fps_base == 1: fps_rate = round(rd.fps / rd.fps_base) else: @@ -236,10 +235,10 @@ class RENDER_PT_dimensions(RenderButtonsPanel, Panel): sub.prop(rd, "fps") sub.prop(rd, "fps_base", text="/") subrow = sub.row(align=True) - subrow.label(text=_("Time Remapping:")) + subrow.label(text="Time Remapping:") subrow = sub.row(align=True) - subrow.prop(rd, "frame_map_old", text=_("Old")) - subrow.prop(rd, "frame_map_new", text=_("New")) + subrow.prop(rd, "frame_map_old", text="Old") + subrow.prop(rd, "frame_map_new", text="New") class RENDER_PT_antialiasing(RenderButtonsPanel, Panel): @@ -267,7 +266,7 @@ class RENDER_PT_antialiasing(RenderButtonsPanel, Panel): col = split.column() col.prop(rd, "pixel_filter_type", text="") - col.prop(rd, "filter_size", text=_("Size")) + col.prop(rd, "filter_size", text="Size") class RENDER_PT_motion_blur(RenderButtonsPanel, Panel): @@ -309,15 +308,15 @@ class RENDER_PT_shading(RenderButtonsPanel, Panel): split = layout.split() col = split.column() - col.prop(rd, "use_textures", text=_("Textures")) - col.prop(rd, "use_shadows", text=_("Shadows")) - col.prop(rd, "use_sss", text=_("Subsurface Scattering")) - col.prop(rd, "use_envmaps", text=_("Environment Map")) + col.prop(rd, "use_textures", text="Textures") + col.prop(rd, "use_shadows", text="Shadows") + col.prop(rd, "use_sss", text="Subsurface Scattering") + col.prop(rd, "use_envmaps", text="Environment Map") col = split.column() - col.prop(rd, "use_raytrace", text=_("Ray Tracing")) + col.prop(rd, "use_raytrace", text="Ray Tracing") col.prop(rd, "use_color_management") - col.prop(rd, "alpha_mode", text=_("Alpha")) + col.prop(rd, "alpha_mode", text="Alpha") class RENDER_PT_performance(RenderButtonsPanel, Panel): @@ -333,18 +332,18 @@ class RENDER_PT_performance(RenderButtonsPanel, 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") col = split.column() - col.label(text=_("Memory:")) + col.label(text="Memory:") sub = col.column() sub.enabled = not (rd.use_border or rd.use_full_sample) sub.prop(rd, "use_save_buffers") @@ -354,13 +353,13 @@ class RENDER_PT_performance(RenderButtonsPanel, 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")) + sub.prop(rd, "octree_resolution", text="Resolution") else: - sub.prop(rd, "use_instances", text=_("Instances")) - sub.prop(rd, "use_local_coords", text=_("Local Coordinates")) + sub.prop(rd, "use_instances", text="Instances") + sub.prop(rd, "use_local_coords", text="Local Coordinates") class RENDER_PT_post_processing(RenderButtonsPanel, Panel): @@ -379,24 +378,24 @@ class RENDER_PT_post_processing(RenderButtonsPanel, Panel): col.prop(rd, "use_compositing") col.prop(rd, "use_sequencer") - split.prop(rd, "dither_intensity", text=_("Dither"), slider=True) + split.prop(rd, "dither_intensity", text="Dither", slider=True) layout.separator() split = layout.split() col = split.column() - col.prop(rd, "use_fields", text=_("Fields")) + col.prop(rd, "use_fields", text="Fields") sub = col.column() sub.active = rd.use_fields sub.row().prop(rd, "field_order", expand=True) - sub.prop(rd, "use_fields_still", text=_("Still")) + sub.prop(rd, "use_fields_still", text="Still") col = split.column() col.prop(rd, "use_edge_enhance") sub = col.column() sub.active = rd.use_edge_enhance - sub.prop(rd, "edge_threshold", text=_("Threshold"), slider=True) + sub.prop(rd, "edge_threshold", text="Threshold", slider=True) sub.prop(rd, "edge_color", text="") @@ -420,26 +419,26 @@ class RENDER_PT_stamp(RenderButtonsPanel, Panel): split = layout.split() col = split.column() - col.prop(rd, "use_stamp_time", text=_("Time")) - col.prop(rd, "use_stamp_date", text=_("Date")) - col.prop(rd, "use_stamp_render_time", text=_("RenderTime")) - col.prop(rd, "use_stamp_frame", text=_("Frame")) - col.prop(rd, "use_stamp_scene", text=_("Scene")) - col.prop(rd, "use_stamp_camera", text=_("Camera")) - col.prop(rd, "use_stamp_lens", text=_("Lens")) - col.prop(rd, "use_stamp_filename", text=_("Filename")) - col.prop(rd, "use_stamp_marker", text=_("Marker")) - col.prop(rd, "use_stamp_sequencer_strip", text=_("Seq. Strip")) + col.prop(rd, "use_stamp_time", text="Time") + col.prop(rd, "use_stamp_date", text="Date") + col.prop(rd, "use_stamp_render_time", text="RenderTime") + col.prop(rd, "use_stamp_frame", text="Frame") + col.prop(rd, "use_stamp_scene", text="Scene") + col.prop(rd, "use_stamp_camera", text="Camera") + col.prop(rd, "use_stamp_lens", text="Lens") + col.prop(rd, "use_stamp_filename", text="Filename") + col.prop(rd, "use_stamp_marker", text="Marker") + col.prop(rd, "use_stamp_sequencer_strip", text="Seq. Strip") col = split.column() col.active = rd.use_stamp col.prop(rd, "stamp_foreground", slider=True) col.prop(rd, "stamp_background", slider=True) col.separator() - col.prop(rd, "stamp_font_size", text=_("Font Size")) + col.prop(rd, "stamp_font_size", text="Font Size") row = layout.split(percentage=0.2) - row.prop(rd, "use_stamp_note", text=_("Note")) + row.prop(rd, "use_stamp_note", text="Note") sub = row.row() sub.active = rd.use_stamp_note sub.prop(rd, "stamp_note_text", text="") @@ -461,7 +460,7 @@ class RENDER_PT_output(RenderButtonsPanel, Panel): col = split.column() col.prop(rd, "file_format", text="") - col.row().prop(rd, "color_mode", text=_("Color"), expand=True) + col.row().prop(rd, "color_mode", text="Color", expand=True) col = split.column() col.prop(rd, "use_file_extension") @@ -472,11 +471,11 @@ class RENDER_PT_output(RenderButtonsPanel, Panel): layout.prop(rd, "file_quality", slider=True) if file_format == 'PNG': - layout.prop(rd, "file_quality", slider=True, text=_("Compression")) + layout.prop(rd, "file_quality", slider=True, text="Compression") if file_format in {'OPEN_EXR', 'MULTILAYER'}: row = layout.row() - row.prop(rd, "exr_codec", text=_("Codec")) + row.prop(rd, "exr_codec", text="Codec") if file_format == 'OPEN_EXR': row = layout.row() @@ -487,7 +486,7 @@ class RENDER_PT_output(RenderButtonsPanel, Panel): elif file_format == 'JPEG2000': split = layout.split() col = split.column() - col.label(text=_("Depth:")) + col.label(text="Depth:") col.row().prop(rd, "jpeg2k_depth", expand=True) col = split.column() @@ -500,13 +499,13 @@ class RENDER_PT_output(RenderButtonsPanel, Panel): split.label("FIXME: hard coded Non-Linear, Gamma:1.0") ''' col = split.column() - col.prop(rd, "use_cineon_log", text=_("Convert to Log")) + col.prop(rd, "use_cineon_log", text="Convert to Log") col = split.column(align=True) col.active = rd.use_cineon_log - col.prop(rd, "cineon_black", text=_("Black")) - col.prop(rd, "cineon_white", text=_("White")) - col.prop(rd, "cineon_gamma", text=_("Gamma")) + col.prop(rd, "cineon_black", text="Black") + col.prop(rd, "cineon_white", text="White") + col.prop(rd, "cineon_gamma", text="Gamma") ''' elif file_format == 'TIFF': @@ -518,11 +517,11 @@ class RENDER_PT_output(RenderButtonsPanel, Panel): elif file_format == 'QUICKTIME_QTKIT': split = layout.split() col = split.column() - col.prop(rd, "quicktime_codec_type", text=_("Video Codec")) - col.prop(rd, "quicktime_codec_spatial_quality", text=_("Quality")) + col.prop(rd, "quicktime_codec_type", text="Video Codec") + col.prop(rd, "quicktime_codec_spatial_quality", text="Quality") # Audio - col.prop(rd, "quicktime_audiocodec_type", text=_("Audio Codec")) + col.prop(rd, "quicktime_audiocodec_type", text="Audio Codec") if rd.quicktime_audiocodec_type != 'No audio': split = layout.split() if rd.quicktime_audiocodec_type == 'LPCM': @@ -560,7 +559,7 @@ class RENDER_PT_encoding(RenderButtonsPanel, Panel): rd = context.scene.render - layout.menu("RENDER_MT_ffmpeg_presets", text=_("Presets")) + layout.menu("RENDER_MT_ffmpeg_presets", text="Presets") split = layout.split() split.prop(rd, "ffmpeg_format") @@ -576,22 +575,22 @@ class RENDER_PT_encoding(RenderButtonsPanel, Panel): split = layout.split() col = split.column() - col.label(text=_("Rate:")) - col.prop(rd, "ffmpeg_minrate", text=_("Minimum")) - col.prop(rd, "ffmpeg_maxrate", text=_("Maximum")) - col.prop(rd, "ffmpeg_buffersize", text=_("Buffer")) + col.label(text="Rate:") + col.prop(rd, "ffmpeg_minrate", text="Minimum") + col.prop(rd, "ffmpeg_maxrate", text="Maximum") + col.prop(rd, "ffmpeg_buffersize", text="Buffer") col = split.column() col.prop(rd, "ffmpeg_autosplit") - col.label(text=_("Mux:")) - col.prop(rd, "ffmpeg_muxrate", text=_("Rate")) - col.prop(rd, "ffmpeg_packetsize", text=_("Packet Size")) + col.label(text="Mux:") + col.prop(rd, "ffmpeg_muxrate", text="Rate") + col.prop(rd, "ffmpeg_packetsize", text="Packet Size") layout.separator() # Audio: if rd.ffmpeg_format not in {'MP3'}: - layout.prop(rd, "ffmpeg_audio_codec", text=_("Audio Codec")) + layout.prop(rd, "ffmpeg_audio_codec", text="Audio Codec") row = layout.row() row.prop(rd, "ffmpeg_audio_bitrate") @@ -633,7 +632,7 @@ class RENDER_PT_bake(RenderButtonsPanel, Panel): col = split.column() col.prop(rd, "use_bake_clear") col.prop(rd, "bake_margin") - col.prop(rd, "bake_quad_split", text=_("Split")) + col.prop(rd, "bake_quad_split", text="Split") col = split.column() col.prop(rd, "use_bake_selected_to_active") -- cgit v1.2.3