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/space_console.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/space_console.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_console.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/release/scripts/startup/bl_ui/space_console.py b/release/scripts/startup/bl_ui/space_console.py index fae5f1d313d..bb0cf6eda2c 100644 --- a/release/scripts/startup/bl_ui/space_console.py +++ b/release/scripts/startup/bl_ui/space_console.py @@ -38,7 +38,7 @@ class CONSOLE_HT_header(Header): class CONSOLE_MT_console(Menu): - bl_label = _("Console") + bl_label = "Console" def draw(self, context): layout = self.layout @@ -55,7 +55,7 @@ class CONSOLE_MT_console(Menu): class CONSOLE_MT_language(Menu): - bl_label = _("Languages...") + bl_label = "Languages..." def draw(self, context): import sys @@ -84,7 +84,7 @@ def add_scrollback(text, text_type): class ConsoleExec(Operator): '''Execute the current console line as a python expression''' bl_idname = "console.execute" - bl_label = _("Console Execute") + bl_label = "Console Execute" def execute(self, context): sc = context.space_data @@ -102,7 +102,7 @@ class ConsoleExec(Operator): class ConsoleAutocomplete(Operator): '''Evaluate the namespace up until the cursor and give a list of options or complete the name if there is only one''' bl_idname = "console.autocomplete" - bl_label = _("Console Autocomplete") + bl_label = "Console Autocomplete" def execute(self, context): sc = context.space_data @@ -119,7 +119,7 @@ class ConsoleAutocomplete(Operator): class ConsoleBanner(Operator): '''Print a message whem the terminal initializes''' bl_idname = "console.banner" - bl_label = _("Console Banner") + bl_label = "Console Banner" def execute(self, context): sc = context.space_data @@ -141,10 +141,10 @@ class ConsoleBanner(Operator): class ConsoleLanguage(Operator): '''Set the current language for this console''' bl_idname = "console.language" - bl_label = _("Console Language") + bl_label = "Console Language" language = StringProperty( - name=_("Language"), + name="Language", maxlen=32, ) |