Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2011-09-15 17:20:18 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2011-09-15 17:20:18 +0400
commit0eda51f2eabe24016efdc8f07825f1ba667cac33 (patch)
tree03d6f876da6b1256b8890b89db09b63952fa544f /release/scripts/startup/bl_ui/space_text.py
parent30293dc2ca8052ad0c7113c77365feca590f4d05 (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/space_text.py')
-rw-r--r--release/scripts/startup/bl_ui/space_text.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/release/scripts/startup/bl_ui/space_text.py b/release/scripts/startup/bl_ui/space_text.py
index 03baf8f34ca..cd72d42857b 100644
--- a/release/scripts/startup/bl_ui/space_text.py
+++ b/release/scripts/startup/bl_ui/space_text.py
@@ -79,7 +79,7 @@ class TEXT_HT_header(Header):
class TEXT_PT_properties(Panel):
bl_space_type = 'TEXT_EDITOR'
bl_region_type = 'UI'
- bl_label = _("Properties")
+ bl_label = "Properties"
def draw(self, context):
layout = self.layout
@@ -110,7 +110,7 @@ class TEXT_PT_properties(Panel):
class TEXT_PT_find(Panel):
bl_space_type = 'TEXT_EDITOR'
bl_region_type = 'UI'
- bl_label = _("Find")
+ bl_label = "Find"
def draw(self, context):
layout = self.layout
@@ -142,7 +142,7 @@ class TEXT_PT_find(Panel):
class TEXT_MT_view(Menu):
- bl_label = _("View")
+ bl_label = "View"
def draw(self, context):
layout = self.layout
@@ -165,7 +165,7 @@ class TEXT_MT_view(Menu):
class TEXT_MT_text(Menu):
- bl_label = _("Text")
+ bl_label = "Text"
def draw(self, context):
layout = self.layout
@@ -193,7 +193,7 @@ class TEXT_MT_text(Menu):
class TEXT_MT_templates(Menu):
- bl_label = _("Templates")
+ bl_label = "Templates"
def draw(self, context):
self.path_menu(bpy.utils.script_paths("templates"),
@@ -203,7 +203,7 @@ class TEXT_MT_templates(Menu):
class TEXT_MT_edit_select(Menu):
- bl_label = _("Select")
+ bl_label = "Select"
def draw(self, context):
layout = self.layout
@@ -213,7 +213,7 @@ class TEXT_MT_edit_select(Menu):
class TEXT_MT_edit_markers(Menu):
- bl_label = _("Markers")
+ bl_label = "Markers"
def draw(self, context):
layout = self.layout
@@ -224,7 +224,7 @@ class TEXT_MT_edit_markers(Menu):
class TEXT_MT_format(Menu):
- bl_label = _("Format")
+ bl_label = "Format"
def draw(self, context):
layout = self.layout
@@ -243,7 +243,7 @@ class TEXT_MT_format(Menu):
class TEXT_MT_edit_to3d(Menu):
- bl_label = _("Text To 3D Object")
+ bl_label = "Text To 3D Object"
def draw(self, context):
layout = self.layout
@@ -257,7 +257,7 @@ class TEXT_MT_edit_to3d(Menu):
class TEXT_MT_edit(Menu):
- bl_label = _("Edit")
+ bl_label = "Edit"
@classmethod
def poll(cls, context):