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/properties_render.py | |
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/properties_render.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_render.py | 36 |
1 files changed, 18 insertions, 18 deletions
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'} |