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:
@@ -140,7 +140,7 @@ class DOPESHEET_HT_header(Header):
|
||||
|
||||
|
||||
class DOPESHEET_MT_view(Menu):
|
||||
bl_label = _("View")
|
||||
bl_label = "View"
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
@@ -174,7 +174,7 @@ class DOPESHEET_MT_view(Menu):
|
||||
|
||||
|
||||
class DOPESHEET_MT_select(Menu):
|
||||
bl_label = _("Select")
|
||||
bl_label = "Select"
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
@@ -209,7 +209,7 @@ class DOPESHEET_MT_select(Menu):
|
||||
|
||||
|
||||
class DOPESHEET_MT_marker(Menu):
|
||||
bl_label = _("Marker")
|
||||
bl_label = "Marker"
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
@@ -239,7 +239,7 @@ class DOPESHEET_MT_marker(Menu):
|
||||
# Keyframe Editing
|
||||
|
||||
class DOPESHEET_MT_channel(Menu):
|
||||
bl_label = _("Channel")
|
||||
bl_label = "Channel"
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
@@ -269,7 +269,7 @@ class DOPESHEET_MT_channel(Menu):
|
||||
|
||||
|
||||
class DOPESHEET_MT_key(Menu):
|
||||
bl_label = _("Key")
|
||||
bl_label = "Key"
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
@@ -301,7 +301,7 @@ class DOPESHEET_MT_key(Menu):
|
||||
|
||||
|
||||
class DOPESHEET_MT_key_transform(Menu):
|
||||
bl_label = _("Transform")
|
||||
bl_label = "Transform"
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
@@ -316,7 +316,7 @@ class DOPESHEET_MT_key_transform(Menu):
|
||||
# Grease Pencil Editing
|
||||
|
||||
class DOPESHEET_MT_gpencil_channel(Menu):
|
||||
bl_label = _("Channel")
|
||||
bl_label = "Channel"
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
@@ -343,7 +343,7 @@ class DOPESHEET_MT_gpencil_channel(Menu):
|
||||
|
||||
|
||||
class DOPESHEET_MT_gpencil_frame(Menu):
|
||||
bl_label = _("Frame")
|
||||
bl_label = "Frame"
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
Reference in New Issue
Block a user