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.
This commit is contained in:
@@ -116,7 +116,7 @@ class DATA_PT_shape_curve(CurveButtonsPanel, Panel):
|
||||
|
||||
|
||||
class DATA_PT_curve_texture_space(CurveButtonsPanel, Panel):
|
||||
bl_label = _("Texture Space")
|
||||
bl_label = "Texture Space"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
|
||||
|
||||
@@ -135,7 +135,7 @@ class DATA_PT_curve_texture_space(CurveButtonsPanel, Panel):
|
||||
|
||||
|
||||
class DATA_PT_geometry_curve(CurveButtonsPanel, Panel):
|
||||
bl_label = _("Geometry")
|
||||
bl_label = "Geometry"
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
@@ -168,7 +168,7 @@ class DATA_PT_geometry_curve(CurveButtonsPanel, Panel):
|
||||
|
||||
|
||||
class DATA_PT_pathanim(CurveButtonsPanelCurve, Panel):
|
||||
bl_label = _("Path Animation")
|
||||
bl_label = "Path Animation"
|
||||
|
||||
def draw_header(self, context):
|
||||
curve = context.curve
|
||||
@@ -199,7 +199,7 @@ class DATA_PT_pathanim(CurveButtonsPanelCurve, Panel):
|
||||
|
||||
|
||||
class DATA_PT_active_spline(CurveButtonsPanelActive, Panel):
|
||||
bl_label = _("Active Spline")
|
||||
bl_label = "Active Spline"
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
@@ -270,7 +270,7 @@ class DATA_PT_active_spline(CurveButtonsPanelActive, Panel):
|
||||
|
||||
|
||||
class DATA_PT_font(CurveButtonsPanel, Panel):
|
||||
bl_label = _("Font")
|
||||
bl_label = "Font"
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
@@ -334,7 +334,7 @@ class DATA_PT_font(CurveButtonsPanel, Panel):
|
||||
|
||||
|
||||
class DATA_PT_paragraph(CurveButtonsPanel, Panel):
|
||||
bl_label = _("Paragraph")
|
||||
bl_label = "Paragraph"
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
@@ -363,7 +363,7 @@ class DATA_PT_paragraph(CurveButtonsPanel, Panel):
|
||||
|
||||
|
||||
class DATA_PT_text_boxes(CurveButtonsPanel, Panel):
|
||||
bl_label = _("Text Boxes")
|
||||
bl_label = "Text Boxes"
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
Reference in New Issue
Block a user