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_object.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_object.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_object.py | 16 |
1 files changed, 8 insertions, 8 deletions
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): |