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_game.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_game.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_game.py | 22 |
1 files changed, 11 insertions, 11 deletions
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 |