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:
-rwxr-xr-xpo/POTFILES.in14
-rw-r--r--release/scripts/startup/bl_operators/sequencer.py9
-rw-r--r--release/scripts/startup/bl_ui/properties_render.py6
-rw-r--r--release/scripts/startup/bl_ui/space_console.py16
-rw-r--r--release/scripts/startup/bl_ui/space_text.py35
-rw-r--r--source/blender/editors/space_action/action_edit.c134
-rw-r--r--source/blender/editors/space_action/action_ops.c4
-rw-r--r--source/blender/editors/space_action/action_select.c50
-rw-r--r--source/blender/editors/space_console/console_ops.c52
-rw-r--r--source/blender/editors/space_file/file_ops.c2
-rw-r--r--source/blender/editors/space_image/image_buttons.c10
-rw-r--r--source/blender/editors/space_image/image_ops.c68
-rw-r--r--source/blender/editors/space_logic/logic_buttons.c8
-rw-r--r--source/blender/editors/space_nla/nla_buttons.c6
-rw-r--r--source/blender/editors/space_nla/nla_channels.c12
-rw-r--r--source/blender/editors/space_nla/nla_edit.c100
-rw-r--r--source/blender/editors/space_nla/nla_select.c24
-rw-r--r--source/blender/editors/space_node/node_buttons.c6
-rw-r--r--source/blender/editors/space_node/node_edit.c102
-rw-r--r--source/blender/editors/space_node/node_ops.c6
-rw-r--r--source/blender/editors/space_node/node_select.c32
-rw-r--r--source/blender/editors/space_node/node_state.c8
-rw-r--r--source/blender/editors/space_outliner/outliner.c96
-rw-r--r--source/blender/editors/space_script/script_edit.c2
-rw-r--r--source/blender/editors/space_sequencer/sequencer_buttons.c6
-rw-r--r--source/blender/editors/space_sequencer/sequencer_edit.c166
-rw-r--r--source/blender/editors/space_sequencer/sequencer_select.c36
-rw-r--r--source/blender/editors/space_text/text_header.c6
-rw-r--r--source/blender/editors/space_text/text_ops.c164
-rw-r--r--source/blender/editors/space_time/time_ops.c8
-rw-r--r--source/blender/editors/uvedit/uvedit_ops.c70
-rw-r--r--source/blender/editors/uvedit/uvedit_unwrap_ops.c42
-rw-r--r--source/blender/makesrna/intern/rna_access.c21
-rw-r--r--source/blender/makesrna/intern/rna_color.c16
-rw-r--r--source/blender/makesrna/intern/rna_scene.c370
35 files changed, 869 insertions, 838 deletions
diff --git a/po/POTFILES.in b/po/POTFILES.in
index c6fa8843ca3..b32756db7fe 100755
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -4,13 +4,16 @@ release/scripts/startup/bl_operators/object_align.py
release/scripts/startup/bl_operators/object_randomize_transform.py
release/scripts/startup/bl_operators/presets.py
release/scripts/startup/bl_operators/screen_play_rendered_anim.py
+release/scripts/startup/bl_operators/sequencer.py
release/scripts/startup/bl_operators/wm.py
release/scripts/startup/bl_ui/properties_render.py
release/scripts/startup/bl_ui/properties_texture.py
+release/scripts/startup/bl_ui/space_console.py
release/scripts/startup/bl_ui/space_info.py
release/scripts/startup/bl_ui/space_outliner.py
+release/scripts/startup/bl_ui/space_text.py
release/scripts/startup/bl_ui/space_time.py
release/scripts/startup/bl_ui/space_userpref.py
release/scripts/startup/bl_ui/space_userpref_keymap.py
@@ -31,7 +34,6 @@ source/blender/editors/armature/poselib.c
source/blender/editors/armature/poseobject.c
source/blender/editors/armature/poseSlide.c
-
source/blender/editors/curve/editcurve.c
source/blender/editors/curve/editfont.c
@@ -85,7 +87,10 @@ source/blender/editors/sculpt_paint/sculpt.c
source/blender/editors/sound/sound_ops.c
+source/blender/editors/space_action/action_edit.c
+source/blender/editors/space_action/action_ops.c
source/blender/editors/space_action/action_select.c
+
source/blender/editors/space_buttons/buttons_ops.c
source/blender/editors/space_console/console_ops.c
@@ -98,6 +103,7 @@ source/blender/editors/space_graph/graph_edit.c
source/blender/editors/space_graph/graph_ops.c
source/blender/editors/space_graph/graph_select.c
+source/blender/editors/space_image/image_buttons.c
source/blender/editors/space_image/image_ops.c
source/blender/editors/space_info/info_ops.c
@@ -106,11 +112,14 @@ source/blender/editors/space_info/space_info.c
source/blender/editors/space_logic/logic_buttons.c
+source/blender/editors/space_nla/nla_buttons.c
source/blender/editors/space_nla/nla_channels.c
source/blender/editors/space_nla/nla_edit.c
source/blender/editors/space_nla/nla_select.c
+source/blender/editors/space_node/node_buttons.c
source/blender/editors/space_node/node_edit.c
+source/blender/editors/space_node/node_ops.c
source/blender/editors/space_node/node_select.c
source/blender/editors/space_node/node_state.c
@@ -118,9 +127,11 @@ source/blender/editors/space_outliner/outliner.c
source/blender/editors/space_script/script_edit.c
source/blender/editors/space_sequencer/sequencer_add.c
+source/blender/editors/space_sequencer/sequencer_buttons.c
source/blender/editors/space_sequencer/sequencer_edit.c
source/blender/editors/space_sequencer/sequencer_select.c
+source/blender/editors/space_text/text_header.c
source/blender/editors/space_text/text_ops.c
source/blender/editors/space_time/time_ops.c
@@ -142,6 +153,7 @@ source/blender/editors/util/undo.c
source/blender/editors/uvedit/uvedit_ops.c
source/blender/editors/uvedit/uvedit_unwrap_ops.c
+source/blender/makesrna/intern/rna_color.c
source/blender/makesrna/intern/rna_curve.c
source/blender/makesrna/intern/rna_ID.c
source/blender/makesrna/intern/rna_object.c
diff --git a/release/scripts/startup/bl_operators/sequencer.py b/release/scripts/startup/bl_operators/sequencer.py
index 16b72406c49..5ea06169cae 100644
--- a/release/scripts/startup/bl_operators/sequencer.py
+++ b/release/scripts/startup/bl_operators/sequencer.py
@@ -21,13 +21,14 @@
import bpy
from bpy.props import IntProperty
+from blf import gettext as _
class SequencerCrossfadeSounds(bpy.types.Operator):
'''Do crossfading volume animation of two selected sound strips.'''
bl_idname = "sequencer.crossfade_sounds"
- bl_label = "Crossfade sounds"
+ bl_label = _("Crossfade sounds")
bl_options = {'REGISTER', 'UNDO'}
@classmethod
@@ -78,10 +79,10 @@ class SequencerCutMulticam(bpy.types.Operator):
'''Cut multicam strip and select camera.'''
bl_idname = "sequencer.cut_multicam"
- bl_label = "Cut multicam"
+ bl_label = _("Cut multicam")
bl_options = {'REGISTER', 'UNDO'}
- camera = IntProperty(name="Camera",
+ camera = IntProperty(name=_("Camera"),
default=1, min=1, max=32, soft_min=1, soft_max=32)
@classmethod
@@ -116,7 +117,7 @@ class SequencerDeinterlaceSelectedMovies(bpy.types.Operator):
'''Deinterlace all selected movie sources.'''
bl_idname = "sequencer.deinterlace_selected_movies"
- bl_label = "Deinterlace Movies"
+ bl_label = _("Deinterlace Movies")
bl_options = {'REGISTER', 'UNDO'}
@classmethod
diff --git a/release/scripts/startup/bl_ui/properties_render.py b/release/scripts/startup/bl_ui/properties_render.py
index c6d77b6424f..b6904d9f98a 100644
--- a/release/scripts/startup/bl_ui/properties_render.py
+++ b/release/scripts/startup/bl_ui/properties_render.py
@@ -331,13 +331,13 @@ class RENDER_PT_performance(RenderButtonsPanel, bpy.types.Panel):
split = layout.split()
col = split.column()
- col.label(text="Threads:")
+ col.label(text=_("Threads:"))
col.row().prop(rd, "threads_mode", expand=True)
sub = col.column()
sub.enabled = rd.threads_mode == 'FIXED'
sub.prop(rd, "threads")
sub = col.column(align=True)
- sub.label(text="Tiles:")
+ sub.label(text=_("Tiles:"))
sub.prop(rd, "parts_x", text="X")
sub.prop(rd, "parts_y", text="Y")
@@ -352,7 +352,7 @@ class RENDER_PT_performance(RenderButtonsPanel, bpy.types.Panel):
sub.prop(rd, "use_free_unused_nodes")
sub = col.column()
sub.active = rd.use_raytrace
- sub.label(text="Acceleration structure:")
+ sub.label(text=_("Acceleration structure:"))
sub.prop(rd, "raytrace_method", text="")
if rd.raytrace_method == 'OCTREE':
sub.prop(rd, "octree_resolution", text=_("Resolution"))
diff --git a/release/scripts/startup/bl_ui/space_console.py b/release/scripts/startup/bl_ui/space_console.py
index da6c102100b..de83e7bab1f 100644
--- a/release/scripts/startup/bl_ui/space_console.py
+++ b/release/scripts/startup/bl_ui/space_console.py
@@ -19,7 +19,7 @@
# <pep8 compliant>
import bpy
from bpy.props import StringProperty
-
+from blf import gettext as _
class CONSOLE_HT_header(bpy.types.Header):
bl_space_type = 'CONSOLE'
@@ -35,11 +35,11 @@ class CONSOLE_HT_header(bpy.types.Header):
sub.menu("CONSOLE_MT_console")
row = layout.row(align=True)
- row.operator("console.autocomplete", text="Autocomplete")
+ row.operator("console.autocomplete", text=_("Autocomplete"))
class CONSOLE_MT_console(bpy.types.Menu):
- bl_label = "Console"
+ bl_label = _("Console")
def draw(self, context):
layout = self.layout
@@ -56,7 +56,7 @@ class CONSOLE_MT_console(bpy.types.Menu):
class CONSOLE_MT_language(bpy.types.Menu):
- bl_label = "Languages..."
+ bl_label = _("Languages...")
def draw(self, context):
import sys
@@ -85,7 +85,7 @@ def add_scrollback(text, text_type):
class ConsoleExec(bpy.types.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
@@ -103,7 +103,7 @@ class ConsoleExec(bpy.types.Operator):
class ConsoleAutocomplete(bpy.types.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
@@ -120,7 +120,7 @@ class ConsoleAutocomplete(bpy.types.Operator):
class ConsoleBanner(bpy.types.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
@@ -142,7 +142,7 @@ class ConsoleBanner(bpy.types.Operator):
class ConsoleLanguage(bpy.types.Operator):
'''Set the current language for this console'''
bl_idname = "console.language"
- bl_label = "Console Language"
+ bl_label = _("Console Language")
language = StringProperty(name="Language", maxlen=32, default="")
def execute(self, context):
diff --git a/release/scripts/startup/bl_ui/space_text.py b/release/scripts/startup/bl_ui/space_text.py
index 0fc8d937f66..0c3da2f5e1b 100644
--- a/release/scripts/startup/bl_ui/space_text.py
+++ b/release/scripts/startup/bl_ui/space_text.py
@@ -18,6 +18,7 @@
# <pep8 compliant>
import bpy
+from blf import gettext as _
class TEXT_HT_header(bpy.types.Header):
@@ -73,7 +74,7 @@ class TEXT_HT_header(bpy.types.Header):
class TEXT_PT_properties(bpy.types.Panel):
bl_space_type = 'TEXT_EDITOR'
bl_region_type = 'UI'
- bl_label = "Properties"
+ bl_label = _("Properties")
def draw(self, context):
layout = self.layout
@@ -104,7 +105,7 @@ class TEXT_PT_properties(bpy.types.Panel):
class TEXT_PT_find(bpy.types.Panel):
bl_space_type = 'TEXT_EDITOR'
bl_region_type = 'UI'
- bl_label = "Find"
+ bl_label = _("Find")
def draw(self, context):
layout = self.layout
@@ -131,12 +132,12 @@ class TEXT_PT_find(bpy.types.Panel):
# settings
layout.prop(st, "use_match_case")
row = layout.row()
- row.prop(st, "use_find_wrap", text="Wrap")
- row.prop(st, "use_find_all", text="All")
+ row.prop(st, "use_find_wrap", text=_("Wrap"))
+ row.prop(st, "use_find_all", text=_("All"))
class TEXT_MT_view(bpy.types.Menu):
- bl_label = "View"
+ bl_label = _("View")
def draw(self, context):
layout = self.layout
@@ -150,12 +151,12 @@ class TEXT_MT_view(bpy.types.Menu):
layout.separator()
- layout.operator("text.move", text="Top of File").type = 'FILE_TOP'
- layout.operator("text.move", text="Bottom of File").type = 'FILE_BOTTOM'
+ layout.operator("text.move", text=_("Top of File")).type = 'FILE_TOP'
+ layout.operator("text.move", text=_("Bottom of File")).type = 'FILE_BOTTOM'
class TEXT_MT_text(bpy.types.Menu):
- bl_label = "Text"
+ bl_label = _("Text")
def draw(self, context):
layout = self.layout
@@ -194,14 +195,14 @@ class TEXT_MT_templates(bpy.types.Menu):
'''
Creates the menu items by scanning scripts/templates
'''
- bl_label = "Script Templates"
+ bl_label = _("Script Templates")
def draw(self, context):
self.path_menu(bpy.utils.script_paths("templates"), "text.open", {"internal": True})
class TEXT_MT_edit_select(bpy.types.Menu):
- bl_label = "Select"
+ bl_label = _("Select")
def draw(self, context):
layout = self.layout
@@ -211,7 +212,7 @@ class TEXT_MT_edit_select(bpy.types.Menu):
class TEXT_MT_edit_markers(bpy.types.Menu):
- bl_label = "Markers"
+ bl_label = _("Markers")
def draw(self, context):
layout = self.layout
@@ -222,7 +223,7 @@ class TEXT_MT_edit_markers(bpy.types.Menu):
class TEXT_MT_format(bpy.types.Menu):
- bl_label = "Format"
+ bl_label = _("Format")
def draw(self, context):
layout = self.layout
@@ -241,17 +242,17 @@ class TEXT_MT_format(bpy.types.Menu):
class TEXT_MT_edit_to3d(bpy.types.Menu):
- bl_label = "Text To 3D Object"
+ bl_label = _("Text To 3D Object")
def draw(self, context):
layout = self.layout
- layout.operator("text.to_3d_object", text="One Object").split_lines = False
- layout.operator("text.to_3d_object", text="One Object Per Line").split_lines = True
+ layout.operator("text.to_3d_object", text=_("One Object")).split_lines = False
+ layout.operator("text.to_3d_object", text=_("One Object Per Line")).split_lines = True
class TEXT_MT_edit(bpy.types.Menu):
- bl_label = "Edit"
+ bl_label = _("Edit")
@classmethod
def poll(cls, context):
@@ -277,7 +278,7 @@ class TEXT_MT_edit(bpy.types.Menu):
layout.separator()
layout.operator("text.jump")
- layout.operator("text.properties", text="Find...")
+ layout.operator("text.properties", text=_("Find..."))
layout.separator()
diff --git a/source/blender/editors/space_action/action_edit.c b/source/blender/editors/space_action/action_edit.c
index b30db6680e5..a34ee3f33d2 100644
--- a/source/blender/editors/space_action/action_edit.c
+++ b/source/blender/editors/space_action/action_edit.c
@@ -42,6 +42,8 @@
#include "BLI_math.h"
#include "BLI_utildefines.h"
+#include "BLF_api.h"
+
#include "DNA_anim_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_object_types.h"
@@ -126,9 +128,9 @@ static int act_new_exec(bContext *C, wmOperator *UNUSED(op))
void ACTION_OT_new (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "New Action";
+ ot->name= _("New Action");
ot->idname= "ACTION_OT_new";
- ot->description= "Create new action";
+ ot->description= _("Create new action");
/* api callbacks */
ot->exec= act_new_exec;
@@ -209,9 +211,9 @@ static int act_markers_make_local_exec (bContext *C, wmOperator *UNUSED(op))
void ACTION_OT_markers_make_local (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Make Markers Local";
+ ot->name= _("Make Markers Local");
ot->idname= "ACTION_OT_markers_make_local";
- ot->description= "Move selected scene markers to the active Action as local 'pose' markers";
+ ot->description= _("Move selected scene markers to the active Action as local 'pose' markers");
/* callbacks */
ot->exec = act_markers_make_local_exec;
@@ -310,9 +312,9 @@ static int actkeys_previewrange_exec(bContext *C, wmOperator *UNUSED(op))
void ACTION_OT_previewrange_set (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Auto-Set Preview Range";
+ ot->name= _("Auto-Set Preview Range");
ot->idname= "ACTION_OT_previewrange_set";
- ot->description= "Set Preview Range based on extents of selected Keyframes";
+ ot->description= _("Set Preview Range based on extents of selected Keyframes");
/* api callbacks */
ot->exec= actkeys_previewrange_exec;
@@ -372,9 +374,9 @@ static int actkeys_viewsel_exec(bContext *C, wmOperator *UNUSED(op))
void ACTION_OT_view_all (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "View All";
+ ot->name= _("View All");
ot->idname= "ACTION_OT_view_all";
- ot->description= "Reset viewable area to show full keyframe range";
+ ot->description= _("Reset viewable area to show full keyframe range");
/* api callbacks */
ot->exec= actkeys_viewall_exec;
@@ -387,9 +389,9 @@ void ACTION_OT_view_all (wmOperatorType *ot)
void ACTION_OT_view_selected (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "View Selected";
+ ot->name= _("View Selected");
ot->idname= "ACTION_OT_view_selected";
- ot->description= "Reset viewable area to show selected keyframes range";
+ ot->description= _("Reset viewable area to show selected keyframes range");
/* api callbacks */
ot->exec= actkeys_viewsel_exec;
@@ -473,9 +475,9 @@ static int actkeys_copy_exec(bContext *C, wmOperator *op)
void ACTION_OT_copy (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Copy Keyframes";
+ ot->name= _("Copy Keyframes");
ot->idname= "ACTION_OT_copy";
- ot->description= "Copy selected keyframes to the copy/paste buffer";
+ ot->description= _("Copy selected keyframes to the copy/paste buffer");
/* api callbacks */
// ot->invoke= WM_operator_props_popup; // better wait for graph redo panel
@@ -524,9 +526,9 @@ static int actkeys_paste_exec(bContext *C, wmOperator *op)
void ACTION_OT_paste (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Paste Keyframes";
+ ot->name= _("Paste Keyframes");
ot->idname= "ACTION_OT_paste";
- ot->description= "Paste keyframes from copy/paste buffer for the selected channels, starting on the current frame";
+ ot->description= _("Paste keyframes from copy/paste buffer for the selected channels, starting on the current frame");
/* api callbacks */
ot->exec= actkeys_paste_exec;
@@ -535,17 +537,17 @@ void ACTION_OT_paste (wmOperatorType *ot)
/* flags */
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
- RNA_def_enum(ot->srna, "offset", keyframe_paste_offset_items, KEYFRAME_PASTE_OFFSET_CFRA_START, "Offset", "Paste time offset of keys");
- RNA_def_enum(ot->srna, "merge", keyframe_paste_merge_items, KEYFRAME_PASTE_MERGE_MIX, "Type", "Method of merking pasted keys and existing");
+ RNA_def_enum(ot->srna, "offset", keyframe_paste_offset_items, KEYFRAME_PASTE_OFFSET_CFRA_START, _("Offset"), _("Paste time offset of keys"));
+ RNA_def_enum(ot->srna, "merge", keyframe_paste_merge_items, KEYFRAME_PASTE_MERGE_MIX, _("Type"), _("Method of merking pasted keys and existing"));
}
/* ******************** Insert Keyframes Operator ************************* */
/* defines for insert keyframes tool */
static EnumPropertyItem prop_actkeys_insertkey_types[] = {
- {1, "ALL", 0, "All Channels", ""},
- {2, "SEL", 0, "Only Selected Channels", ""},
- {3, "GROUP", 0, "In Active Group", ""}, // xxx not in all cases
+ {1, "ALL", 0, N_("All Channels"), ""},
+ {2, "SEL", 0, N_("Only Selected Channels"), ""},
+ {3, "GROUP", 0, N_("In Active Group"), ""}, // xxx not in all cases
{0, NULL, 0, NULL, NULL}
};
@@ -623,9 +625,9 @@ static int actkeys_insertkey_exec(bContext *C, wmOperator *op)
void ACTION_OT_keyframe_insert (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Insert Keyframes";
+ ot->name= _("Insert Keyframes");
ot->idname= "ACTION_OT_keyframe_insert";
- ot->description= "Insert keyframes for the specified channels";
+ ot->description= _("Insert keyframes for the specified channels");
/* api callbacks */
ot->invoke= WM_menu_invoke;
@@ -636,7 +638,7 @@ void ACTION_OT_keyframe_insert (wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* id-props */
- ot->prop= RNA_def_enum(ot->srna, "type", prop_actkeys_insertkey_types, 0, "Type", "");
+ ot->prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(prop_actkeys_insertkey_types), 0, _("Type"), "");
}
/* ******************** Duplicate Keyframes Operator ************************* */
@@ -698,9 +700,9 @@ static int actkeys_duplicate_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED
void ACTION_OT_duplicate (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Duplicate Keyframes";
+ ot->name= _("Duplicate Keyframes");
ot->idname= "ACTION_OT_duplicate";
- ot->description= "Make a copy of all selected keyframes";
+ ot->description= _("Make a copy of all selected keyframes");
/* api callbacks */
ot->invoke= actkeys_duplicate_invoke;
@@ -711,7 +713,7 @@ void ACTION_OT_duplicate (wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* to give to transform */
- RNA_def_enum(ot->srna, "mode", transform_mode_types, TFM_TRANSLATION, "Mode", "");
+ RNA_def_enum(ot->srna, "mode", transform_mode_types, TFM_TRANSLATION, _("Mode"), "");
}
/* ******************** Delete Keyframes Operator ************************* */
@@ -775,9 +777,9 @@ static int actkeys_delete_exec(bContext *C, wmOperator *UNUSED(op))
void ACTION_OT_delete (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Delete Keyframes";
+ ot->name= _("Delete Keyframes");
ot->idname= "ACTION_OT_delete";
- ot->description= "Remove all selected keyframes";
+ ot->description= _("Remove all selected keyframes");
/* api callbacks */
ot->invoke= WM_operator_confirm;
@@ -839,9 +841,9 @@ static int actkeys_clean_exec(bContext *C, wmOperator *op)
void ACTION_OT_clean (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Clean Keyframes";
+ ot->name= _("Clean Keyframes");
ot->idname= "ACTION_OT_clean";
- ot->description= "Simplify F-Curves by removing closely spaced keyframes";
+ ot->description= _("Simplify F-Curves by removing closely spaced keyframes");
/* api callbacks */
//ot->invoke= // XXX we need that number popup for this!
@@ -852,7 +854,7 @@ void ACTION_OT_clean (wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
- ot->prop= RNA_def_float(ot->srna, "threshold", 0.001f, 0.0f, FLT_MAX, "Threshold", "", 0.0f, 1000.0f);
+ ot->prop= RNA_def_float(ot->srna, "threshold", 0.001f, 0.0f, FLT_MAX, _("Threshold"), "", 0.0f, 1000.0f);
}
/* ******************** Sample Keyframes Operator *********************** */
@@ -903,9 +905,9 @@ static int actkeys_sample_exec(bContext *C, wmOperator *UNUSED(op))
void ACTION_OT_sample (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Sample Keyframes";
+ ot->name= _("Sample Keyframes");
ot->idname= "ACTION_OT_sample";
- ot->description= "Add keyframes on every frame between the selected keyframes";
+ ot->description= _("Add keyframes on every frame between the selected keyframes");
/* api callbacks */
ot->exec= actkeys_sample_exec;
@@ -922,8 +924,8 @@ void ACTION_OT_sample (wmOperatorType *ot)
/* defines for set extrapolation-type for selected keyframes tool */
static EnumPropertyItem prop_actkeys_expo_types[] = {
- {FCURVE_EXTRAPOLATE_CONSTANT, "CONSTANT", 0, "Constant Extrapolation", ""},
- {FCURVE_EXTRAPOLATE_LINEAR, "LINEAR", 0, "Linear Extrapolation", ""},
+ {FCURVE_EXTRAPOLATE_CONSTANT, "CONSTANT", 0, N_("Constant Extrapolation"), ""},
+ {FCURVE_EXTRAPOLATE_LINEAR, "LINEAR", 0, N_("Linear Extrapolation"), ""},
{0, NULL, 0, NULL, NULL}
};
@@ -979,9 +981,9 @@ static int actkeys_expo_exec(bContext *C, wmOperator *op)
void ACTION_OT_extrapolation_type (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Set Keyframe Extrapolation";
+ ot->name= _("Set Keyframe Extrapolation");
ot->idname= "ACTION_OT_extrapolation_type";
- ot->description= "Set extrapolation mode for selected F-Curves";
+ ot->description= _("Set extrapolation mode for selected F-Curves");
/* api callbacks */
ot->invoke= WM_menu_invoke;
@@ -992,7 +994,7 @@ void ACTION_OT_extrapolation_type (wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* id-props */
- ot->prop= RNA_def_enum(ot->srna, "type", prop_actkeys_expo_types, 0, "Type", "");
+ ot->prop= RNA_def_enum(ot->srna, "type", prop_actkeys_expo_types, 0, _("Type"), "");
}
/* ******************** Set Interpolation-Type Operator *********************** */
@@ -1050,9 +1052,9 @@ static int actkeys_ipo_exec(bContext *C, wmOperator *op)
void ACTION_OT_interpolation_type (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Set Keyframe Interpolation";
+ ot->name= _("Set Keyframe Interpolation");
ot->idname= "ACTION_OT_interpolation_type";
- ot->description= "Set interpolation mode for the F-Curve segments starting from the selected keyframes";
+ ot->description= _("Set interpolation mode for the F-Curve segments starting from the selected keyframes");
/* api callbacks */
ot->invoke= WM_menu_invoke;
@@ -1063,18 +1065,18 @@ void ACTION_OT_interpolation_type (wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* id-props */
- ot->prop= RNA_def_enum(ot->srna, "type", beztriple_interpolation_mode_items, 0, "Type", "");
+ ot->prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(beztriple_interpolation_mode_items), 0, _("Type"), "");
}
/* ******************** Set Handle-Type Operator *********************** */
static EnumPropertyItem actkeys_handle_type_items[] = {
- {HD_FREE, "FREE", 0, "Free", ""},
- {HD_VECT, "VECTOR", 0, "Vector", ""},
- {HD_ALIGN, "ALIGNED", 0, "Aligned", ""},
+ {HD_FREE, "FREE", 0, N_("Free"), ""},
+ {HD_VECT, "VECTOR", 0, N_("Vector"), ""},
+ {HD_ALIGN, "ALIGNED", 0, N_("Aligned"), ""},
{0, "", 0, "", ""},
- {HD_AUTO, "AUTO", 0, "Auto", "Handles that are automatically adjusted upon moving the keyframe"},
- {HD_AUTO_ANIM, "ANIM_CLAMPED", 0, "Auto Clamped", "Auto handles clamped to not overshoot"},
+ {HD_AUTO, "AUTO", 0, N_("Auto"), N_("Handles that are automatically adjusted upon moving the keyframe")},
+ {HD_AUTO_ANIM, "ANIM_CLAMPED", 0, N_("Auto Clamped"), N_("Auto handles clamped to not overshoot")},
{0, NULL, 0, NULL, NULL}};
/* ------------------- */
@@ -1147,9 +1149,9 @@ static int actkeys_handletype_exec(bContext *C, wmOperator *op)
void ACTION_OT_handle_type (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Set Keyframe Handle Type";
+ ot->name= _("Set Keyframe Handle Type");
ot->idname= "ACTION_OT_handle_type";
- ot->description= "Set type of handle for selected keyframes";
+ ot->description= _("Set type of handle for selected keyframes");
/* api callbacks */
ot->invoke= WM_menu_invoke;
@@ -1160,7 +1162,7 @@ void ACTION_OT_handle_type (wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* id-props */
- ot->prop= RNA_def_enum(ot->srna, "type", actkeys_handle_type_items, 0, "Type", "");
+ ot->prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(actkeys_handle_type_items), 0, _("Type"), "");
}
/* ******************** Set Keyframe-Type Operator *********************** */
@@ -1218,9 +1220,9 @@ static int actkeys_keytype_exec(bContext *C, wmOperator *op)
void ACTION_OT_keyframe_type (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Set Keyframe Type";
+ ot->name= _("Set Keyframe Type");
ot->idname= "ACTION_OT_keyframe_type";
- ot->description= "Set type of keyframe for the selected keyframes";
+ ot->description= _("Set type of keyframe for the selected keyframes");
/* api callbacks */
ot->invoke= WM_menu_invoke;
@@ -1231,7 +1233,7 @@ void ACTION_OT_keyframe_type (wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* id-props */
- ot->prop= RNA_def_enum(ot->srna, "type", beztriple_keyframe_type_items, 0, "Type", "");
+ ot->prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(beztriple_keyframe_type_items), 0, _("Type"), "");
}
/* ************************************************************************** */
@@ -1286,9 +1288,9 @@ static int actkeys_framejump_exec(bContext *C, wmOperator *UNUSED(op))
void ACTION_OT_frame_jump (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Jump to Frame";
+ ot->name= _("Jump to Frame");
ot->idname= "ACTION_OT_frame_jump";
- ot->description= "Set the current frame to the average frame of the selected keyframes";
+ ot->description= _("Set the current frame to the average frame of the selected keyframes");
/* api callbacks */
ot->exec= actkeys_framejump_exec;
@@ -1302,10 +1304,10 @@ void ACTION_OT_frame_jump (wmOperatorType *ot)
/* defines for snap keyframes tool */
static EnumPropertyItem prop_actkeys_snap_types[] = {
- {ACTKEYS_SNAP_CFRA, "CFRA", 0, "Current frame", ""},
- {ACTKEYS_SNAP_NEAREST_FRAME, "NEAREST_FRAME", 0, "Nearest Frame", ""}, // XXX as single entry?
- {ACTKEYS_SNAP_NEAREST_SECOND, "NEAREST_SECOND", 0, "Nearest Second", ""}, // XXX as single entry?
- {ACTKEYS_SNAP_NEAREST_MARKER, "NEAREST_MARKER", 0, "Nearest Marker", ""},
+ {ACTKEYS_SNAP_CFRA, "CFRA", 0, N_("Current frame"), ""},
+ {ACTKEYS_SNAP_NEAREST_FRAME, "NEAREST_FRAME", 0, N_("Nearest Frame"), ""}, // XXX as single entry?
+ {ACTKEYS_SNAP_NEAREST_SECOND, "NEAREST_SECOND", 0, N_("Nearest Second"), ""}, // XXX as single entry?
+ {ACTKEYS_SNAP_NEAREST_MARKER, "NEAREST_MARKER", 0, N_("Nearest Marker"), ""},
{0, NULL, 0, NULL, NULL}
};
@@ -1382,9 +1384,9 @@ static int actkeys_snap_exec(bContext *C, wmOperator *op)
void ACTION_OT_snap (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Snap Keys";
+ ot->name= _("Snap Keys");
ot->idname= "ACTION_OT_snap";
- ot->description= "Snap selected keyframes to the times specified";
+ ot->description= _("Snap selected keyframes to the times specified");
/* api callbacks */
ot->invoke= WM_menu_invoke;
@@ -1395,16 +1397,16 @@ void ACTION_OT_snap (wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* id-props */
- ot->prop= RNA_def_enum(ot->srna, "type", prop_actkeys_snap_types, 0, "Type", "");
+ ot->prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(prop_actkeys_snap_types), 0, _("Type"), "");
}
/* ******************** Mirror Keyframes Operator *********************** */
/* defines for mirror keyframes tool */
static EnumPropertyItem prop_actkeys_mirror_types[] = {
- {ACTKEYS_MIRROR_CFRA, "CFRA", 0, "By Times over Current frame", ""},
- {ACTKEYS_MIRROR_XAXIS, "XAXIS", 0, "By Values over Value=0", ""},
- {ACTKEYS_MIRROR_MARKER, "MARKER", 0, "By Times over First Selected Marker", ""},
+ {ACTKEYS_MIRROR_CFRA, "CFRA", 0, N_("By Times over Current frame"), ""},
+ {ACTKEYS_MIRROR_XAXIS, "XAXIS", 0, N_("By Values over Value=0"), ""},
+ {ACTKEYS_MIRROR_MARKER, "MARKER", 0, N_("By Times over First Selected Marker"), ""},
{0, NULL, 0, NULL, NULL}
};
@@ -1492,9 +1494,9 @@ static int actkeys_mirror_exec(bContext *C, wmOperator *op)
void ACTION_OT_mirror (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Mirror Keys";
+ ot->name= _("Mirror Keys");
ot->idname= "ACTION_OT_mirror";
- ot->description= "Flip selected keyframes over the selected mirror line";
+ ot->description= _("Flip selected keyframes over the selected mirror line");
/* api callbacks */
ot->invoke= WM_menu_invoke;
@@ -1505,7 +1507,7 @@ void ACTION_OT_mirror (wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* id-props */
- ot->prop= RNA_def_enum(ot->srna, "type", prop_actkeys_mirror_types, 0, "Type", "");
+ ot->prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(prop_actkeys_mirror_types), 0, _("Type"), "");
}
/* ************************************************************************** */
diff --git a/source/blender/editors/space_action/action_ops.c b/source/blender/editors/space_action/action_ops.c
index 6c3f80cda41..bb1e5c1012a 100644
--- a/source/blender/editors/space_action/action_ops.c
+++ b/source/blender/editors/space_action/action_ops.c
@@ -39,6 +39,8 @@
#include "BLI_blenlib.h"
+#include "BLF_api.h"
+
#include "ED_anim_api.h"
#include "ED_transform.h"
@@ -93,7 +95,7 @@ void ED_operatormacros_action(void)
wmOperatorType *ot;
wmOperatorTypeMacro *otmacro;
- ot= WM_operatortype_append_macro("ACTION_OT_duplicate_move", "Duplicate", OPTYPE_UNDO|OPTYPE_REGISTER);
+ ot= WM_operatortype_append_macro("ACTION_OT_duplicate_move", _("Duplicate"), OPTYPE_UNDO|OPTYPE_REGISTER);
if (ot) {
WM_operatortype_macro_define(ot, "ACTION_OT_duplicate");
otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_transform");
diff --git a/source/blender/editors/space_action/action_select.c b/source/blender/editors/space_action/action_select.c
index b10dffb0064..2a8af567be0 100644
--- a/source/blender/editors/space_action/action_select.c
+++ b/source/blender/editors/space_action/action_select.c
@@ -165,9 +165,9 @@ static int actkeys_deselectall_exec(bContext *C, wmOperator *op)
void ACTION_OT_select_all_toggle (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Select All";
+ ot->name= _("Select All");
ot->idname= "ACTION_OT_select_all_toggle";
- ot->description= "Toggle selection of all keyframes";
+ ot->description= _("Toggle selection of all keyframes");
/* api callbacks */
ot->exec= actkeys_deselectall_exec;
@@ -326,9 +326,9 @@ static int actkeys_borderselect_exec(bContext *C, wmOperator *op)
void ACTION_OT_select_border(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Border Select";
+ ot->name= _("Border Select");
ot->idname= "ACTION_OT_select_border";
- ot->description= "Select all keyframes within the specified region";
+ ot->description= _("Select all keyframes within the specified region");
/* api callbacks */
ot->invoke= WM_border_select_invoke;
@@ -357,10 +357,10 @@ void ACTION_OT_select_border(wmOperatorType *ot)
/* defines for column-select mode */
static EnumPropertyItem prop_column_select_types[] = {
- {ACTKEYS_COLUMNSEL_KEYS, "KEYS", 0, "On Selected Keyframes", ""},
- {ACTKEYS_COLUMNSEL_CFRA, "CFRA", 0, "On Current Frame", ""},
- {ACTKEYS_COLUMNSEL_MARKERS_COLUMN, "MARKERS_COLUMN", 0, "On Selected Markers", ""},
- {ACTKEYS_COLUMNSEL_MARKERS_BETWEEN, "MARKERS_BETWEEN", 0, "Between Min/Max Selected Markers", ""},
+ {ACTKEYS_COLUMNSEL_KEYS, "KEYS", 0, N_("On Selected Keyframes"), ""},
+ {ACTKEYS_COLUMNSEL_CFRA, "CFRA", 0, N_("On Current Frame"), ""},
+ {ACTKEYS_COLUMNSEL_MARKERS_COLUMN, "MARKERS_COLUMN", 0, N_("On Selected Markers"), ""},
+ {ACTKEYS_COLUMNSEL_MARKERS_BETWEEN, "MARKERS_BETWEEN", 0, N_("Between Min/Max Selected Markers"), ""},
{0, NULL, 0, NULL, NULL}
};
@@ -532,9 +532,9 @@ static int actkeys_columnselect_exec(bContext *C, wmOperator *op)
void ACTION_OT_select_column (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Select All";
+ ot->name= _("Select All");
ot->idname= "ACTION_OT_select_column";
- ot->description= "Select all keyframes on the specified frame(s)";
+ ot->description= _("Select all keyframes on the specified frame(s)");
/* api callbacks */
ot->exec= actkeys_columnselect_exec;
@@ -544,7 +544,7 @@ void ACTION_OT_select_column (wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* props */
- ot->prop= RNA_def_enum(ot->srna, "mode", prop_column_select_types, 0, "Mode", "");
+ ot->prop= RNA_def_enum(ot->srna, "mode", RNA_enum_items_gettexted(prop_column_select_types), 0, _("Mode"), "");
}
/* ******************** Select Linked Operator *********************** */
@@ -590,9 +590,9 @@ static int actkeys_select_linked_exec (bContext *C, wmOperator *UNUSED(op))
void ACTION_OT_select_linked (wmOperatorType *ot)
{
/* identifiers */
- ot->name = "Select Linked";
+ ot->name = _("Select Linked");
ot->idname= "ACTION_OT_select_linked";
- ot->description = "Select keyframes occurring the same F-Curves as selected ones";
+ ot->description = _("Select keyframes occurring the same F-Curves as selected ones");
/* api callbacks */
ot->exec= actkeys_select_linked_exec;
@@ -667,9 +667,9 @@ static int actkeys_select_more_exec (bContext *C, wmOperator *UNUSED(op))
void ACTION_OT_select_more (wmOperatorType *ot)
{
/* identifiers */
- ot->name = "Select More";
+ ot->name = _("Select More");
ot->idname= "ACTION_OT_select_more";
- ot->description = "Select keyframes beside already selected ones";
+ ot->description = _("Select keyframes beside already selected ones");
/* api callbacks */
ot->exec= actkeys_select_more_exec;
@@ -701,9 +701,9 @@ static int actkeys_select_less_exec (bContext *C, wmOperator *UNUSED(op))
void ACTION_OT_select_less (wmOperatorType *ot)
{
/* identifiers */
- ot->name = "Select Less";
+ ot->name = _("Select Less");
ot->idname= "ACTION_OT_select_less";
- ot->description = "Deselect keyframes on ends of selection islands";
+ ot->description = _("Deselect keyframes on ends of selection islands");
/* api callbacks */
ot->exec= actkeys_select_less_exec;
@@ -718,9 +718,9 @@ void ACTION_OT_select_less (wmOperatorType *ot)
/* defines for left-right select tool */
static EnumPropertyItem prop_actkeys_leftright_select_types[] = {
- {ACTKEYS_LRSEL_TEST, "CHECK", 0, "Check if Select Left or Right", ""},
- {ACTKEYS_LRSEL_LEFT, "LEFT", 0, "Before current frame", ""},
- {ACTKEYS_LRSEL_RIGHT, "RIGHT", 0, "After current frame", ""},
+ {ACTKEYS_LRSEL_TEST, "CHECK", 0, N_("Check if Select Left or Right"), ""},
+ {ACTKEYS_LRSEL_LEFT, "LEFT", 0, N_("Before current frame"), ""},
+ {ACTKEYS_LRSEL_RIGHT, "RIGHT", 0, N_("After current frame"), ""},
{0, NULL, 0, NULL, NULL}
};
@@ -867,9 +867,9 @@ static int actkeys_select_leftright_invoke (bContext *C, wmOperator *op, wmEvent
void ACTION_OT_select_leftright (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Select Left/Right";
+ ot->name= _("Select Left/Right");
ot->idname= "ACTION_OT_select_leftright";
- ot->description= "Select keyframes to the left or the right of the current frame";
+ ot->description= _("Select keyframes to the left or the right of the current frame");
/* api callbacks */
ot->invoke= actkeys_select_leftright_invoke;
@@ -880,7 +880,7 @@ void ACTION_OT_select_leftright (wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* id-props */
- ot->prop= RNA_def_enum(ot->srna, "mode", prop_actkeys_leftright_select_types, ACTKEYS_LRSEL_TEST, "Mode", "");
+ ot->prop= RNA_def_enum(ot->srna, "mode", RNA_enum_items_gettexted(prop_actkeys_leftright_select_types), ACTKEYS_LRSEL_TEST, _("Mode"), "");
RNA_def_boolean(ot->srna, "extend", 0, _("Extend Select"), "");
}
@@ -1186,9 +1186,9 @@ static int actkeys_clickselect_invoke(bContext *C, wmOperator *op, wmEvent *even
void ACTION_OT_clickselect (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Mouse Select Keys";
+ ot->name= _("Mouse Select Keys");
ot->idname= "ACTION_OT_clickselect";
- ot->description= "Select keyframes by clicking on them";
+ ot->description= _("Select keyframes by clicking on them");
/* api callbacks - absolutely no exec() this yet... */
ot->invoke= actkeys_clickselect_invoke;
diff --git a/source/blender/editors/space_console/console_ops.c b/source/blender/editors/space_console/console_ops.c
index 91429b8c153..b837b58e83e 100644
--- a/source/blender/editors/space_console/console_ops.c
+++ b/source/blender/editors/space_console/console_ops.c
@@ -350,8 +350,8 @@ static int move_exec(bContext *C, wmOperator *op)
void CONSOLE_OT_move(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Move Cursor";
- ot->description= "Move cursor position";
+ ot->name= _("Move Cursor");
+ ot->description= _("Move cursor position");
ot->idname= "CONSOLE_OT_move";
/* api callbacks */
@@ -359,7 +359,7 @@ void CONSOLE_OT_move(wmOperatorType *ot)
ot->poll= ED_operator_console_active;
/* properties */
- RNA_def_enum(ot->srna, "type", move_type_items, LINE_BEGIN, "Type", "Where to move cursor to.");
+ RNA_def_enum(ot->srna, "type", move_type_items, LINE_BEGIN, _("Type"), _("Where to move cursor to."));
}
#define TAB_LENGTH 4
@@ -419,8 +419,8 @@ static int insert_invoke(bContext *C, wmOperator *op, wmEvent *event)
void CONSOLE_OT_insert(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Insert";
- ot->description= "Insert text at cursor position";
+ ot->name= _("Insert");
+ ot->description= _("Insert text at cursor position");
ot->idname= "CONSOLE_OT_insert";
/* api callbacks */
@@ -429,7 +429,7 @@ void CONSOLE_OT_insert(wmOperatorType *ot)
ot->poll= ED_operator_console_active;
/* properties */
- RNA_def_string(ot->srna, "text", "", 0, "Text", "Text to insert at the cursor position.");
+ RNA_def_string(ot->srna, "text", "", 0, _("Text"), _("Text to insert at the cursor position."));
}
@@ -488,8 +488,8 @@ static int delete_exec(bContext *C, wmOperator *op)
void CONSOLE_OT_delete(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Delete";
- ot->description= "Delete text by cursor position";
+ ot->name= _("Delete");
+ ot->description= _("Delete text by cursor position");
ot->idname= "CONSOLE_OT_delete";
/* api callbacks */
@@ -497,7 +497,7 @@ void CONSOLE_OT_delete(wmOperatorType *ot)
ot->poll= ED_operator_console_active;
/* properties */
- RNA_def_enum(ot->srna, "type", delete_type_items, DEL_NEXT_CHAR, "Type", "Which part of the text to delete.");
+ RNA_def_enum(ot->srna, "type", delete_type_items, DEL_NEXT_CHAR, _("Type"), _("Which part of the text to delete."));
}
@@ -531,8 +531,8 @@ static int clear_exec(bContext *C, wmOperator *op)
void CONSOLE_OT_clear(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Clear";
- ot->description= "Clear text by type";
+ ot->name= _("Clear");
+ ot->description= _("Clear text by type");
ot->idname= "CONSOLE_OT_clear";
/* api callbacks */
@@ -597,8 +597,8 @@ static int history_cycle_exec(bContext *C, wmOperator *op)
void CONSOLE_OT_history_cycle(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "History Cycle";
- ot->description= "Cycle through history";
+ ot->name= _("History Cycle");
+ ot->description= _("Cycle through history");
ot->idname= "CONSOLE_OT_history_cycle";
/* api callbacks */
@@ -645,8 +645,8 @@ static int history_append_exec(bContext *C, wmOperator *op)
void CONSOLE_OT_history_append(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "History Append";
- ot->description= "Append history at cursor position";
+ ot->name= _("History Append");
+ ot->description= _("Append history at cursor position");
ot->idname= "CONSOLE_OT_history_append";
/* api callbacks */
@@ -654,7 +654,7 @@ void CONSOLE_OT_history_append(wmOperatorType *ot)
ot->poll= ED_operator_console_active;
/* properties */
- RNA_def_string(ot->srna, "text", "", 0, "Text", "Text to insert at the cursor position.");
+ RNA_def_string(ot->srna, "text", "", 0, _("Text"), _("Text to insert at the cursor position."));
RNA_def_int(ot->srna, "current_character", 0, 0, INT_MAX, _("Cursor"), _("The index of the cursor."), 0, 10000);
RNA_def_boolean(ot->srna, "remove_duplicates", 0, _("Remove Duplicates"), _("Remove duplicate items in the history"));
}
@@ -694,8 +694,8 @@ void CONSOLE_OT_scrollback_append(wmOperatorType *ot)
{0, NULL, 0, NULL, NULL}};
/* identifiers */
- ot->name= "Scrollback Append";
- ot->description= "Append scrollback text by type";
+ ot->name= _("Scrollback Append");
+ ot->description= _("Append scrollback text by type");
ot->idname= "CONSOLE_OT_scrollback_append";
/* api callbacks */
@@ -703,8 +703,8 @@ void CONSOLE_OT_scrollback_append(wmOperatorType *ot)
ot->poll= ED_operator_console_active;
/* properties */
- RNA_def_string(ot->srna, "text", "", 0, "Text", "Text to insert at the cursor position.");
- RNA_def_enum(ot->srna, "type", console_line_type_items, CONSOLE_LINE_OUTPUT, "Type", "Console output type.");
+ RNA_def_string(ot->srna, "text", "", 0, _("Text"), _("Text to insert at the cursor position."));
+ RNA_def_enum(ot->srna, "type", console_line_type_items, CONSOLE_LINE_OUTPUT, _("Type"), _("Console output type."));
}
@@ -777,8 +777,8 @@ static int copy_exec(bContext *C, wmOperator *UNUSED(op))
void CONSOLE_OT_copy(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Copy to Clipboard";
- ot->description= "Copy selected text to clipboard";
+ ot->name= _("Copy to Clipboard");
+ ot->description= _("Copy selected text to clipboard");
ot->idname= "CONSOLE_OT_copy";
/* api callbacks */
@@ -828,8 +828,8 @@ static int paste_exec(bContext *C, wmOperator *UNUSED(op))
void CONSOLE_OT_paste(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Paste from Clipboard";
- ot->description= "Paste text from clipboard";
+ ot->name= _("Paste from Clipboard");
+ ot->description= _("Paste text from clipboard");
ot->idname= "CONSOLE_OT_paste";
/* api callbacks */
@@ -952,9 +952,9 @@ static int console_modal_select_cancel(bContext *C, wmOperator *op)
void CONSOLE_OT_select_set(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Set Selection";
+ ot->name= _("Set Selection");
ot->idname= "CONSOLE_OT_select_set";
- ot->description= "Set the console selection";
+ ot->description= _("Set the console selection");
/* api callbacks */
ot->invoke= console_modal_select_invoke;
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c
index 41d87ac0e08..913e7486c63 100644
--- a/source/blender/editors/space_file/file_ops.c
+++ b/source/blender/editors/space_file/file_ops.c
@@ -1064,7 +1064,7 @@ void FILE_OT_directory_new(struct wmOperatorType *ot)
ot->exec= file_directory_new_exec;
ot->poll= ED_operator_file_active; /* <- important, handler is on window level */
- RNA_def_string_dir_path(ot->srna, "directory", "", FILE_MAX, "Directory", "Name of new directory");
+ RNA_def_string_dir_path(ot->srna, "directory", "", FILE_MAX, _("Directory"), _("Name of new directory"));
}
diff --git a/source/blender/editors/space_image/image_buttons.c b/source/blender/editors/space_image/image_buttons.c
index 0210b0dd78d..dc0130ed7a7 100644
--- a/source/blender/editors/space_image/image_buttons.c
+++ b/source/blender/editors/space_image/image_buttons.c
@@ -47,6 +47,8 @@
#include "BLI_rand.h"
#include "BLI_utildefines.h"
+#include "BLF_api.h"
+
#include "BKE_colortools.h"
#include "BKE_context.h"
#include "BKE_customdata.h"
@@ -860,9 +862,9 @@ static int image_properties(bContext *C, wmOperator *UNUSED(op))
void IMAGE_OT_properties(wmOperatorType *ot)
{
- ot->name= "Properties";
+ ot->name= _("Properties");
ot->idname= "IMAGE_OT_properties";
- ot->description= "Toggle display properties panel";
+ ot->description= _("Toggle display properties panel");
ot->exec= image_properties;
ot->poll= ED_operator_image_active;
@@ -884,9 +886,9 @@ static int image_scopes(bContext *C, wmOperator *UNUSED(op))
void IMAGE_OT_scopes(wmOperatorType *ot)
{
- ot->name= "Scopes";
+ ot->name= _("Scopes");
ot->idname= "IMAGE_OT_scopes";
- ot->description= "Toggle display scopes panel";
+ ot->description= _("Toggle display scopes panel");
ot->exec= image_scopes;
ot->poll= ED_operator_image_active;
diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c
index b8a964033e8..be2f93f120a 100644
--- a/source/blender/editors/space_image/image_ops.c
+++ b/source/blender/editors/space_image/image_ops.c
@@ -290,7 +290,7 @@ static int view_pan_cancel(bContext *C, wmOperator *op)
void IMAGE_OT_view_pan(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "View Pan";
+ ot->name= _("View Pan");
ot->idname= "IMAGE_OT_view_pan";
/* api callbacks */
@@ -305,7 +305,7 @@ void IMAGE_OT_view_pan(wmOperatorType *ot)
/* properties */
RNA_def_float_vector(ot->srna, "offset", 2, NULL, -FLT_MAX, FLT_MAX,
- "Offset", "Offset in floating point units, 1.0 is the width and height of the image.", -FLT_MAX, FLT_MAX);
+ _("Offset"), _("Offset in floating point units, 1.0 is the width and height of the image."), -FLT_MAX, FLT_MAX);
}
/********************** view zoom operator *********************/
@@ -421,7 +421,7 @@ static int view_zoom_cancel(bContext *C, wmOperator *op)
void IMAGE_OT_view_zoom(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "View Zoom";
+ ot->name= _("View Zoom");
ot->idname= "IMAGE_OT_view_zoom";
/* api callbacks */
@@ -436,7 +436,7 @@ void IMAGE_OT_view_zoom(wmOperatorType *ot)
/* properties */
RNA_def_float(ot->srna, "factor", 0.0f, 0.0f, FLT_MAX,
- "Factor", "Zoom factor, values higher than 1.0 zoom in, lower values zoom out.", -FLT_MAX, FLT_MAX);
+ _("Factor"), _("Zoom factor, values higher than 1.0 zoom in, lower values zoom out."), -FLT_MAX, FLT_MAX);
}
/********************** view all operator *********************/
@@ -485,7 +485,7 @@ static int view_all_exec(bContext *C, wmOperator *UNUSED(op))
void IMAGE_OT_view_all(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "View All";
+ ot->name= _("View All");
ot->idname= "IMAGE_OT_view_all";
/* api callbacks */
@@ -542,7 +542,7 @@ static int view_selected_poll(bContext *C)
void IMAGE_OT_view_selected(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "View Center";
+ ot->name= _("View Center");
ot->idname= "IMAGE_OT_view_selected";
/* api callbacks */
@@ -567,7 +567,7 @@ static int view_zoom_in_exec(bContext *C, wmOperator *UNUSED(op))
void IMAGE_OT_view_zoom_in(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "View Zoom In";
+ ot->name= _("View Zoom In");
ot->idname= "IMAGE_OT_view_zoom_in";
/* api callbacks */
@@ -590,7 +590,7 @@ static int view_zoom_out_exec(bContext *C, wmOperator *UNUSED(op))
void IMAGE_OT_view_zoom_out(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "View Zoom Out";
+ ot->name= _("View Zoom Out");
ot->idname= "IMAGE_OT_view_zoom_out";
/* api callbacks */
@@ -628,7 +628,7 @@ static int view_zoom_ratio_exec(bContext *C, wmOperator *op)
void IMAGE_OT_view_zoom_ratio(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "View Zoom Ratio";
+ ot->name= _("View Zoom Ratio");
ot->idname= "IMAGE_OT_view_zoom_ratio";
/* api callbacks */
@@ -637,7 +637,7 @@ void IMAGE_OT_view_zoom_ratio(wmOperatorType *ot)
/* properties */
RNA_def_float(ot->srna, "ratio", 0.0f, 0.0f, FLT_MAX,
- "Ratio", "Zoom ratio, 1.0 is 1:1, higher is zoomed in, lower is zoomed out.", -FLT_MAX, FLT_MAX);
+ _("Ratio"), _("Zoom ratio, 1.0 is 1:1, higher is zoomed in, lower is zoomed out."), -FLT_MAX, FLT_MAX);
}
/**************** load/replace/save callbacks ******************/
@@ -803,8 +803,8 @@ static int open_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void IMAGE_OT_open(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Open Image";
- ot->description= "Open image";
+ ot->name= _("Open Image");
+ ot->description= _("Open image");
ot->idname= "IMAGE_OT_open";
/* api callbacks */
@@ -862,7 +862,7 @@ static int replace_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void IMAGE_OT_replace(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Replace Image";
+ ot->name= _("Replace Image");
ot->idname= "IMAGE_OT_replace";
/* api callbacks */
@@ -1082,7 +1082,7 @@ static int save_as_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void IMAGE_OT_save_as(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Save As Image";
+ ot->name= _("Save As Image");
ot->idname= "IMAGE_OT_save_as";
/* api callbacks */
@@ -1095,7 +1095,7 @@ void IMAGE_OT_save_as(wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
- RNA_def_enum(ot->srna, "file_type", image_file_type_items, R_PNG, "File Type", "File type to save image as.");
+ RNA_def_enum(ot->srna, "file_type", image_file_type_items, R_PNG, _("File Type"), _("File type to save image as."));
WM_operator_properties_filesel(ot, FOLDERFILE|IMAGEFILE|MOVIEFILE, FILE_SPECIAL, FILE_SAVE, WM_FILESEL_FILEPATH|WM_FILESEL_RELPATH);
RNA_def_boolean(ot->srna, "copy", 0, _("Copy"), _("Create a new image file without modifying the current image in blender"));
@@ -1153,7 +1153,7 @@ static int save_exec(bContext *C, wmOperator *op)
void IMAGE_OT_save(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Save Image";
+ ot->name= _("Save Image");
ot->idname= "IMAGE_OT_save";
/* api callbacks */
@@ -1230,7 +1230,7 @@ static int save_sequence_exec(bContext *C, wmOperator *op)
void IMAGE_OT_save_sequence(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Save Sequence";
+ ot->name= _("Save Sequence");
ot->idname= "IMAGE_OT_save_sequence";
/* api callbacks */
@@ -1265,7 +1265,7 @@ static int reload_exec(bContext *C, wmOperator *UNUSED(op))
void IMAGE_OT_reload(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Reload Image";
+ ot->name= _("Reload Image");
ot->idname= "IMAGE_OT_reload";
/* api callbacks */
@@ -1347,7 +1347,7 @@ void IMAGE_OT_new(wmOperatorType *ot)
static float default_color[4]= {0.0f, 0.0f, 0.0f, 1.0f};
/* identifiers */
- ot->name= "New Image";
+ ot->name= _("New Image");
ot->description= "Create a new image";
ot->idname= "IMAGE_OT_new";
@@ -1437,7 +1437,7 @@ static int image_invert_exec(bContext *C, wmOperator *op)
void IMAGE_OT_invert(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Invert Channels";
+ ot->name= _("Invert Channels");
ot->idname= "IMAGE_OT_invert";
/* api callbacks */
@@ -1524,8 +1524,8 @@ static int pack_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void IMAGE_OT_pack(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Pack Image";
- ot->description= "Pack an image as embedded data into the .blend file";
+ ot->name= _("Pack Image");
+ ot->description= _("Pack an image as embedded data into the .blend file");
ot->idname= "IMAGE_OT_pack";
/* api callbacks */
@@ -1601,8 +1601,8 @@ static int image_unpack_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(even
void IMAGE_OT_unpack(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Unpack Image";
- ot->description= "Save an image packed in the .blend file to disk";
+ ot->name= _("Unpack Image");
+ ot->description= _("Save an image packed in the .blend file to disk");
ot->idname= "IMAGE_OT_unpack";
/* api callbacks */
@@ -1613,8 +1613,8 @@ void IMAGE_OT_unpack(wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
- RNA_def_enum(ot->srna, "method", unpack_method_items, PF_USE_LOCAL, "Method", "How to unpack.");
- RNA_def_string(ot->srna, "id", "", MAX_ID_NAME-2, "Image Name", "Image datablock name to unpack."); /* XXX, weark!, will fail with library, name collisions */
+ RNA_def_enum(ot->srna, "method", unpack_method_items, PF_USE_LOCAL, _("Method"), _("How to unpack."));
+ RNA_def_string(ot->srna, "id", "", MAX_ID_NAME-2, _("Image Name"), _("Image datablock name to unpack.")); /* XXX, weark!, will fail with library, name collisions */
}
/******************** sample image operator ********************/
@@ -1811,7 +1811,7 @@ static int sample_cancel(bContext *C, wmOperator *op)
void IMAGE_OT_sample(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Sample Color";
+ ot->name= _("Sample Color");
ot->idname= "IMAGE_OT_sample";
/* api callbacks */
@@ -1919,7 +1919,7 @@ static int sample_line_invoke(bContext *C, wmOperator *op, wmEvent *event)
void IMAGE_OT_sample_line(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Sample Line";
+ ot->name= _("Sample Line");
ot->idname= "IMAGE_OT_sample_line";
/* api callbacks */
@@ -1940,12 +1940,12 @@ void IMAGE_OT_sample_line(wmOperatorType *ot)
void IMAGE_OT_curves_point_set(wmOperatorType *ot)
{
static EnumPropertyItem point_items[]= {
- {0, "BLACK_POINT", 0, "Black Point", ""},
- {1, "WHITE_POINT", 0, "White Point", ""},
+ {0, "BLACK_POINT", 0, N_("Black Point"), ""},
+ {1, "WHITE_POINT", 0, N_("White Point"), ""},
{0, NULL, 0, NULL, NULL}};
/* identifiers */
- ot->name= "Set Curves Point";
+ ot->name= _("Set Curves Point");
ot->idname= "IMAGE_OT_curves_point_set";
/* flags */
@@ -1958,7 +1958,7 @@ void IMAGE_OT_curves_point_set(wmOperatorType *ot)
ot->poll= space_image_main_area_poll;
/* properties */
- RNA_def_enum(ot->srna, "point", point_items, 0, "Point", "Set black point or white point for curves.");
+ RNA_def_enum(ot->srna, "point", RNA_enum_items_gettexted(point_items), 0, _("Point"), _("Set black point or white point for curves."));
}
/******************** record composite operator *********************/
@@ -2099,7 +2099,7 @@ static int record_composite_cancel(bContext *C, wmOperator *op)
void IMAGE_OT_record_composite(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Record Composite";
+ ot->name= _("Record Composite");
ot->idname= "IMAGE_OT_record_composite";
/* api callbacks */
@@ -2154,7 +2154,7 @@ static int cycle_render_slot_exec(bContext *C, wmOperator *op)
void IMAGE_OT_cycle_render_slot(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Cycle Render Slot";
+ ot->name= _("Cycle Render Slot");
ot->idname= "IMAGE_OT_cycle_render_slot";
/* api callbacks */
diff --git a/source/blender/editors/space_logic/logic_buttons.c b/source/blender/editors/space_logic/logic_buttons.c
index 271acea72cb..dc2c5cb461a 100644
--- a/source/blender/editors/space_logic/logic_buttons.c
+++ b/source/blender/editors/space_logic/logic_buttons.c
@@ -120,8 +120,8 @@ static int logic_properties(bContext *C, wmOperator *UNUSED(op))
void LOGIC_OT_properties(wmOperatorType *ot)
{
- ot->name= "Properties";
- ot->description= "Toggle display properties panel";
+ ot->name= _("Properties");
+ ot->description= _("Toggle display properties panel");
ot->idname= "LOGIC_OT_properties";
ot->exec= logic_properties;
@@ -201,9 +201,9 @@ void LOGIC_OT_links_cut(wmOperatorType *ot)
{
PropertyRNA *prop;
- ot->name= "Cut links";
+ ot->name= _("Cut links");
ot->idname= "LOGIC_OT_links_cut";
- ot->description= "Remove logic brick connections";
+ ot->description= _("Remove logic brick connections");
ot->invoke= WM_gesture_lines_invoke;
ot->modal= WM_gesture_lines_modal;
diff --git a/source/blender/editors/space_nla/nla_buttons.c b/source/blender/editors/space_nla/nla_buttons.c
index 94232699c30..c431f5455ed 100644
--- a/source/blender/editors/space_nla/nla_buttons.c
+++ b/source/blender/editors/space_nla/nla_buttons.c
@@ -47,6 +47,8 @@
#include "BLI_editVert.h"
#include "BLI_rand.h"
+#include "BLF_api.h"
+
#include "BKE_nla.h"
#include "BKE_context.h"
#include "BKE_screen.h"
@@ -498,9 +500,9 @@ static int nla_properties(bContext *C, wmOperator *UNUSED(op))
void NLA_OT_properties(wmOperatorType *ot)
{
- ot->name= "Properties";
+ ot->name= _("Properties");
ot->idname= "NLA_OT_properties";
- ot->description= "Toggle display properties panel";
+ ot->description= _("Toggle display properties panel");
ot->exec= nla_properties;
ot->poll= ED_operator_nla_active;
diff --git a/source/blender/editors/space_nla/nla_channels.c b/source/blender/editors/space_nla/nla_channels.c
index 8ce64c6d553..f6aebd57149 100644
--- a/source/blender/editors/space_nla/nla_channels.c
+++ b/source/blender/editors/space_nla/nla_channels.c
@@ -344,9 +344,9 @@ static int nlachannels_mouseclick_invoke(bContext *C, wmOperator *op, wmEvent *e
void NLA_OT_channels_click (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Mouse Click on NLA Channels";
+ ot->name= _("Mouse Click on NLA Channels");
ot->idname= "NLA_OT_channels_click";
- ot->description= "Handle clicks to select NLA channels";
+ ot->description= _("Handle clicks to select NLA channels");
/* api callbacks */
ot->invoke= nlachannels_mouseclick_invoke;
@@ -418,9 +418,9 @@ static int nlaedit_add_tracks_exec (bContext *C, wmOperator *op)
void NLA_OT_tracks_add (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Add Track(s)";
+ ot->name= _("Add Track(s)");
ot->idname= "NLA_OT_tracks_add";
- ot->description= "Add NLA-Tracks above/after the selected tracks";
+ ot->description= _("Add NLA-Tracks above/after the selected tracks");
/* api callbacks */
ot->exec= nlaedit_add_tracks_exec;
@@ -482,9 +482,9 @@ static int nlaedit_delete_tracks_exec (bContext *C, wmOperator *UNUSED(op))
void NLA_OT_delete_tracks (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Delete Tracks";
+ ot->name= _("Delete Tracks");
ot->idname= "NLA_OT_delete_tracks";
- ot->description= "Delete selected NLA-Tracks and the strips they contain";
+ ot->description= _("Delete selected NLA-Tracks and the strips they contain");
/* api callbacks */
ot->exec= nlaedit_delete_tracks_exec;
diff --git a/source/blender/editors/space_nla/nla_edit.c b/source/blender/editors/space_nla/nla_edit.c
index 934cf8be247..15ab0406b95 100644
--- a/source/blender/editors/space_nla/nla_edit.c
+++ b/source/blender/editors/space_nla/nla_edit.c
@@ -160,9 +160,9 @@ static int nlaedit_enable_tweakmode_exec (bContext *C, wmOperator *op)
void NLA_OT_tweakmode_enter (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Enter Tweak Mode";
+ ot->name= _("Enter Tweak Mode");
ot->idname= "NLA_OT_tweakmode_enter";
- ot->description= "Enter tweaking mode for the action referenced by the active strip";
+ ot->description= _("Enter tweaking mode for the action referenced by the active strip");
/* api callbacks */
ot->exec= nlaedit_enable_tweakmode_exec;
@@ -225,9 +225,9 @@ static int nlaedit_disable_tweakmode_exec (bContext *C, wmOperator *op)
void NLA_OT_tweakmode_exit (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Exit Tweak Mode";
+ ot->name= _("Exit Tweak Mode");
ot->idname= "NLA_OT_tweakmode_exit";
- ot->description= "Exit tweaking mode for the action referenced by the active strip";
+ ot->description= _("Exit tweaking mode for the action referenced by the active strip");
/* api callbacks */
ot->exec= nlaedit_disable_tweakmode_exec;
@@ -344,9 +344,9 @@ void NLA_OT_actionclip_add (wmOperatorType *ot)
PropertyRNA *prop;
/* identifiers */
- ot->name= "Add Action Strip";
+ ot->name= _("Add Action Strip");
ot->idname= "NLA_OT_actionclip_add";
- ot->description= "Add an Action-Clip strip (i.e. an NLA Strip referencing an Action) to the active track";
+ ot->description= _("Add an Action-Clip strip (i.e. an NLA Strip referencing an Action) to the active track");
/* api callbacks */
ot->invoke= WM_enum_search_invoke;
@@ -358,7 +358,7 @@ void NLA_OT_actionclip_add (wmOperatorType *ot)
/* props */
// TODO: this would be nicer as an ID-pointer...
- prop= RNA_def_enum(ot->srna, "action", DummyRNA_NULL_items, 0, "Action", "");
+ prop= RNA_def_enum(ot->srna, "action", DummyRNA_NULL_items, 0, _("Action"), "");
RNA_def_enum_funcs(prop, RNA_action_itemf);
ot->prop= prop;
}
@@ -466,9 +466,9 @@ static int nlaedit_add_transition_exec (bContext *C, wmOperator *op)
void NLA_OT_transition_add (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Add Transition";
+ ot->name= _("Add Transition");
ot->idname= "NLA_OT_transition_add";
- ot->description= "Add a transition strip between two adjacent selected strips";
+ ot->description= _("Add a transition strip between two adjacent selected strips");
/* api callbacks */
ot->exec= nlaedit_add_transition_exec;
@@ -528,9 +528,9 @@ static int nlaedit_add_meta_exec (bContext *C, wmOperator *UNUSED(op))
void NLA_OT_meta_add (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Add Meta-Strips";
+ ot->name= _("Add Meta-Strips");
ot->idname= "NLA_OT_meta_add";
- ot->description= "Add new meta-strips incorporating the selected strips";
+ ot->description= _("Add new meta-strips incorporating the selected strips");
/* api callbacks */
ot->exec= nlaedit_add_meta_exec;
@@ -580,9 +580,9 @@ static int nlaedit_remove_meta_exec (bContext *C, wmOperator *UNUSED(op))
void NLA_OT_meta_remove (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Remove Meta-Strips";
+ ot->name= _("Remove Meta-Strips");
ot->idname= "NLA_OT_meta_remove";
- ot->description= "Separate out the strips held by the selected meta-strips";
+ ot->description= _("Separate out the strips held by the selected meta-strips");
/* api callbacks */
ot->exec= nlaedit_remove_meta_exec;
@@ -683,9 +683,9 @@ static int nlaedit_duplicate_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED
void NLA_OT_duplicate (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Duplicate Strips";
+ ot->name= _("Duplicate Strips");
ot->idname= "NLA_OT_duplicate";
- ot->description= "Duplicate selected NLA-Strips, adding the new strips in new tracks above the originals";
+ ot->description= _("Duplicate selected NLA-Strips, adding the new strips in new tracks above the originals");
/* api callbacks */
ot->invoke= nlaedit_duplicate_invoke;
@@ -696,7 +696,7 @@ void NLA_OT_duplicate (wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* to give to transform */
- RNA_def_enum(ot->srna, "mode", transform_mode_types, TFM_TRANSLATION, "Mode", "");
+ RNA_def_enum(ot->srna, "mode", transform_mode_types, TFM_TRANSLATION, _("Mode"), "");
}
/* ******************** Delete Strips Operator ***************************** */
@@ -758,9 +758,9 @@ static int nlaedit_delete_exec (bContext *C, wmOperator *UNUSED(op))
void NLA_OT_delete (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Delete Strips";
+ ot->name= _("Delete Strips");
ot->idname= "NLA_OT_delete";
- ot->description= "Delete selected strips";
+ ot->description= _("Delete selected strips");
/* api callbacks */
ot->exec= nlaedit_delete_exec;
@@ -903,9 +903,9 @@ static int nlaedit_split_exec (bContext *C, wmOperator *UNUSED(op))
void NLA_OT_split (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Split Strips";
+ ot->name= _("Split Strips");
ot->idname= "NLA_OT_split";
- ot->description= "Split selected strips at their midpoints";
+ ot->description= _("Split selected strips at their midpoints");
/* api callbacks */
ot->exec= nlaedit_split_exec;
@@ -956,9 +956,9 @@ static int nlaedit_bake_exec (bContext *C, wmOperator *UNUSED(op))
static void NLA_OT_bake (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Bake Strips";
+ ot->name= _("Bake Strips");
ot->idname= "NLA_OT_bake";
- ot->description= "Bake all strips of selected AnimData blocks";
+ ot->description= _("Bake all strips of selected AnimData blocks");
/* api callbacks */
ot->exec= nlaedit_bake_exec;
@@ -1018,9 +1018,9 @@ static int nlaedit_toggle_mute_exec (bContext *C, wmOperator *UNUSED(op))
void NLA_OT_mute_toggle (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Toggle Muting";
+ ot->name= _("Toggle Muting");
ot->idname= "NLA_OT_mute_toggle";
- ot->description= "Mute or un-mute selected strips";
+ ot->description= _("Mute or un-mute selected strips");
/* api callbacks */
ot->exec= nlaedit_toggle_mute_exec;
@@ -1176,9 +1176,9 @@ static int nlaedit_swap_exec (bContext *C, wmOperator *op)
void NLA_OT_swap (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Swap Strips";
+ ot->name= _("Swap Strips");
ot->idname= "NLA_OT_swap";
- ot->description= "Swap order of selected strips within tracks";
+ ot->description= _("Swap order of selected strips within tracks");
/* api callbacks */
ot->exec= nlaedit_swap_exec;
@@ -1250,9 +1250,9 @@ static int nlaedit_move_up_exec (bContext *C, wmOperator *UNUSED(op))
void NLA_OT_move_up (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Move Strips Up";
+ ot->name= _("Move Strips Up");
ot->idname= "NLA_OT_move_up";
- ot->description= "Move selected strips up a track if there's room";
+ ot->description= _("Move selected strips up a track if there's room");
/* api callbacks */
ot->exec= nlaedit_move_up_exec;
@@ -1324,9 +1324,9 @@ static int nlaedit_move_down_exec (bContext *C, wmOperator *UNUSED(op))
void NLA_OT_move_down (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Move Strips Down";
+ ot->name= _("Move Strips Down");
ot->idname= "NLA_OT_move_down";
- ot->description= "Move selected strips down a track if there's room";
+ ot->description= _("Move selected strips down a track if there's room");
/* api callbacks */
ot->exec= nlaedit_move_down_exec;
@@ -1400,9 +1400,9 @@ static int nlaedit_sync_actlen_exec (bContext *C, wmOperator *op)
void NLA_OT_action_sync_length (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Sync Action Length";
+ ot->name= _("Sync Action Length");
ot->idname= "NLA_OT_action_sync_length";
- ot->description= "Synchronise the length of the referenced Action with the lengths used in the strip";
+ ot->description= _("Synchronise the length of the referenced Action with the lengths used in the strip");
/* api callbacks */
ot->exec= nlaedit_sync_actlen_exec;
@@ -1500,9 +1500,9 @@ static int nlaedit_apply_scale_exec (bContext *C, wmOperator *UNUSED(op))
void NLA_OT_apply_scale (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Apply Scale";
+ ot->name= _("Apply Scale");
ot->idname= "NLA_OT_apply_scale";
- ot->description= "Apply scaling of selected strips to their referenced Actions";
+ ot->description= _("Apply scaling of selected strips to their referenced Actions");
/* api callbacks */
ot->exec= nlaedit_apply_scale_exec;
@@ -1563,9 +1563,9 @@ static int nlaedit_clear_scale_exec (bContext *C, wmOperator *UNUSED(op))
void NLA_OT_clear_scale (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Clear Scale";
+ ot->name= _("Clear Scale");
ot->idname= "NLA_OT_clear_scale";
- ot->description= "Reset scaling of selected strips";
+ ot->description= _("Reset scaling of selected strips");
/* api callbacks */
ot->exec= nlaedit_clear_scale_exec;
@@ -1580,10 +1580,10 @@ void NLA_OT_clear_scale (wmOperatorType *ot)
/* defines for snap keyframes tool */
static EnumPropertyItem prop_nlaedit_snap_types[] = {
- {NLAEDIT_SNAP_CFRA, "CFRA", 0, "Current frame", ""},
- {NLAEDIT_SNAP_NEAREST_FRAME, "NEAREST_FRAME", 0, "Nearest Frame", ""}, // XXX as single entry?
- {NLAEDIT_SNAP_NEAREST_SECOND, "NEAREST_SECOND", 0, "Nearest Second", ""}, // XXX as single entry?
- {NLAEDIT_SNAP_NEAREST_MARKER, "NEAREST_MARKER", 0, "Nearest Marker", ""},
+ {NLAEDIT_SNAP_CFRA, "CFRA", 0, N_("Current frame"), ""},
+ {NLAEDIT_SNAP_NEAREST_FRAME, "NEAREST_FRAME", 0, N_("Nearest Frame"), ""}, // XXX as single entry?
+ {NLAEDIT_SNAP_NEAREST_SECOND, "NEAREST_SECOND", 0, N_("Nearest Second"), ""}, // XXX as single entry?
+ {NLAEDIT_SNAP_NEAREST_MARKER, "NEAREST_MARKER", 0, N_("Nearest Marker"), ""},
{0, NULL, 0, NULL, NULL}
};
@@ -1704,9 +1704,9 @@ static int nlaedit_snap_exec (bContext *C, wmOperator *op)
void NLA_OT_snap (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Snap Strips";
+ ot->name= _("Snap Strips");
ot->idname= "NLA_OT_snap";
- ot->description= "Move start of strips to specified time";
+ ot->description= _("Move start of strips to specified time");
/* api callbacks */
ot->invoke= WM_menu_invoke;
@@ -1717,7 +1717,7 @@ void NLA_OT_snap (wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
- ot->prop= RNA_def_enum(ot->srna, "type", prop_nlaedit_snap_types, 0, "Type", "");
+ ot->prop= RNA_def_enum(ot->srna, "type", prop_nlaedit_snap_types, 0, _("Type"), "");
}
/* *********************************************** */
@@ -1819,9 +1819,9 @@ static int nla_fmodifier_add_exec(bContext *C, wmOperator *op)
void NLA_OT_fmodifier_add (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Add F-Modifier";
+ ot->name= _("Add F-Modifier");
ot->idname= "NLA_OT_fmodifier_add";
- ot->description= "Add F-Modifier of the specified type to the selected NLA-Strips";
+ ot->description= _("Add F-Modifier of the specified type to the selected NLA-Strips");
/* api callbacks */
ot->invoke= nla_fmodifier_add_invoke;
@@ -1832,7 +1832,7 @@ void NLA_OT_fmodifier_add (wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* id-props */
- ot->prop= RNA_def_enum(ot->srna, "type", fmodifier_type_items, 0, "Type", "");
+ ot->prop= RNA_def_enum(ot->srna, "type", fmodifier_type_items, 0, _("Type"), "");
RNA_def_boolean(ot->srna, "only_active", 0, _("Only Active"), _("Only add F-Modifier of the specified type to the active strip."));
}
@@ -1883,9 +1883,9 @@ static int nla_fmodifier_copy_exec(bContext *C, wmOperator *op)
void NLA_OT_fmodifier_copy (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Copy F-Modifiers";
+ ot->name= _("Copy F-Modifiers");
ot->idname= "NLA_OT_fmodifier_copy";
- ot->description= "Copy the F-Modifier(s) of the active NLA-Strip";
+ ot->description= _("Copy the F-Modifier(s) of the active NLA-Strip");
/* api callbacks */
ot->exec= nla_fmodifier_copy_exec;
@@ -1945,9 +1945,9 @@ static int nla_fmodifier_paste_exec(bContext *C, wmOperator *op)
void NLA_OT_fmodifier_paste (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Paste F-Modifiers";
+ ot->name= _("Paste F-Modifiers");
ot->idname= "NLA_OT_fmodifier_paste";
- ot->description= "Add copied F-Modifiers to the selected NLA-Strips";
+ ot->description= _("Add copied F-Modifiers to the selected NLA-Strips");
/* api callbacks */
ot->exec= nla_fmodifier_paste_exec;
diff --git a/source/blender/editors/space_nla/nla_select.c b/source/blender/editors/space_nla/nla_select.c
index 0bd96e510c1..d8f27c9399b 100644
--- a/source/blender/editors/space_nla/nla_select.c
+++ b/source/blender/editors/space_nla/nla_select.c
@@ -189,9 +189,9 @@ static int nlaedit_deselectall_exec(bContext *C, wmOperator *op)
void NLA_OT_select_all_toggle (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Select or Deselect All";
+ ot->name= _("Select or Deselect All");
ot->idname= "NLA_OT_select_all_toggle";
- ot->description= "(De)Select all NLA-Strips";
+ ot->description= _("(De)Select all NLA-Strips");
/* api callbacks */
ot->exec= nlaedit_deselectall_exec;
@@ -327,9 +327,9 @@ static int nlaedit_borderselect_exec(bContext *C, wmOperator *op)
void NLA_OT_select_border(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Border Select";
+ ot->name= _("Border Select");
ot->idname= "NLA_OT_select_border";
- ot->description= "Use box selection to grab NLA-Strips";
+ ot->description= _("Use box selection to grab NLA-Strips");
/* api callbacks */
ot->invoke= WM_border_select_invoke;
@@ -353,9 +353,9 @@ void NLA_OT_select_border(wmOperatorType *ot)
/* defines for left-right select tool */
static EnumPropertyItem prop_nlaedit_leftright_select_types[] = {
- {NLAEDIT_LRSEL_TEST, "CHECK", 0, "Check if Select Left or Right", ""},
- {NLAEDIT_LRSEL_LEFT, "LEFT", 0, "Before current frame", ""},
- {NLAEDIT_LRSEL_RIGHT, "RIGHT", 0, "After current frame", ""},
+ {NLAEDIT_LRSEL_TEST, "CHECK", 0, N_("Check if Select Left or Right"), ""},
+ {NLAEDIT_LRSEL_LEFT, "LEFT", 0, N_("Before current frame"), ""},
+ {NLAEDIT_LRSEL_RIGHT, "RIGHT", 0, N_("After current frame"), ""},
{0, NULL, 0, NULL, NULL}
};
@@ -479,9 +479,9 @@ static int nlaedit_select_leftright_invoke (bContext *C, wmOperator *op, wmEvent
void NLA_OT_select_leftright (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Select Left/Right";
+ ot->name= _("Select Left/Right");
ot->idname= "NLA_OT_select_leftright";
- ot->description= "Select strips to the left or the right of the current frame ";
+ ot->description= _("Select strips to the left or the right of the current frame ");
/* api callbacks */
ot->invoke= nlaedit_select_leftright_invoke;
@@ -492,7 +492,7 @@ void NLA_OT_select_leftright (wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* id-props */
- ot->prop= RNA_def_enum(ot->srna, "mode", prop_nlaedit_leftright_select_types, NLAEDIT_LRSEL_TEST, "Mode", "");
+ ot->prop= RNA_def_enum(ot->srna, "mode", RNA_enum_items_gettexted(prop_nlaedit_leftright_select_types), NLAEDIT_LRSEL_TEST, _("Mode"), "");
RNA_def_boolean(ot->srna, "extend", 0, _("Extend Select"), "");
}
@@ -640,9 +640,9 @@ static int nlaedit_clickselect_invoke(bContext *C, wmOperator *op, wmEvent *even
void NLA_OT_click_select (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Mouse Select";
+ ot->name= _("Mouse Select");
ot->idname= "NLA_OT_click_select";
- ot->description= "Handle clicks to select NLA Strips";
+ ot->description= _("Handle clicks to select NLA Strips");
/* api callbacks - absolutely no exec() this yet... */
ot->invoke= nlaedit_clickselect_invoke;
diff --git a/source/blender/editors/space_node/node_buttons.c b/source/blender/editors/space_node/node_buttons.c
index 684961f2606..76c67298e94 100644
--- a/source/blender/editors/space_node/node_buttons.c
+++ b/source/blender/editors/space_node/node_buttons.c
@@ -46,6 +46,8 @@
#include "BLI_rand.h"
#include "BLI_utildefines.h"
+#include "BLF_api.h"
+
#include "BKE_context.h"
#include "BKE_node.h"
#include "BKE_screen.h"
@@ -162,8 +164,8 @@ static int node_properties_poll(bContext *C)
void NODE_OT_properties(wmOperatorType *ot)
{
- ot->name= "Properties";
- ot->description= "Toggles the properties panel display";
+ ot->name= _("Properties");
+ ot->description= _("Toggles the properties panel display");
ot->idname= "NODE_OT_properties";
ot->exec= node_properties;
diff --git a/source/blender/editors/space_node/node_edit.c b/source/blender/editors/space_node/node_edit.c
index a2d0b8b1c4f..9064d27ae7e 100644
--- a/source/blender/editors/space_node/node_edit.c
+++ b/source/blender/editors/space_node/node_edit.c
@@ -90,8 +90,8 @@
#include "node_intern.h"
static EnumPropertyItem socket_in_out_items[] = {
- { SOCK_IN, "IN", 0, "In", "" },
- { SOCK_OUT, "OUT", 0, "Out", "" },
+ { SOCK_IN, "IN", 0, N_("In"), "" },
+ { SOCK_OUT, "OUT", 0, N_("Out"), "" },
{ 0, NULL, 0, NULL, NULL}
};
@@ -638,8 +638,8 @@ static int node_group_edit_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(e
void NODE_OT_group_edit(wmOperatorType *ot)
{
/* identifiers */
- ot->name = "Edit Group";
- ot->description = "Edit node group";
+ ot->name = _("Edit Group");
+ ot->description = _("Edit node group");
ot->idname = "NODE_OT_group_edit";
/* api callbacks */
@@ -687,8 +687,8 @@ static int node_group_socket_add_exec(bContext *C, wmOperator *op)
void NODE_OT_group_socket_add(wmOperatorType *ot)
{
/* identifiers */
- ot->name = "Add Group Socket";
- ot->description = "Add node group socket";
+ ot->name = _("Add Group Socket");
+ ot->description = _("Add node group socket");
ot->idname = "NODE_OT_group_socket_add";
/* api callbacks */
@@ -698,9 +698,9 @@ void NODE_OT_group_socket_add(wmOperatorType *ot)
/* flags */
ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
- RNA_def_enum(ot->srna, "in_out", socket_in_out_items, SOCK_IN, "Socket Type", "Input or Output");
- RNA_def_string(ot->srna, "name", "", 32, "Name", "Group socket name");
- RNA_def_enum(ot->srna, "type", node_socket_type_items, SOCK_VALUE, "Type", "Type of the group socket");
+ RNA_def_enum(ot->srna, "in_out", socket_in_out_items, SOCK_IN, _("Socket Type"), _("Input or Output"));
+ RNA_def_string(ot->srna, "name", "", 32, _("Name"), _("Group socket name"));
+ RNA_def_enum(ot->srna, "type", node_socket_type_items, SOCK_VALUE, _("Type"), _("Type of the group socket"));
}
/* ***************** Remove Group Socket operator ************* */
@@ -739,8 +739,8 @@ static int node_group_socket_remove_exec(bContext *C, wmOperator *op)
void NODE_OT_group_socket_remove(wmOperatorType *ot)
{
/* identifiers */
- ot->name = "Remove Group Socket";
- ot->description = "Removed node group socket";
+ ot->name = _("Remove Group Socket");
+ ot->description = _("Removed node group socket");
ot->idname = "NODE_OT_group_socket_remove";
/* api callbacks */
@@ -805,8 +805,8 @@ static int node_group_socket_move_up_exec(bContext *C, wmOperator *op)
void NODE_OT_group_socket_move_up(wmOperatorType *ot)
{
/* identifiers */
- ot->name = "Move Group Socket Up";
- ot->description = "Move up node group socket";
+ ot->name = _("Move Group Socket Up");
+ ot->description = _("Move up node group socket");
ot->idname = "NODE_OT_group_socket_move_up";
/* api callbacks */
@@ -871,8 +871,8 @@ static int node_group_socket_move_down_exec(bContext *C, wmOperator *op)
void NODE_OT_group_socket_move_down(wmOperatorType *ot)
{
/* identifiers */
- ot->name = "Move Group Socket Down";
- ot->description = "Move down node group socket";
+ ot->name = _("Move Group Socket Down");
+ ot->description = _("Move down node group socket");
ot->idname = "NODE_OT_group_socket_move_down";
/* api callbacks */
@@ -922,8 +922,8 @@ static int node_group_ungroup_exec(bContext *C, wmOperator *op)
void NODE_OT_group_ungroup(wmOperatorType *ot)
{
/* identifiers */
- ot->name = "Ungroup";
- ot->description = "Ungroup selected nodes";
+ ot->name = _("Ungroup");
+ ot->description = _("Ungroup selected nodes");
ot->idname = "NODE_OT_group_ungroup";
/* api callbacks */
@@ -1092,8 +1092,8 @@ static int snode_bg_viewmove_cancel(bContext *UNUSED(C), wmOperator *op)
void NODE_OT_backimage_move(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Background Image Move";
- ot->description = "Move Node backdrop";
+ ot->name= _("Background Image Move");
+ ot->description = _("Move Node backdrop");
ot->idname= "NODE_OT_backimage_move";
/* api callbacks */
@@ -1123,7 +1123,7 @@ void NODE_OT_backimage_zoom(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Background Image Zoom";
+ ot->name= _("Background Image Zoom");
ot->idname= "NODE_OT_backimage_zoom";
/* api callbacks */
@@ -1134,7 +1134,7 @@ void NODE_OT_backimage_zoom(wmOperatorType *ot)
ot->flag= OPTYPE_BLOCKING;
/* internal */
- RNA_def_float(ot->srna, "factor", 1.2f, 0.0f, 10.0f, "Factor", "", 0.0f, 10.0f);
+ RNA_def_float(ot->srna, "factor", 1.2f, 0.0f, 10.0f, _("Factor"), "", 0.0f, 10.0f);
}
/******************** sample backdrop operator ********************/
@@ -1286,7 +1286,7 @@ static int sample_cancel(bContext *C, wmOperator *op)
void NODE_OT_backimage_sample(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Backimage Sample";
+ ot->name= _("Backimage Sample");
ot->idname= "NODE_OT_backimage_sample";
/* api callbacks */
@@ -1405,7 +1405,7 @@ static int node_resize_cancel(bContext *UNUSED(C), wmOperator *op)
void NODE_OT_resize(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Resize Node";
+ ot->name= _("Resize Node");
ot->idname= "NODE_OT_resize";
/* api callbacks */
@@ -1612,8 +1612,8 @@ static int node_active_link_viewer(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_link_viewer(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Link to Viewer Node";
- ot->description = "Link to Viewer Node";
+ ot->name= _("Link to Viewer Node");
+ ot->description = _("Link to Viewer Node");
ot->idname= "NODE_OT_link_viewer";
/* api callbacks */
@@ -2045,8 +2045,8 @@ static int node_duplicate_exec(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_duplicate(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Duplicate Nodes";
- ot->description = "Duplicate the nodes";
+ ot->name= _("Duplicate Nodes");
+ ot->description = _("Duplicate the nodes");
ot->idname= "NODE_OT_duplicate";
/* api callbacks */
@@ -2313,7 +2313,7 @@ static int node_link_cancel(bContext *C, wmOperator *op)
void NODE_OT_link(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Link Nodes";
+ ot->name= _("Link Nodes");
ot->idname= "NODE_OT_link";
/* api callbacks */
@@ -2349,8 +2349,8 @@ static int node_make_link_exec(bContext *C, wmOperator *op)
void NODE_OT_link_make(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Make Links";
- ot->description= "Makes a link between selected output in input sockets";
+ ot->name= _("Make Links");
+ ot->description= _("Makes a link between selected output in input sockets");
ot->idname= "NODE_OT_link_make";
/* callbacks */
@@ -2428,7 +2428,7 @@ void NODE_OT_links_cut(wmOperatorType *ot)
{
PropertyRNA *prop;
- ot->name= "Cut links";
+ ot->name= _("Cut links");
ot->idname= "NODE_OT_links_cut";
ot->invoke= WM_gesture_lines_invoke;
@@ -2485,7 +2485,7 @@ static int node_read_renderlayers_exec(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_read_renderlayers(wmOperatorType *ot)
{
- ot->name= "Read Render Layers";
+ ot->name= _("Read Render Layers");
ot->idname= "NODE_OT_read_renderlayers";
ot->exec= node_read_renderlayers_exec;
@@ -2517,7 +2517,7 @@ static int node_read_fullsamplelayers_exec(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_read_fullsamplelayers(wmOperatorType *ot)
{
- ot->name= "Read Full Sample Layers";
+ ot->name= _("Read Full Sample Layers");
ot->idname= "NODE_OT_read_fullsamplelayers";
ot->exec= node_read_fullsamplelayers_exec;
@@ -2565,7 +2565,7 @@ int node_render_changed_exec(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_render_changed(wmOperatorType *ot)
{
- ot->name= "Render Changed Layer";
+ ot->name= _("Render Changed Layer");
ot->idname= "NODE_OT_render_changed";
ot->exec= node_render_changed_exec;
@@ -2624,8 +2624,8 @@ static int node_group_make_exec(bContext *C, wmOperator *op)
void NODE_OT_group_make(wmOperatorType *ot)
{
/* identifiers */
- ot->name = "Group";
- ot->description = "Make group from selected nodes";
+ ot->name = _("Group");
+ ot->description = _("Make group from selected nodes");
ot->idname = "NODE_OT_group_make";
/* api callbacks */
@@ -2687,8 +2687,8 @@ static int node_hide_exec(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_hide_toggle(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Hide";
- ot->description= "Toggle hiding of selected nodes";
+ ot->name= _("Hide");
+ ot->description= _("Toggle hiding of selected nodes");
ot->idname= "NODE_OT_hide_toggle";
/* callbacks */
@@ -2719,8 +2719,8 @@ static int node_preview_exec(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_preview_toggle(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Toggle Node Preview";
- ot->description= "Toggle preview display for selected nodes";
+ ot->name= _("Toggle Node Preview");
+ ot->description= _("Toggle preview display for selected nodes");
ot->idname= "NODE_OT_preview_toggle";
/* callbacks */
@@ -2768,8 +2768,8 @@ static int node_socket_toggle_exec(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_hide_socket_toggle(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Toggle Hidden Node Sockets";
- ot->description= "Toggle unused node socket display";
+ ot->name= _("Toggle Hidden Node Sockets");
+ ot->description= _("Toggle unused node socket display");
ot->idname= "NODE_OT_hide_socket_toggle";
/* callbacks */
@@ -2811,8 +2811,8 @@ static int node_mute_exec(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_mute_toggle(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Toggle Node Mute";
- ot->description= "Toggle muting of the nodes";
+ ot->name= _("Toggle Node Mute");
+ ot->description= _("Toggle muting of the nodes");
ot->idname= "NODE_OT_mute_toggle";
/* callbacks */
@@ -2853,8 +2853,8 @@ static int node_delete_exec(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_delete(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Delete";
- ot->description = "Delete selected nodes";
+ ot->name= _("Delete");
+ ot->description = _("Delete selected nodes");
ot->idname= "NODE_OT_delete";
/* api callbacks */
@@ -2881,8 +2881,8 @@ static int node_show_cycles_exec(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_show_cyclic_dependencies(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Show Cyclic Dependencies";
- ot->description= "Sort the nodes and show the cyclic dependencies between the nodes";
+ ot->name= _("Show Cyclic Dependencies");
+ ot->description= _("Sort the nodes and show the cyclic dependencies between the nodes");
ot->idname= "NODE_OT_show_cyclic_dependencies";
/* callbacks */
@@ -2970,8 +2970,8 @@ static int node_add_file_invoke(bContext *C, wmOperator *op, wmEvent *event)
void NODE_OT_add_file(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Add File Node";
- ot->description= "Add a file node to the current node editor";
+ ot->name= _("Add File Node");
+ ot->description= _("Add a file node to the current node editor");
ot->idname= "NODE_OT_add_file";
/* callbacks */
@@ -2983,6 +2983,6 @@ void NODE_OT_add_file(wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
WM_operator_properties_filesel(ot, FOLDERFILE|IMAGEFILE, FILE_SPECIAL, FILE_OPENFILE, WM_FILESEL_FILEPATH); //XXX TODO, relative_path
- RNA_def_string(ot->srna, "name", "Image", 24, "Name", "Datablock name to assign.");
+ RNA_def_string(ot->srna, "name", "Image", 24, _("Name"), _("Datablock name to assign."));
}
diff --git a/source/blender/editors/space_node/node_ops.c b/source/blender/editors/space_node/node_ops.c
index 11e7949791d..fd236c683a1 100644
--- a/source/blender/editors/space_node/node_ops.c
+++ b/source/blender/editors/space_node/node_ops.c
@@ -42,6 +42,8 @@
#include "RNA_access.h"
+#include "BLF_api.h"
+
#include "WM_api.h"
#include "WM_types.h"
@@ -101,11 +103,11 @@ void ED_operatormacros_node(void)
{
wmOperatorType *ot;
- ot= WM_operatortype_append_macro("NODE_OT_duplicate_move", "Duplicate", OPTYPE_UNDO|OPTYPE_REGISTER);
+ ot= WM_operatortype_append_macro("NODE_OT_duplicate_move", _("Duplicate"), OPTYPE_UNDO|OPTYPE_REGISTER);
WM_operatortype_macro_define(ot, "NODE_OT_duplicate");
WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
- ot= WM_operatortype_append_macro("NODE_OT_select_link_viewer", "Link Viewer", OPTYPE_UNDO);
+ ot= WM_operatortype_append_macro("NODE_OT_select_link_viewer", _("Link Viewer"), OPTYPE_UNDO);
WM_operatortype_macro_define(ot, "NODE_OT_select");
WM_operatortype_macro_define(ot, "NODE_OT_link_viewer");
diff --git a/source/blender/editors/space_node/node_select.c b/source/blender/editors/space_node/node_select.c
index d8dfa6c41b9..36525bc517c 100644
--- a/source/blender/editors/space_node/node_select.c
+++ b/source/blender/editors/space_node/node_select.c
@@ -136,9 +136,9 @@ static int node_select_invoke(bContext *C, wmOperator *op, wmEvent *event)
void NODE_OT_select(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Select";
+ ot->name= _("Select");
ot->idname= "NODE_OT_select";
- ot->description= "Select node under cursor";
+ ot->description= _("Select node under cursor");
/* api callbacks */
ot->invoke= node_select_invoke;
@@ -209,9 +209,9 @@ static int node_border_select_invoke(bContext *C, wmOperator *op, wmEvent *event
void NODE_OT_select_border(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Border Select";
+ ot->name= _("Border Select");
ot->idname= "NODE_OT_select_border";
- ot->description= "Use box selection to select nodes";
+ ot->description= _("Use box selection to select nodes");
/* api callbacks */
ot->invoke= node_border_select_invoke;
@@ -258,8 +258,8 @@ static int node_select_all_exec(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_select_all(wmOperatorType *ot)
{
/* identifiers */
- ot->name = "Select or Deselect All";
- ot->description = "(De)select all nodes";
+ ot->name = _("Select or Deselect All");
+ ot->description = _("(De)select all nodes");
ot->idname = "NODE_OT_select_all";
/* api callbacks */
@@ -298,8 +298,8 @@ static int node_select_linked_to_exec(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_select_linked_to(wmOperatorType *ot)
{
/* identifiers */
- ot->name = "Select Linked To";
- ot->description = "Select nodes linked to the selected ones";
+ ot->name = _("Select Linked To");
+ ot->description = _("Select nodes linked to the selected ones");
ot->idname = "NODE_OT_select_linked_to";
/* api callbacks */
@@ -338,8 +338,8 @@ static int node_select_linked_from_exec(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_select_linked_from(wmOperatorType *ot)
{
/* identifiers */
- ot->name = "Select Linked From";
- ot->description = "Select nodes linked from the selected ones";
+ ot->name = _("Select Linked From");
+ ot->description = _("Select nodes linked from the selected ones");
ot->idname = "NODE_OT_select_linked_from";
/* api callbacks */
@@ -364,8 +364,8 @@ static int node_select_same_type_exec(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_select_same_type(wmOperatorType *ot)
{
/* identifiers */
- ot->name = "Select Same Type";
- ot->description = "Select all the same type";
+ ot->name = _("Select Same Type");
+ ot->description = _("Select all the same type");
ot->idname = "NODE_OT_select_same_type";
/* api callbacks */
@@ -390,8 +390,8 @@ static int node_select_same_type_next_exec(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_select_same_type_next(wmOperatorType *ot)
{
/* identifiers */
- ot->name = "Select Same Type Next";
- ot->description = "Select the next node of the same type.";
+ ot->name = _("Select Same Type Next");
+ ot->description = _("Select the next node of the same type.");
ot->idname = "NODE_OT_select_same_type_next";
/* api callbacks */
@@ -414,8 +414,8 @@ static int node_select_same_type_prev_exec(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_select_same_type_prev(wmOperatorType *ot)
{
/* identifiers */
- ot->name = "Select Same Type Prev";
- ot->description = "Select the prev node of the same type.";
+ ot->name = _("Select Same Type Prev");
+ ot->description = _("Select the prev node of the same type.");
ot->idname = "NODE_OT_select_same_type_prev";
/* api callbacks */
diff --git a/source/blender/editors/space_node/node_state.c b/source/blender/editors/space_node/node_state.c
index 1daa425e244..a422222ae26 100644
--- a/source/blender/editors/space_node/node_state.c
+++ b/source/blender/editors/space_node/node_state.c
@@ -212,9 +212,9 @@ static int node_toggle_visibility_invoke(bContext *C, wmOperator *op, wmEvent *e
void NODE_OT_visibility_toggle(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Toggle Visibility";
+ ot->name= _("Toggle Visibility");
ot->idname= "NODE_OT_visibility_toggle";
- ot->description= "Handle clicks on node header buttons";
+ ot->description= _("Handle clicks on node header buttons");
/* api callbacks */
ot->invoke= node_toggle_visibility_invoke;
@@ -295,9 +295,9 @@ static int node_view_all_exec(bContext *C, wmOperator *UNUSED(op))
void NODE_OT_view_all(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "View All";
+ ot->name= _("View All");
ot->idname= "NODE_OT_view_all";
- ot->description= "Resize view so you can see all nodes";
+ ot->description= _("Resize view so you can see all nodes");
/* api callbacks */
ot->exec= node_view_all_exec;
diff --git a/source/blender/editors/space_outliner/outliner.c b/source/blender/editors/space_outliner/outliner.c
index 1ec4d42d453..d70e9af1a0b 100644
--- a/source/blender/editors/space_outliner/outliner.c
+++ b/source/blender/editors/space_outliner/outliner.c
@@ -1649,9 +1649,9 @@ static int outliner_toggle_visibility_exec(bContext *C, wmOperator *UNUSED(op))
void OUTLINER_OT_visibility_toggle(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Toggle Visibility";
+ ot->name= _("Toggle Visibility");
ot->idname= "OUTLINER_OT_visibility_toggle";
- ot->description= "Toggle the visibility of selected items";
+ ot->description= _("Toggle the visibility of selected items");
/* callbacks */
ot->exec= outliner_toggle_visibility_exec;
@@ -1689,9 +1689,9 @@ static int outliner_toggle_selectability_exec(bContext *C, wmOperator *UNUSED(op
void OUTLINER_OT_selectability_toggle(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Toggle Selectability";
+ ot->name= _("Toggle Selectability");
ot->idname= "OUTLINER_OT_selectability_toggle";
- ot->description= "Toggle the selectability";
+ ot->description= _("Toggle the selectability");
/* callbacks */
ot->exec= outliner_toggle_selectability_exec;
@@ -1726,9 +1726,9 @@ static int outliner_toggle_renderability_exec(bContext *C, wmOperator *UNUSED(op
void OUTLINER_OT_renderability_toggle(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Toggle Renderability";
+ ot->name= _("Toggle Renderability");
ot->idname= "OUTLINER_OT_renderability_toggle";
- ot->description= "Toggle the renderability of selected items";
+ ot->description= _("Toggle the renderability of selected items");
/* callbacks */
ot->exec= outliner_toggle_renderability_exec;
@@ -1757,9 +1757,9 @@ static int outliner_toggle_expanded_exec(bContext *C, wmOperator *UNUSED(op))
void OUTLINER_OT_expanded_toggle(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Expand/Collapse All";
+ ot->name= _("Expand/Collapse All");
ot->idname= "OUTLINER_OT_expanded_toggle";
- ot->description= "Expand/Collapse all items";
+ ot->description= _("Expand/Collapse all items");
/* callbacks */
ot->exec= outliner_toggle_expanded_exec;
@@ -1792,9 +1792,9 @@ static int outliner_toggle_selected_exec(bContext *C, wmOperator *UNUSED(op))
void OUTLINER_OT_selected_toggle(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Toggle Selected";
+ ot->name= _("Toggle Selected");
ot->idname= "OUTLINER_OT_selected_toggle";
- ot->description= "Toggle the Outliner selection of items";
+ ot->description= _("Toggle the Outliner selection of items");
/* callbacks */
ot->exec= outliner_toggle_selected_exec;
@@ -2747,9 +2747,9 @@ static int outliner_item_rename(bContext *C, wmOperator *UNUSED(op), wmEvent *ev
void OUTLINER_OT_item_rename(wmOperatorType *ot)
{
- ot->name= "Rename Item";
+ ot->name= _("Rename Item");
ot->idname= "OUTLINER_OT_item_rename";
- ot->description= "Rename item under cursor";
+ ot->description= _("Rename item under cursor");
ot->invoke= outliner_item_rename;
@@ -3438,12 +3438,12 @@ static void outliner_del(bContext *C, Scene *scene, ARegion *UNUSED(ar), SpaceOo
/* **************************************** */
static EnumPropertyItem prop_object_op_types[] = {
- {1, "SELECT", 0, "Select", ""},
- {2, "DESELECT", 0, "Deselect", ""},
- {4, "DELETE", 0, "Delete", ""},
- {6, "TOGVIS", 0, "Toggle Visible", ""},
- {7, "TOGSEL", 0, "Toggle Selectable", ""},
- {8, "TOGREN", 0, "Toggle Renderable", ""},
+ {1, "SELECT", 0, N_("Select"), ""},
+ {2, "DESELECT", 0, N_("Deselect"), ""},
+ {4, "DELETE", 0, N_("Delete"), ""},
+ {6, "TOGVIS", 0, N_("Toggle Visible"), ""},
+ {7, "TOGSEL", 0, N_("Toggle Selectable"), ""},
+ {8, "TOGREN", 0, N_("Toggle Renderable"), ""},
{0, NULL, 0, NULL, NULL}
};
@@ -3511,7 +3511,7 @@ static int outliner_object_operation_exec(bContext *C, wmOperator *op)
void OUTLINER_OT_object_operation(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Outliner Object Operation";
+ ot->name= _("Outliner Object Operation");
ot->idname= "OUTLINER_OT_object_operation";
ot->description= "";
@@ -3522,18 +3522,18 @@ void OUTLINER_OT_object_operation(wmOperatorType *ot)
ot->flag= 0;
- ot->prop= RNA_def_enum(ot->srna, "type", prop_object_op_types, 0, "Object Operation", "");
+ ot->prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(prop_object_op_types), 0, _("Object Operation"), "");
}
/* **************************************** */
static EnumPropertyItem prop_group_op_types[] = {
- {1, "UNLINK", 0, "Unlink", ""},
- {2, "LOCAL", 0, "Make Local", ""},
- {3, "LINK", 0, "Link Group Objects to Scene", ""},
- {4, "TOGVIS", 0, "Toggle Visible", ""},
- {5, "TOGSEL", 0, "Toggle Selectable", ""},
- {6, "TOGREN", 0, "Toggle Renderable", ""},
+ {1, "UNLINK", 0, N_("Unlink"), ""},
+ {2, "LOCAL", 0, N_("Make Local"), ""},
+ {3, "LINK", 0, N_("Link Group Objects to Scene"), ""},
+ {4, "TOGVIS", 0, N_("Toggle Visible"), ""},
+ {5, "TOGSEL", 0, N_("Toggle Selectable"), ""},
+ {6, "TOGREN", 0, N_("Toggle Renderable"), ""},
{0, NULL, 0, NULL, NULL}
};
@@ -3572,7 +3572,7 @@ static int outliner_group_operation_exec(bContext *C, wmOperator *op)
void OUTLINER_OT_group_operation(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Outliner Group Operation";
+ ot->name= _("Outliner Group Operation");
ot->idname= "OUTLINER_OT_group_operation";
ot->description= "";
@@ -3583,14 +3583,14 @@ void OUTLINER_OT_group_operation(wmOperatorType *ot)
ot->flag= 0;
- ot->prop= RNA_def_enum(ot->srna, "type", prop_group_op_types, 0, "Group Operation", "");
+ ot->prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(prop_group_op_types), 0, _("Group Operation"), "");
}
/* **************************************** */
static EnumPropertyItem prop_id_op_types[] = {
- {1, "UNLINK", 0, "Unlink", ""},
- {2, "LOCAL", 0, "Make Local", ""},
+ {1, "UNLINK", 0, N_("Unlink"), ""},
+ {2, "LOCAL", 0, N_("Make Local"), ""},
{0, NULL, 0, NULL, NULL}
};
@@ -3638,7 +3638,7 @@ static int outliner_id_operation_exec(bContext *C, wmOperator *op)
void OUTLINER_OT_id_operation(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Outliner ID data Operation";
+ ot->name= _("Outliner ID data Operation");
ot->idname= "OUTLINER_OT_id_operation";
ot->description= "";
@@ -3649,16 +3649,16 @@ void OUTLINER_OT_id_operation(wmOperatorType *ot)
ot->flag= 0;
- ot->prop= RNA_def_enum(ot->srna, "type", prop_id_op_types, 0, "ID data Operation", "");
+ ot->prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(prop_id_op_types), 0, _("ID data Operation"), "");
}
/* **************************************** */
static EnumPropertyItem prop_data_op_types[] = {
- {1, "SELECT", 0, "Select", ""},
- {2, "DESELECT", 0, "Deselect", ""},
- {3, "HIDE", 0, "Hide", ""},
- {4, "UNHIDE", 0, "Unhide", ""},
+ {1, "SELECT", 0, N_("Select"), ""},
+ {2, "DESELECT", 0, N_("Deselect"), ""},
+ {3, "HIDE", 0, N_("Hide"), ""},
+ {4, "UNHIDE", 0, N_("Unhide"), ""},
{0, NULL, 0, NULL, NULL}
};
@@ -3709,7 +3709,7 @@ static int outliner_data_operation_exec(bContext *C, wmOperator *op)
void OUTLINER_OT_data_operation(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Outliner Data Operation";
+ ot->name= _("Outliner Data Operation");
ot->idname= "OUTLINER_OT_data_operation";
ot->description= "";
@@ -3720,7 +3720,7 @@ void OUTLINER_OT_data_operation(wmOperatorType *ot)
ot->flag= 0;
- ot->prop= RNA_def_enum(ot->srna, "type", prop_data_op_types, 0, "Data Operation", "");
+ ot->prop= RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(prop_data_op_types), 0, _("Data Operation"), "");
}
@@ -3802,9 +3802,9 @@ static int outliner_operation(bContext *C, wmOperator *UNUSED(op), wmEvent *even
/* Menu only! Calls other operators */
void OUTLINER_OT_operation(wmOperatorType *ot)
{
- ot->name= "Execute Operation";
+ ot->name= _("Execute Operation");
ot->idname= "OUTLINER_OT_operation";
- ot->description= "Context menu for item operations";
+ ot->description= _("Context menu for item operations");
ot->invoke= outliner_operation;
@@ -4071,8 +4071,8 @@ void OUTLINER_OT_drivers_add_selected(wmOperatorType *ot)
{
/* api callbacks */
ot->idname= "OUTLINER_OT_drivers_add_selected";
- ot->name= "Add Drivers for Selected";
- ot->description= "Add drivers to selected items";
+ ot->name= _("Add Drivers for Selected");
+ ot->description= _("Add drivers to selected items");
/* api callbacks */
ot->exec= outliner_drivers_addsel_exec;
@@ -4106,8 +4106,8 @@ void OUTLINER_OT_drivers_delete_selected(wmOperatorType *ot)
{
/* identifiers */
ot->idname= "OUTLINER_OT_drivers_delete_selected";
- ot->name= "Delete Drivers for Selected";
- ot->description= "Delete drivers assigned to selected items";
+ ot->name= _("Delete Drivers for Selected");
+ ot->description= _("Delete drivers assigned to selected items");
/* api callbacks */
ot->exec= outliner_drivers_deletesel_exec;
@@ -4244,8 +4244,8 @@ void OUTLINER_OT_keyingset_add_selected(wmOperatorType *ot)
{
/* identifiers */
ot->idname= "OUTLINER_OT_keyingset_add_selected";
- ot->name= "Keying Set Add Selected";
- ot->description= "Add selected items (blue-grey rows) to active Keying Set";
+ ot->name= _("Keying Set Add Selected");
+ ot->description= _("Add selected items (blue-grey rows) to active Keying Set");
/* api callbacks */
ot->exec= outliner_keyingset_additems_exec;
@@ -4281,8 +4281,8 @@ void OUTLINER_OT_keyingset_remove_selected(wmOperatorType *ot)
{
/* identifiers */
ot->idname= "OUTLINER_OT_keyingset_remove_selected";
- ot->name= "Keying Set Remove Selected";
- ot->description = "Remove selected items (blue-grey rows) from active Keying Set";
+ ot->name= _("Keying Set Remove Selected");
+ ot->description = _("Remove selected items (blue-grey rows) from active Keying Set");
/* api callbacks */
ot->exec= outliner_keyingset_removeitems_exec;
diff --git a/source/blender/editors/space_script/script_edit.c b/source/blender/editors/space_script/script_edit.c
index 89b71db8b47..e4cddada224 100644
--- a/source/blender/editors/space_script/script_edit.c
+++ b/source/blender/editors/space_script/script_edit.c
@@ -84,7 +84,7 @@ void SCRIPT_OT_python_file_run(wmOperatorType *ot)
ot->exec= run_pyfile_exec;
ot->poll= ED_operator_areaactive;
- RNA_def_string_file_path(ot->srna, "filepath", "", 512, "Path", "");
+ RNA_def_string_file_path(ot->srna, "filepath", "", 512, _("Path"), "");
}
diff --git a/source/blender/editors/space_sequencer/sequencer_buttons.c b/source/blender/editors/space_sequencer/sequencer_buttons.c
index 01a43fd7fe1..a2f4e66fe67 100644
--- a/source/blender/editors/space_sequencer/sequencer_buttons.c
+++ b/source/blender/editors/space_sequencer/sequencer_buttons.c
@@ -38,6 +38,8 @@
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
+#include "BLF_api.h"
+
#include "BKE_context.h"
#include "BKE_screen.h"
@@ -109,9 +111,9 @@ static int sequencer_properties(bContext *C, wmOperator *UNUSED(op))
void SEQUENCER_OT_properties(wmOperatorType *ot)
{
- ot->name= "Properties";
+ ot->name= _("Properties");
ot->idname= "SEQUENCER_OT_properties";
- ot->description= "Open sequencer properties panel";
+ ot->description= _("Open sequencer properties panel");
ot->exec= sequencer_properties;
ot->poll= ED_operator_sequencer_active;
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c
index 53303212274..48ff4832593 100644
--- a/source/blender/editors/space_sequencer/sequencer_edit.c
+++ b/source/blender/editors/space_sequencer/sequencer_edit.c
@@ -87,37 +87,37 @@ static int okee(const char *UNUSED(dummy)) {return 0;}
/* XXX */
/* RNA Enums, used in multiple files */
EnumPropertyItem sequencer_prop_effect_types[] = {
- {SEQ_CROSS, "CROSS", 0, "Crossfade", "Crossfade effect strip type"},
- {SEQ_ADD, "ADD", 0, "Add", "Add effect strip type"},
- {SEQ_SUB, "SUBTRACT", 0, "Subtract", "Subtract effect strip type"},
- {SEQ_ALPHAOVER, "ALPHA_OVER", 0, "Alpha Over", "Alpha Over effect strip type"},
- {SEQ_ALPHAUNDER, "ALPHA_UNDER", 0, "Alpha Under", "Alpha Under effect strip type"},
- {SEQ_GAMCROSS, "GAMMA_CROSS", 0, "Gamma Cross", "Gamma Cross effect strip type"},
- {SEQ_MUL, "MULTIPLY", 0, "Multiply", "Multiply effect strip type"},
- {SEQ_OVERDROP, "OVER_DROP", 0, "Alpha Over Drop", "Alpha Over Drop effect strip type"},
- {SEQ_PLUGIN, "PLUGIN", 0, "Plugin", "Plugin effect strip type"},
- {SEQ_WIPE, "WIPE", 0, "Wipe", "Wipe effect strip type"},
- {SEQ_GLOW, "GLOW", 0, "Glow", "Glow effect strip type"},
- {SEQ_TRANSFORM, "TRANSFORM", 0, "Transform", "Transform effect strip type"},
- {SEQ_COLOR, "COLOR", 0, "Color", "Color effect strip type"},
- {SEQ_SPEED, "SPEED", 0, "Speed", "Color effect strip type"},
- {SEQ_MULTICAM, "MULTICAM", 0, "Multicam Selector", ""},
- {SEQ_ADJUSTMENT, "ADJUSTMENT", 0, "Adjustment Layer", ""},
+ {SEQ_CROSS, "CROSS", 0, N_("Crossfade"), N_("Crossfade effect strip type")},
+ {SEQ_ADD, "ADD", 0, N_("Add"), N_("Add effect strip type")},
+ {SEQ_SUB, "SUBTRACT", 0, N_("Subtract"), N_("Subtract effect strip type")},
+ {SEQ_ALPHAOVER, "ALPHA_OVER", 0, N_("Alpha Over"), N_("Alpha Over effect strip type")},
+ {SEQ_ALPHAUNDER, "ALPHA_UNDER", 0, N_("Alpha Under"), N_("Alpha Under effect strip type")},
+ {SEQ_GAMCROSS, "GAMMA_CROSS", 0, N_("Gamma Cross"), N_("Gamma Cross effect strip type")},
+ {SEQ_MUL, "MULTIPLY", 0, N_("Multiply"), N_("Multiply effect strip type")},
+ {SEQ_OVERDROP, "OVER_DROP", 0, N_("Alpha Over Drop"), N_("Alpha Over Drop effect strip type")},
+ {SEQ_PLUGIN, "PLUGIN", 0, N_("Plugin"), N_("Plugin effect strip type")},
+ {SEQ_WIPE, "WIPE", 0, N_("Wipe"), N_("Wipe effect strip type")},
+ {SEQ_GLOW, "GLOW", 0, N_("Glow"), N_("Glow effect strip type")},
+ {SEQ_TRANSFORM, "TRANSFORM", 0, N_("Transform"), N_("Transform effect strip type")},
+ {SEQ_COLOR, "COLOR", 0, N_("Color"), N_("Color effect strip type")},
+ {SEQ_SPEED, "SPEED", 0, N_("Speed"), N_("Color effect strip type")},
+ {SEQ_MULTICAM, "MULTICAM", 0, N_("Multicam Selector"), ""},
+ {SEQ_ADJUSTMENT, "ADJUSTMENT", 0, N_("Adjustment Layer"), ""},
{0, NULL, 0, NULL, NULL}
};
/* mute operator */
EnumPropertyItem prop_side_types[] = {
- {SEQ_SIDE_LEFT, "LEFT", 0, "Left", ""},
- {SEQ_SIDE_RIGHT, "RIGHT", 0, "Right", ""},
- {SEQ_SIDE_BOTH, "BOTH", 0, "Both", ""},
+ {SEQ_SIDE_LEFT, "LEFT", 0, N_("Left"), ""},
+ {SEQ_SIDE_RIGHT, "RIGHT", 0, N_("Right"), ""},
+ {SEQ_SIDE_BOTH, "BOTH", 0, N_("Both"), ""},
{0, NULL, 0, NULL, NULL}
};
static EnumPropertyItem prop_side_lr_types[] = {
- {SEQ_SIDE_LEFT, "LEFT", 0, "Left", ""},
- {SEQ_SIDE_RIGHT, "RIGHT", 0, "Right", ""},
+ {SEQ_SIDE_LEFT, "LEFT", 0, N_("Left"), ""},
+ {SEQ_SIDE_RIGHT, "RIGHT", 0, N_("Right"), ""},
{0, NULL, 0, NULL, NULL}
};
@@ -1183,9 +1183,9 @@ static int sequencer_snap_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(ev
void SEQUENCER_OT_snap(struct wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Snap strips";
+ ot->name= _("Snap strips");
ot->idname= "SEQUENCER_OT_snap";
- ot->description="Frame where selected strips will be snapped";
+ ot->description=_("Frame where selected strips will be snapped");
/* api callbacks */
ot->invoke= sequencer_snap_invoke;
@@ -1313,9 +1313,9 @@ static int sequencer_lock_exec(bContext *C, wmOperator *UNUSED(op))
void SEQUENCER_OT_lock(struct wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Lock Strips";
+ ot->name= _("Lock Strips");
ot->idname= "SEQUENCER_OT_lock";
- ot->description="Lock the active strip so that it can't be transformed";
+ ot->description=_("Lock the active strip so that it can't be transformed");
/* api callbacks */
ot->exec= sequencer_lock_exec;
@@ -1346,9 +1346,9 @@ static int sequencer_unlock_exec(bContext *C, wmOperator *UNUSED(op))
void SEQUENCER_OT_unlock(struct wmOperatorType *ot)
{
/* identifiers */
- ot->name= "UnLock Strips";
+ ot->name= _("UnLock Strips");
ot->idname= "SEQUENCER_OT_unlock";
- ot->description="Unlock the active strip so that it can't be transformed";
+ ot->description=_("Unlock the active strip so that it can't be transformed");
/* api callbacks */
ot->exec= sequencer_unlock_exec;
@@ -1379,9 +1379,9 @@ static int sequencer_reload_exec(bContext *C, wmOperator *UNUSED(op))
void SEQUENCER_OT_reload(struct wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Reload Strips";
+ ot->name= _("Reload Strips");
ot->idname= "SEQUENCER_OT_reload";
- ot->description="Reload strips in the sequencer";
+ ot->description=_("Reload strips in the sequencer");
/* api callbacks */
ot->exec= sequencer_reload_exec;
@@ -1407,9 +1407,9 @@ static int sequencer_refresh_all_exec(bContext *C, wmOperator *UNUSED(op))
void SEQUENCER_OT_refresh_all(struct wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Refresh Sequencer";
+ ot->name= _("Refresh Sequencer");
ot->idname= "SEQUENCER_OT_refresh_all";
- ot->description="Refresh the sequencer editor";
+ ot->description=_("Refresh the sequencer editor");
/* api callbacks */
ot->exec= sequencer_refresh_all_exec;
@@ -1467,9 +1467,9 @@ static int sequencer_effect_poll(bContext *C)
void SEQUENCER_OT_reassign_inputs(struct wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Reassign Inputs";
+ ot->name= _("Reassign Inputs");
ot->idname= "SEQUENCER_OT_reassign_inputs";
- ot->description="Reassign the inputs for the effects strip";
+ ot->description=_("Reassign the inputs for the effects strip");
/* api callbacks */
ot->exec= sequencer_reassign_inputs_exec;
@@ -1503,9 +1503,9 @@ static int sequencer_swap_inputs_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_swap_inputs(struct wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Swap Inputs";
+ ot->name= _("Swap Inputs");
ot->idname= "SEQUENCER_OT_swap_inputs";
- ot->description="Swap the first two inputs for the effects strip";
+ ot->description=_("Swap the first two inputs for the effects strip");
/* api callbacks */
ot->exec= sequencer_swap_inputs_exec;
@@ -1518,8 +1518,8 @@ void SEQUENCER_OT_swap_inputs(struct wmOperatorType *ot)
/* cut operator */
static EnumPropertyItem prop_cut_types[] = {
- {SEQ_CUT_SOFT, "SOFT", 0, "Soft", ""},
- {SEQ_CUT_HARD, "HARD", 0, "Hard", ""},
+ {SEQ_CUT_SOFT, "SOFT", 0, N_("Soft"), ""},
+ {SEQ_CUT_HARD, "HARD", 0, N_("Hard"), ""},
{0, NULL, 0, NULL, NULL}
};
@@ -1594,9 +1594,9 @@ static int sequencer_cut_invoke(bContext *C, wmOperator *op, wmEvent *event)
void SEQUENCER_OT_cut(struct wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Cut Strips";
+ ot->name= _("Cut Strips");
ot->idname= "SEQUENCER_OT_cut";
- ot->description="Cut the selected strips";
+ ot->description=_("Cut the selected strips");
/* api callbacks */
ot->invoke= sequencer_cut_invoke;
@@ -1607,8 +1607,8 @@ void SEQUENCER_OT_cut(struct wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
RNA_def_int(ot->srna, "frame", 0, INT_MIN, INT_MAX, _("Frame"), _("Frame where selected strips will be cut"), INT_MIN, INT_MAX);
- RNA_def_enum(ot->srna, "type", prop_cut_types, SEQ_CUT_SOFT, _("Type"), _("The type of cut operation to perform on strips"));
- RNA_def_enum(ot->srna, "side", prop_side_types, SEQ_SIDE_BOTH, _("Side"), _("The side that remains selected after cutting"));
+ RNA_def_enum(ot->srna, "type", RNA_enum_items_gettexted(prop_cut_types), SEQ_CUT_SOFT, _("Type"), _("The type of cut operation to perform on strips"));
+ RNA_def_enum(ot->srna, "side", RNA_enum_items_gettexted(prop_side_types), SEQ_SIDE_BOTH, _("Side"), _("The side that remains selected after cutting"));
}
/* duplicate operator */
@@ -1664,9 +1664,9 @@ static int sequencer_add_duplicate_invoke(bContext *C, wmOperator *op, wmEvent *
void SEQUENCER_OT_duplicate(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Duplicate Strips";
+ ot->name= _("Duplicate Strips");
ot->idname= "SEQUENCER_OT_duplicate";
- ot->description="Duplicate the selected strips";
+ ot->description=_("Duplicate the selected strips");
/* api callbacks */
ot->invoke= sequencer_add_duplicate_invoke;
@@ -1677,7 +1677,7 @@ void SEQUENCER_OT_duplicate(wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* to give to transform */
- RNA_def_enum(ot->srna, "mode", transform_mode_types, TFM_TRANSLATION, "Mode", "");
+ RNA_def_enum(ot->srna, "mode", transform_mode_types, TFM_TRANSLATION, _("Mode"), "");
}
/* delete operator */
@@ -1737,9 +1737,9 @@ void SEQUENCER_OT_delete(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Erase Strips";
+ ot->name= _("Erase Strips");
ot->idname= "SEQUENCER_OT_delete";
- ot->description="Erase selected strips from the sequencer";
+ ot->description=_("Erase selected strips from the sequencer");
/* api callbacks */
ot->invoke= WM_operator_confirm;
@@ -1830,9 +1830,9 @@ static int sequencer_separate_images_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_images_separate(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Separate Images";
+ ot->name= _("Separate Images");
ot->idname= "SEQUENCER_OT_images_separate";
- ot->description="On image sequences strips, it return a strip for each image";
+ ot->description=_("On image sequences strips, it return a strip for each image");
/* api callbacks */
ot->invoke= WM_operator_props_popup;
@@ -1903,9 +1903,9 @@ static int sequencer_meta_toggle_exec(bContext *C, wmOperator *UNUSED(op))
void SEQUENCER_OT_meta_toggle(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Toggle Meta Strip";
+ ot->name= _("Toggle Meta Strip");
ot->idname= "SEQUENCER_OT_meta_toggle";
- ot->description="Toggle a metastrip (to edit enclosed strips)";
+ ot->description=_("Toggle a metastrip (to edit enclosed strips)");
/* api callbacks */
ot->exec= sequencer_meta_toggle_exec;
@@ -1970,9 +1970,9 @@ static int sequencer_meta_make_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_meta_make(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Make Meta Strip";
+ ot->name= _("Make Meta Strip");
ot->idname= "SEQUENCER_OT_meta_make";
- ot->description="Group selected strips into a metastrip";
+ ot->description=_("Group selected strips into a metastrip");
/* api callbacks */
ot->invoke= WM_operator_confirm;
@@ -2041,9 +2041,9 @@ static int sequencer_meta_separate_exec(bContext *C, wmOperator *UNUSED(op))
void SEQUENCER_OT_meta_separate(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "UnMeta Strip";
+ ot->name= _("UnMeta Strip");
ot->idname= "SEQUENCER_OT_meta_separate";
- ot->description="Put the contents of a metastrip back in the sequencer";
+ ot->description=_("Put the contents of a metastrip back in the sequencer");
/* api callbacks */
ot->invoke= WM_operator_confirm;
@@ -2074,9 +2074,9 @@ static int sequencer_view_all_exec(bContext *C, wmOperator *UNUSED(op))
void SEQUENCER_OT_view_all(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "View All";
+ ot->name= _("View All");
ot->idname= "SEQUENCER_OT_view_all";
- ot->description="View all the strips in the sequencer";
+ ot->description=_("View all the strips in the sequencer");
/* api callbacks */
ot->exec= sequencer_view_all_exec;
@@ -2140,9 +2140,9 @@ static int sequencer_view_all_preview_exec(bContext *C, wmOperator *UNUSED(op))
void SEQUENCER_OT_view_all_preview(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "View All";
+ ot->name= _("View All");
ot->idname= "SEQUENCER_OT_view_all_preview";
- ot->description="Zoom preview to fit in the area";
+ ot->description=_("Zoom preview to fit in the area");
/* api callbacks */
ot->exec= sequencer_view_all_preview_exec;
@@ -2176,9 +2176,9 @@ static int sequencer_view_zoom_ratio_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_view_zoom_ratio(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Sequencer View Zoom Ratio";
+ ot->name= _("Sequencer View Zoom Ratio");
ot->idname= "SEQUENCER_OT_view_zoom_ratio";
- ot->description = "Change zoom ratio of sequencer preview";
+ ot->description = _("Change zoom ratio of sequencer preview");
/* api callbacks */
ot->exec= sequencer_view_zoom_ratio_exec;
@@ -2186,15 +2186,15 @@ void SEQUENCER_OT_view_zoom_ratio(wmOperatorType *ot)
/* properties */
RNA_def_float(ot->srna, "ratio", 1.0f, 0.0f, FLT_MAX,
- "Ratio", "Zoom ratio, 1.0 is 1:1, higher is zoomed in, lower is zoomed out.", -FLT_MAX, FLT_MAX);
+ _("Ratio"), _("Zoom ratio, 1.0 is 1:1, higher is zoomed in, lower is zoomed out."), -FLT_MAX, FLT_MAX);
}
#if 0
static EnumPropertyItem view_type_items[] = {
- {SEQ_VIEW_SEQUENCE, "SEQUENCER", ICON_SEQ_SEQUENCER, "Sequencer", ""},
- {SEQ_VIEW_PREVIEW, "PREVIEW", ICON_SEQ_PREVIEW, "Image Preview", ""},
- {SEQ_VIEW_SEQUENCE_PREVIEW, "SEQUENCER_PREVIEW", ICON_SEQ_SEQUENCER, "Sequencer and Image Preview", ""},
+ {SEQ_VIEW_SEQUENCE, "SEQUENCER", ICON_SEQ_SEQUENCER, N_("Sequencer"), ""},
+ {SEQ_VIEW_PREVIEW, "PREVIEW", ICON_SEQ_PREVIEW, N_("Image Preview"), ""},
+ {SEQ_VIEW_SEQUENCE_PREVIEW, "SEQUENCER_PREVIEW", ICON_SEQ_SEQUENCER, N_("Sequencer and Image Preview"), ""},
{0, NULL, 0, NULL, NULL}};
#endif
@@ -2214,9 +2214,9 @@ static int sequencer_view_toggle_exec(bContext *C, wmOperator *UNUSED(op))
void SEQUENCER_OT_view_toggle(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "View Toggle";
+ ot->name= _("View Toggle");
ot->idname= "SEQUENCER_OT_view_toggle";
- ot->description="Toggle between sequencer views (sequence, preview, both)";
+ ot->description=_("Toggle between sequencer views (sequence, preview, both)");
/* api callbacks */
ot->exec= sequencer_view_toggle_exec;
@@ -2294,9 +2294,9 @@ static int sequencer_view_selected_exec(bContext *C, wmOperator *UNUSED(op))
void SEQUENCER_OT_view_selected(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "View Selected";
+ ot->name= _("View Selected");
ot->idname= "SEQUENCER_OT_view_selected";
- ot->description="Zoom the sequencer on the selected strips";
+ ot->description=_("Zoom the sequencer on the selected strips");
/* api callbacks */
ot->exec= sequencer_view_selected_exec;
@@ -2379,9 +2379,9 @@ static int sequencer_next_edit_exec(bContext *C, wmOperator *UNUSED(op))
void SEQUENCER_OT_next_edit(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Next Edit";
+ ot->name= _("Next Edit");
ot->idname= "SEQUENCER_OT_next_edit";
- ot->description="Move frame to next edit point";
+ ot->description=_("Move frame to next edit point");
/* api callbacks */
ot->exec= sequencer_next_edit_exec;
@@ -2409,9 +2409,9 @@ static int sequencer_previous_edit_exec(bContext *C, wmOperator *UNUSED(op))
void SEQUENCER_OT_previous_edit(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Previous Edit";
+ ot->name= _("Previous Edit");
ot->idname= "SEQUENCER_OT_previous_edit";
- ot->description="Move frame to previous edit point";
+ ot->description=_("Move frame to previous edit point");
/* api callbacks */
ot->exec= sequencer_previous_edit_exec;
@@ -2513,9 +2513,9 @@ static int sequencer_swap_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_swap(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Swap Strip";
+ ot->name= _("Swap Strip");
ot->idname= "SEQUENCER_OT_swap";
- ot->description="Swap active strip with strip to the left";
+ ot->description=_("Swap active strip with strip to the left");
/* api callbacks */
ot->exec= sequencer_swap_exec;
@@ -2525,7 +2525,7 @@ void SEQUENCER_OT_swap(wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
- RNA_def_enum(ot->srna, "side", prop_side_lr_types, SEQ_SIDE_RIGHT, "Side", "Side of the strip to swap");
+ RNA_def_enum(ot->srna, "side", prop_side_lr_types, SEQ_SIDE_RIGHT, _("Side"), _("Side of the strip to swap"));
}
static int sequencer_rendersize_exec(bContext *C, wmOperator *UNUSED(op))
@@ -2572,9 +2572,9 @@ static int sequencer_rendersize_exec(bContext *C, wmOperator *UNUSED(op))
void SEQUENCER_OT_rendersize(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Set Render Size";
+ ot->name= _("Set Render Size");
ot->idname= "SEQUENCER_OT_rendersize";
- ot->description="Set render size and aspect from active sequence";
+ ot->description=_("Set render size and aspect from active sequence");
/* api callbacks */
ot->exec= sequencer_rendersize_exec;
@@ -2651,7 +2651,7 @@ static int sequencer_copy_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_copy(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Copy";
+ ot->name= _("Copy");
ot->idname= "SEQUENCER_OT_copy";
ot->description="";
@@ -2702,7 +2702,7 @@ static int sequencer_paste_exec(bContext *C, wmOperator *UNUSED(op))
void SEQUENCER_OT_paste(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Paste";
+ ot->name= _("Paste");
ot->idname= "SEQUENCER_OT_paste";
ot->description="";
@@ -2753,9 +2753,9 @@ static int sequencer_swap_data_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_swap_data(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Sequencer Swap Data";
+ ot->name= _("Sequencer Swap Data");
ot->idname= "SEQUENCER_OT_swap_data";
- ot->description="Swap 2 sequencer strips";
+ ot->description=_("Swap 2 sequencer strips");
/* api callbacks */
ot->exec= sequencer_swap_data_exec;
@@ -2810,9 +2810,9 @@ static int view_ghost_border_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_view_ghost_border(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Border Offset View";
+ ot->name= _("Border Offset View");
ot->idname= "SEQUENCER_OT_view_ghost_border";
- ot->description="Enable border select mode";
+ ot->description=_("Enable border select mode");
/* api callbacks */
ot->invoke= WM_border_select_invoke;
diff --git a/source/blender/editors/space_sequencer/sequencer_select.c b/source/blender/editors/space_sequencer/sequencer_select.c
index c48814f7302..fa2d65443b0 100644
--- a/source/blender/editors/space_sequencer/sequencer_select.c
+++ b/source/blender/editors/space_sequencer/sequencer_select.c
@@ -248,9 +248,9 @@ static int sequencer_deselect_exec(bContext *C, wmOperator *UNUSED(op))
void SEQUENCER_OT_select_all_toggle(struct wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Select or Deselect All";
+ ot->name= _("Select or Deselect All");
ot->idname= "SEQUENCER_OT_select_all_toggle";
- ot->description="Select or deselect all strips";
+ ot->description=_("Select or deselect all strips");
/* api callbacks */
ot->exec= sequencer_deselect_exec;
@@ -286,9 +286,9 @@ static int sequencer_select_inverse_exec(bContext *C, wmOperator *UNUSED(op))
void SEQUENCER_OT_select_inverse(struct wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Select Inverse";
+ ot->name= _("Select Inverse");
ot->idname= "SEQUENCER_OT_select_inverse";
- ot->description="Select unselected strips";
+ ot->description=_("Select unselected strips");
/* api callbacks */
ot->exec= sequencer_select_inverse_exec;
@@ -598,9 +598,9 @@ static int sequencer_select_more_exec(bContext *C, wmOperator *UNUSED(op))
void SEQUENCER_OT_select_more(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Select More";
+ ot->name= _("Select More");
ot->idname= "SEQUENCER_OT_select_more";
- ot->description="Select more strips adjacent to the current selection";
+ ot->description=_("Select more strips adjacent to the current selection");
/* api callbacks */
ot->exec= sequencer_select_more_exec;
@@ -629,9 +629,9 @@ static int sequencer_select_less_exec(bContext *C, wmOperator *UNUSED(op))
void SEQUENCER_OT_select_less(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Select less";
+ ot->name= _("Select less");
ot->idname= "SEQUENCER_OT_select_less";
- ot->description="Shrink the current selection of adjacent selected strips";
+ ot->description=_("Shrink the current selection of adjacent selected strips");
/* api callbacks */
ot->exec= sequencer_select_less_exec;
@@ -714,9 +714,9 @@ static int sequencer_select_linked_exec(bContext *C, wmOperator *UNUSED(op))
void SEQUENCER_OT_select_linked(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Select linked";
+ ot->name= _("Select linked");
ot->idname= "SEQUENCER_OT_select_linked";
- ot->description="Select all strips adjacent to the current selection";
+ ot->description=_("Select all strips adjacent to the current selection");
/* api callbacks */
ot->exec= sequencer_select_linked_exec;
@@ -764,9 +764,9 @@ static int sequencer_select_handles_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_select_handles(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Select Handles";
+ ot->name= _("Select Handles");
ot->idname= "SEQUENCER_OT_select_handles";
- ot->description="Select manipulator handles on the sides of the selected strip";
+ ot->description=_("Select manipulator handles on the sides of the selected strip");
/* api callbacks */
ot->exec= sequencer_select_handles_exec;
@@ -776,7 +776,7 @@ void SEQUENCER_OT_select_handles(wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
- RNA_def_enum(ot->srna, "side", prop_side_types, SEQ_SIDE_BOTH, "Side", "The side of the handle that is selected");
+ RNA_def_enum(ot->srna, "side", prop_side_types, SEQ_SIDE_BOTH, _("Side"), _("The side of the handle that is selected"));
}
/* select side operator */
@@ -801,9 +801,9 @@ static int sequencer_select_active_side_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_select_active_side(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Select Active Side";
+ ot->name= _("Select Active Side");
ot->idname= "SEQUENCER_OT_select_active_side";
- ot->description="Select strips on the nominated side of the active strip";
+ ot->description=_("Select strips on the nominated side of the active strip");
/* api callbacks */
ot->exec= sequencer_select_active_side_exec;
@@ -813,7 +813,7 @@ void SEQUENCER_OT_select_active_side(wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
- RNA_def_enum(ot->srna, "side", prop_side_types, SEQ_SIDE_BOTH, "Side", "The side of the handle that is selected");
+ RNA_def_enum(ot->srna, "side", prop_side_types, SEQ_SIDE_BOTH, _("Side"), _("The side of the handle that is selected"));
}
@@ -865,9 +865,9 @@ static int sequencer_borderselect_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_select_border(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Border Select";
+ ot->name= _("Border Select");
ot->idname= "SEQUENCER_OT_select_border";
- ot->description="Enable border select mode";
+ ot->description=_("Enable border select mode");
/* api callbacks */
ot->invoke= WM_border_select_invoke;
diff --git a/source/blender/editors/space_text/text_header.c b/source/blender/editors/space_text/text_header.c
index 165cec238c0..e82448e1277 100644
--- a/source/blender/editors/space_text/text_header.c
+++ b/source/blender/editors/space_text/text_header.c
@@ -54,6 +54,8 @@
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
+#include "BLF_api.h"
+
#include "BKE_context.h"
#include "BKE_screen.h"
@@ -119,8 +121,8 @@ static int properties_exec(bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_properties(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Properties";
- ot->description= "Toggle text properties panel";
+ ot->name= _("Properties");
+ ot->description= _("Toggle text properties panel");
ot->idname= "TEXT_OT_properties";
/* api callbacks */
diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c
index 12f910d2011..2e8cc6bfe9c 100644
--- a/source/blender/editors/space_text/text_ops.c
+++ b/source/blender/editors/space_text/text_ops.c
@@ -193,9 +193,9 @@ static int new_exec(bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_new(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "New";
+ ot->name= _("New");
ot->idname= "TEXT_OT_new";
- ot->description= "Create a new text data block";
+ ot->description= _("Create a new text data block");
/* api callbacks */
ot->exec= new_exec;
@@ -337,9 +337,9 @@ static int reload_exec(bContext *C, wmOperator *op)
void TEXT_OT_reload(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Reload";
+ ot->name= _("Reload");
ot->idname= "TEXT_OT_reload";
- ot->description= "Reload active text data block from its file";
+ ot->description= _("Reload active text data block from its file");
/* api callbacks */
ot->exec= reload_exec;
@@ -387,9 +387,9 @@ static int unlink_exec(bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_unlink(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Unlink";
+ ot->name= _("Unlink");
ot->idname= "TEXT_OT_unlink";
- ot->description= "Unlink active text data block";
+ ot->description= _("Unlink active text data block");
/* api callbacks */
ot->exec= unlink_exec;
@@ -422,9 +422,9 @@ static int make_internal_exec(bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_make_internal(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Make Internal";
+ ot->name= _("Make Internal");
ot->idname= "TEXT_OT_make_internal";
- ot->description= "Make active text file internal";
+ ot->description= _("Make active text file internal");
/* api callbacks */
ot->exec= make_internal_exec;
@@ -495,9 +495,9 @@ static int save_exec(bContext *C, wmOperator *op)
void TEXT_OT_save(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Save";
+ ot->name= _("Save");
ot->idname= "TEXT_OT_save";
- ot->description= "Save active text data block";
+ ot->description= _("Save active text data block");
/* api callbacks */
ot->exec= save_exec;
@@ -552,9 +552,9 @@ static int save_as_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void TEXT_OT_save_as(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Save As";
+ ot->name= _("Save As");
ot->idname= "TEXT_OT_save_as";
- ot->description= "Save active text file with options";
+ ot->description= _("Save active text file with options");
/* api callbacks */
ot->exec= save_as_exec;
@@ -622,9 +622,9 @@ static int run_script_exec(bContext *C, wmOperator *op)
void TEXT_OT_run_script(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Run Script";
+ ot->name= _("Run Script");
ot->idname= "TEXT_OT_run_script";
- ot->description= "Run active script";
+ ot->description= _("Run active script");
/* api callbacks */
ot->poll= run_script_poll;
@@ -682,9 +682,9 @@ static int refresh_pyconstraints_exec(bContext *UNUSED(C), wmOperator *UNUSED(op
void TEXT_OT_refresh_pyconstraints(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Refresh PyConstraints";
+ ot->name= _("Refresh PyConstraints");
ot->idname= "TEXT_OT_refresh_pyconstraints";
- ot->description= "Refresh all pyconstraints";
+ ot->description= _("Refresh all pyconstraints");
/* api callbacks */
ot->exec= refresh_pyconstraints_exec;
@@ -844,9 +844,9 @@ static int copy_exec(bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_copy(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Copy";
+ ot->name= _("Copy");
ot->idname= "TEXT_OT_copy";
- ot->description= "Copy selected text to clipboard";
+ ot->description= _("Copy selected text to clipboard");
/* api callbacks */
ot->exec= copy_exec;
@@ -877,9 +877,9 @@ static int cut_exec(bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_cut(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Cut";
+ ot->name= _("Cut");
ot->idname= "TEXT_OT_cut";
- ot->description= "Cut selected text to clipboard";
+ ot->description= _("Cut selected text to clipboard");
/* api callbacks */
ot->exec= cut_exec;
@@ -912,9 +912,9 @@ static int indent_exec(bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_indent(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Indent";
+ ot->name= _("Indent");
ot->idname= "TEXT_OT_indent";
- ot->description= "Indent selected text";
+ ot->description= _("Indent selected text");
/* api callbacks */
ot->exec= indent_exec;
@@ -947,9 +947,9 @@ static int unindent_exec(bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_unindent(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Unindent";
+ ot->name= _("Unindent");
ot->idname= "TEXT_OT_unindent";
- ot->description= "Unindent selected text";
+ ot->description= _("Unindent selected text");
/* api callbacks */
ot->exec= unindent_exec;
@@ -994,9 +994,9 @@ static int line_break_exec(bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_line_break(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Line Break";
+ ot->name= _("Line Break");
ot->idname= "TEXT_OT_line_break";
- ot->description= "Insert line break at cursor position";
+ ot->description= _("Insert line break at cursor position");
/* api callbacks */
ot->exec= line_break_exec;
@@ -1027,9 +1027,9 @@ static int comment_exec(bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_comment(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Comment";
+ ot->name= _("Comment");
ot->idname= "TEXT_OT_comment";
- ot->description= "Convert selected text to comment";
+ ot->description= _("Convert selected text to comment");
/* api callbacks */
ot->exec= comment_exec;
@@ -1061,9 +1061,9 @@ static int uncomment_exec(bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_uncomment(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Uncomment";
+ ot->name= _("Uncomment");
ot->idname= "TEXT_OT_uncomment";
- ot->description= "Convert selected comment to text";
+ ot->description= _("Convert selected comment to text");
/* api callbacks */
ot->exec= uncomment_exec;
@@ -1201,16 +1201,16 @@ static int convert_whitespace_exec(bContext *C, wmOperator *op)
void TEXT_OT_convert_whitespace(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Convert Whitespace";
+ ot->name= _("Convert Whitespace");
ot->idname= "TEXT_OT_convert_whitespace";
- ot->description= "Convert whitespaces by type";
+ ot->description= _("Convert whitespaces by type");
/* api callbacks */
ot->exec= convert_whitespace_exec;
ot->poll= text_edit_poll;
/* properties */
- RNA_def_enum(ot->srna, "type", whitespace_type_items, TO_SPACES, "type", "Type of whitespace to convert to.");
+ RNA_def_enum(ot->srna, "type", whitespace_type_items, TO_SPACES, _("type"), _("Type of whitespace to convert to."));
}
/******************* select all operator *********************/
@@ -1230,9 +1230,9 @@ static int select_all_exec(bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_select_all(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Select All";
+ ot->name= _("Select All");
ot->idname= "TEXT_OT_select_all";
- ot->description= "Select all text";
+ ot->description= _("Select all text");
/* api callbacks */
ot->exec= select_all_exec;
@@ -1256,9 +1256,9 @@ static int select_line_exec(bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_select_line(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Select Line";
+ ot->name= _("Select Line");
ot->idname= "TEXT_OT_select_line";
- ot->description= "Select text by line";
+ ot->description= _("Select text by line");
/* api callbacks */
ot->exec= select_line_exec;
@@ -1283,9 +1283,9 @@ static int select_word_exec(bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_select_word(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Select Word";
+ ot->name= _("Select Word");
ot->idname= "TEXT_OT_select_word";
- ot->description= "Select word under cursor";
+ ot->description= _("Select word under cursor");
/* api callbacks */
ot->exec= select_word_exec;
@@ -1319,9 +1319,9 @@ static int previous_marker_exec(bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_previous_marker(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Previous Marker";
+ ot->name= _("Previous Marker");
ot->idname= "TEXT_OT_previous_marker";
- ot->description= "Move to previous marker";
+ ot->description= _("Move to previous marker");
/* api callbacks */
ot->exec= previous_marker_exec;
@@ -1355,9 +1355,9 @@ static int next_marker_exec(bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_next_marker(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Next Marker";
+ ot->name= _("Next Marker");
ot->idname= "TEXT_OT_next_marker";
- ot->description= "Move to next marker";
+ ot->description= _("Move to next marker");
/* api callbacks */
ot->exec= next_marker_exec;
@@ -1381,9 +1381,9 @@ static int clear_all_markers_exec(bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_markers_clear(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Clear All Markers";
+ ot->name= _("Clear All Markers");
ot->idname= "TEXT_OT_markers_clear";
- ot->description= "Clear all markers";
+ ot->description= _("Clear all markers");
/* api callbacks */
ot->exec= clear_all_markers_exec;
@@ -1894,16 +1894,16 @@ static int move_exec(bContext *C, wmOperator *op)
void TEXT_OT_move(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Move Cursor";
+ ot->name= _("Move Cursor");
ot->idname= "TEXT_OT_move";
- ot->description= "Move cursor to position type";
+ ot->description= _("Move cursor to position type");
/* api callbacks */
ot->exec= move_exec;
ot->poll= text_edit_poll;
/* properties */
- RNA_def_enum(ot->srna, "type", move_type_items, LINE_BEGIN, "Type", "Where to move cursor to.");
+ RNA_def_enum(ot->srna, "type", move_type_items, LINE_BEGIN, _("Type"), _("Where to move cursor to."));
}
/******************* move select operator ********************/
@@ -1918,16 +1918,16 @@ static int move_select_exec(bContext *C, wmOperator *op)
void TEXT_OT_move_select(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Move Select";
+ ot->name= _("Move Select");
ot->idname= "TEXT_OT_move_select";
- ot->description= "Make selection from current cursor position to new cursor position type";
+ ot->description= _("Make selection from current cursor position to new cursor position type");
/* api callbacks */
ot->exec= move_select_exec;
ot->poll= text_space_edit_poll;
/* properties */
- RNA_def_enum(ot->srna, "type", move_type_items, LINE_BEGIN, "Type", "Where to move cursor to, to make a selection.");
+ RNA_def_enum(ot->srna, "type", move_type_items, LINE_BEGIN, _("Type"), _("Where to move cursor to, to make a selection."));
}
/******************* jump operator *********************/
@@ -1960,9 +1960,9 @@ static int jump_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void TEXT_OT_jump(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Jump";
+ ot->name= _("Jump");
ot->idname= "TEXT_OT_jump";
- ot->description= "Jump cursor to line";
+ ot->description= _("Jump cursor to line");
/* api callbacks */
ot->invoke= jump_invoke;
@@ -2013,16 +2013,16 @@ static int delete_exec(bContext *C, wmOperator *op)
void TEXT_OT_delete(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Delete";
+ ot->name= _("Delete");
ot->idname= "TEXT_OT_delete";
- ot->description= "Delete text by cursor position";
+ ot->description= _("Delete text by cursor position");
/* api callbacks */
ot->exec= delete_exec;
ot->poll= text_edit_poll;
/* properties */
- RNA_def_enum(ot->srna, "type", delete_type_items, DEL_NEXT_CHAR, "Type", "Which part of the text to delete.");
+ RNA_def_enum(ot->srna, "type", delete_type_items, DEL_NEXT_CHAR, _("Type"), _("Which part of the text to delete."));
}
/******************* toggle overwrite operator **********************/
@@ -2041,9 +2041,9 @@ static int toggle_overwrite_exec(bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_overwrite_toggle(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Toggle Overwrite";
+ ot->name= _("Toggle Overwrite");
ot->idname= "TEXT_OT_overwrite_toggle";
- ot->description= "Toggle overwrite while typing";
+ ot->description= _("Toggle overwrite while typing");
/* api callbacks */
ot->exec= toggle_overwrite_exec;
@@ -2241,12 +2241,12 @@ static int scroll_invoke(bContext *C, wmOperator *op, wmEvent *event)
void TEXT_OT_scroll(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Scroll";
+ ot->name= _("Scroll");
/*don't really see the difference between this and
scroll_bar. Both do basically the same thing (aside
from keymaps).*/
ot->idname= "TEXT_OT_scroll";
- ot->description= "Scroll text screen";
+ ot->description= _("Scroll text screen");
/* api callbacks */
ot->exec= scroll_exec;
@@ -2324,12 +2324,12 @@ static int scroll_bar_invoke(bContext *C, wmOperator *op, wmEvent *event)
void TEXT_OT_scroll_bar(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Scrollbar";
+ ot->name= _("Scrollbar");
/*don't really see the difference between this and
scroll. Both do basically the same thing (aside
from keymaps).*/
ot->idname= "TEXT_OT_scroll_bar";
- ot->description= "Scroll text screen";
+ ot->description= _("Scroll text screen");
/* api callbacks */
ot->invoke= scroll_bar_invoke;
@@ -2675,9 +2675,9 @@ static int set_cursor_invoke(bContext *C, wmOperator *op, wmEvent *event)
void TEXT_OT_cursor_set(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Set Cursor";
+ ot->name= _("Set Cursor");
ot->idname= "TEXT_OT_cursor_set";
- ot->description= "Set cursor position";
+ ot->description= _("Set cursor position");
/* api callbacks */
ot->invoke= set_cursor_invoke;
@@ -2731,9 +2731,9 @@ static int line_number_invoke(bContext *C, wmOperator *UNUSED(op), wmEvent *even
void TEXT_OT_line_number(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Line Number";
+ ot->name= _("Line Number");
ot->idname= "TEXT_OT_line_number";
- ot->description= "The current line number";
+ ot->description= _("The current line number");
/* api callbacks */
ot->invoke= line_number_invoke;
@@ -2806,9 +2806,9 @@ static int insert_invoke(bContext *C, wmOperator *op, wmEvent *event)
void TEXT_OT_insert(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Insert";
+ ot->name= _("Insert");
ot->idname= "TEXT_OT_insert";
- ot->description= "Insert text at cursor position";
+ ot->description= _("Insert text at cursor position");
/* api callbacks */
ot->exec= insert_exec;
@@ -2816,7 +2816,7 @@ void TEXT_OT_insert(wmOperatorType *ot)
ot->poll= text_edit_poll;
/* properties */
- RNA_def_string(ot->srna, "text", "", 0, "Text", "Text to insert at the cursor position.");
+ RNA_def_string(ot->srna, "text", "", 0, _("Text"), _("Text to insert at the cursor position."));
}
/******************* find operator *********************/
@@ -2925,9 +2925,9 @@ static int find_exec(bContext *C, wmOperator *op)
void TEXT_OT_find(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Find";
+ ot->name= _("Find");
ot->idname= "TEXT_OT_find";
- ot->description= "Find specified text";
+ ot->description= _("Find specified text");
/* api callbacks */
ot->exec= find_exec;
@@ -2944,9 +2944,9 @@ static int replace_exec(bContext *C, wmOperator *op)
void TEXT_OT_replace(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Replace";
+ ot->name= _("Replace");
ot->idname= "TEXT_OT_replace";
- ot->description= "Replace text with the specified text";
+ ot->description= _("Replace text with the specified text");
/* api callbacks */
ot->exec= replace_exec;
@@ -2963,9 +2963,9 @@ static int mark_all_exec(bContext *C, wmOperator *op)
void TEXT_OT_mark_all(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Mark All";
+ ot->name= _("Mark All");
ot->idname= "TEXT_OT_mark_all";
- ot->description= "Mark all specified text";
+ ot->description= _("Mark all specified text");
/* api callbacks */
ot->exec= mark_all_exec;
@@ -2993,9 +2993,9 @@ static int find_set_selected_exec(bContext *C, wmOperator *op)
void TEXT_OT_find_set_selected(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Find Set Selected";
+ ot->name= _("Find Set Selected");
ot->idname= "TEXT_OT_find_set_selected";
- ot->description= "Find specified text and set as selected";
+ ot->description= _("Find specified text and set as selected");
/* api callbacks */
ot->exec= find_set_selected_exec;
@@ -3020,9 +3020,9 @@ static int replace_set_selected_exec(bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_replace_set_selected(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Replace Set Selected";
+ ot->name= _("Replace Set Selected");
ot->idname= "TEXT_OT_replace_set_selected";
- ot->description= "Replace text with specified text and set as selected";
+ ot->description= _("Replace text with specified text and set as selected");
/* api callbacks */
ot->exec= replace_set_selected_exec;
@@ -3155,9 +3155,9 @@ static int resolve_conflict_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(
void TEXT_OT_resolve_conflict(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Resolve Conflict";
+ ot->name= _("Resolve Conflict");
ot->idname= "TEXT_OT_resolve_conflict";
- ot->description= "When external text is out of sync, resolve the conflict";
+ ot->description= _("When external text is out of sync, resolve the conflict");
/* api callbacks */
ot->exec= resolve_conflict_exec;
@@ -3165,7 +3165,7 @@ void TEXT_OT_resolve_conflict(wmOperatorType *ot)
ot->poll= save_poll;
/* properties */
- RNA_def_enum(ot->srna, "resolution", resolution_items, RESOLVE_IGNORE, "Resolution", "How to solve conflict due to different in internal and external text.");
+ RNA_def_enum(ot->srna, "resolution", resolution_items, RESOLVE_IGNORE, _("Resolution"), _("How to solve conflict due to different in internal and external text."));
}
/********************** to 3d object operator *****************/
diff --git a/source/blender/editors/space_time/time_ops.c b/source/blender/editors/space_time/time_ops.c
index b6a3afb23ca..e86ae1849dd 100644
--- a/source/blender/editors/space_time/time_ops.c
+++ b/source/blender/editors/space_time/time_ops.c
@@ -79,9 +79,9 @@ static int time_set_sfra_exec (bContext *C, wmOperator *UNUSED(op))
static void TIME_OT_start_frame_set (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Set Start Frame";
+ ot->name= _("Set Start Frame");
ot->idname= "TIME_OT_start_frame_set";
- ot->description="Set the start frame";
+ ot->description=_("Set the start frame");
/* api callbacks */
ot->exec= time_set_sfra_exec;
@@ -121,9 +121,9 @@ static int time_set_efra_exec (bContext *C, wmOperator *UNUSED(op))
static void TIME_OT_end_frame_set (wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Set End Frame";
+ ot->name= _("Set End Frame");
ot->idname= "TIME_OT_end_frame_set";
- ot->description="Set the end frame";
+ ot->description=_("Set the end frame");
/* api callbacks */
ot->exec= time_set_efra_exec;
diff --git a/source/blender/editors/uvedit/uvedit_ops.c b/source/blender/editors/uvedit/uvedit_ops.c
index 8172a74f861..eab35ba29c0 100644
--- a/source/blender/editors/uvedit/uvedit_ops.c
+++ b/source/blender/editors/uvedit/uvedit_ops.c
@@ -1076,14 +1076,14 @@ static int align_exec(bContext *C, wmOperator *op)
static void UV_OT_align(wmOperatorType *ot)
{
static EnumPropertyItem axis_items[] = {
- {'a', "ALIGN_AUTO", 0, "Align Auto", "Automatically choose the axis on which there is most alignment already"},
- {'x', "ALIGN_X", 0, "Align X", "Align UVs on X axis"},
- {'y', "ALIGN_Y", 0, "Align Y", "Align UVs on Y axis"},
+ {'a', "ALIGN_AUTO", 0, N_("Align Auto"), N_("Automatically choose the axis on which there is most alignment already")},
+ {'x', "ALIGN_X", 0, N_("Align X"), N_("Align UVs on X axis")},
+ {'y', "ALIGN_Y", 0, N_("Align Y"), N_("Align UVs on Y axis")},
{0, NULL, 0, NULL, NULL}};
/* identifiers */
- ot->name= "Align";
- ot->description= "Align selected UV vertices to an axis";
+ ot->name= _("Align");
+ ot->description= _("Align selected UV vertices to an axis");
ot->idname= "UV_OT_align";
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -1092,7 +1092,7 @@ static void UV_OT_align(wmOperatorType *ot)
ot->poll= ED_operator_image_active; /* requires space image */;
/* properties */
- RNA_def_enum(ot->srna, "axis", axis_items, 'a', "Axis", "Axis to align UV locations on.");
+ RNA_def_enum(ot->srna, "axis", RNA_enum_items_gettexted(axis_items), 'a', _("Axis"), _("Axis to align UV locations on."));
}
/* ******************** weld operator **************** */
@@ -1107,8 +1107,8 @@ static int weld_exec(bContext *C, wmOperator *UNUSED(op))
static void UV_OT_weld(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Weld";
- ot->description= "Weld selected UV vertices together";
+ ot->name= _("Weld");
+ ot->description= _("Weld selected UV vertices together");
ot->idname= "UV_OT_weld";
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -1390,8 +1390,8 @@ static int select_all_exec(bContext *C, wmOperator *op)
static void UV_OT_select_all(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Select or Deselect All";
- ot->description= "Change selection of all UV vertices";
+ ot->name= _("Select or Deselect All");
+ ot->description= _("Change selection of all UV vertices");
ot->idname= "UV_OT_select_all";
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -1933,8 +1933,8 @@ static int unlink_selection_exec(bContext *C, wmOperator *op)
static void UV_OT_unlink_selected(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Unlink Selection";
- ot->description= "Unlink selected UV vertices from active UV map";
+ ot->name= _("Unlink Selection");
+ ot->description= _("Unlink selected UV vertices from active UV map");
ot->idname= "UV_OT_unlink_selected";
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -2304,8 +2304,8 @@ static int circle_select_exec(bContext *C, wmOperator *op)
static void UV_OT_circle_select(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Circle Select";
- ot->description= "Select UV vertices using circle selection";
+ ot->name= _("Circle Select");
+ ot->description= _("Select UV vertices using circle selection");
ot->idname= "UV_OT_circle_select";
/* api callbacks */
@@ -2375,13 +2375,13 @@ static int snap_cursor_exec(bContext *C, wmOperator *op)
static void UV_OT_snap_cursor(wmOperatorType *ot)
{
static EnumPropertyItem target_items[] = {
- {0, "PIXELS", 0, "Pixels", ""},
- {1, "SELECTED", 0, "Selected", ""},
+ {0, "PIXELS", 0, N_("Pixels"), ""},
+ {1, "SELECTED", 0, N_("Selected"), ""},
{0, NULL, 0, NULL, NULL}};
/* identifiers */
- ot->name= "Snap Cursor";
- ot->description= "Snap cursor to target type";
+ ot->name= _("Snap Cursor");
+ ot->description= _("Snap cursor to target type");
ot->idname= "UV_OT_snap_cursor";
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -2390,7 +2390,7 @@ static void UV_OT_snap_cursor(wmOperatorType *ot)
ot->poll= ED_operator_image_active; /* requires space image */;
/* properties */
- RNA_def_enum(ot->srna, "target", target_items, 0, "Target", "Target to snap the selected UV's to.");
+ RNA_def_enum(ot->srna, "target", target_items, 0, _("Target"), _("Target to snap the selected UV's to."));
}
/* ******************** snap selection operator **************** */
@@ -2616,14 +2616,14 @@ static int snap_selection_exec(bContext *C, wmOperator *op)
static void UV_OT_snap_selected(wmOperatorType *ot)
{
static EnumPropertyItem target_items[] = {
- {0, "PIXELS", 0, "Pixels", ""},
- {1, "CURSOR", 0, "Cursor", ""},
- {2, "ADJACENT_UNSELECTED", 0, "Adjacent Unselected", ""},
+ {0, "PIXELS", 0, N_("Pixels"), ""},
+ {1, "CURSOR", 0, N_("Cursor"), ""},
+ {2, "ADJACENT_UNSELECTED", 0, N_("Adjacent Unselected"), ""},
{0, NULL, 0, NULL, NULL}};
/* identifiers */
- ot->name= "Snap Selection";
- ot->description= "Snap selected UV vertices to target type";
+ ot->name= _("Snap Selection");
+ ot->description= _("Snap selected UV vertices to target type");
ot->idname= "UV_OT_snap_selected";
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -2632,7 +2632,7 @@ static void UV_OT_snap_selected(wmOperatorType *ot)
ot->poll= ED_operator_image_active; /* requires space image */;
/* properties */
- RNA_def_enum(ot->srna, "target", target_items, 0, "Target", "Target to snap the selected UV's to.");
+ RNA_def_enum(ot->srna, "target", RNA_enum_items_gettexted(target_items), 0, _("Target"), _("Target to snap the selected UV's to."));
}
/* ******************** pin operator **************** */
@@ -2723,8 +2723,8 @@ static int select_pinned_exec(bContext *C, wmOperator *UNUSED(op))
static void UV_OT_select_pinned(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Selected Pinned";
- ot->description= "Select all pinned UV vertices";
+ ot->name= _("Selected Pinned");
+ ot->description= _("Select all pinned UV vertices");
ot->idname= "UV_OT_select_pinned";
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -2996,8 +2996,8 @@ static int reveal_exec(bContext *C, wmOperator *UNUSED(op))
static void UV_OT_reveal(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Reveal Hidden";
- ot->description= "Reveal all hidden UV vertices";
+ ot->name= _("Reveal Hidden");
+ ot->description= _("Reveal all hidden UV vertices");
ot->idname= "UV_OT_reveal";
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -3039,8 +3039,8 @@ static int set_2d_cursor_invoke(bContext *C, wmOperator *op, wmEvent *event)
static void UV_OT_cursor_set(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Set 2D Cursor";
- ot->description= "Set 2D cursor location";
+ ot->name= _("Set 2D Cursor");
+ ot->description= _("Set 2D cursor location");
ot->idname= "UV_OT_cursor_set";
/* api callbacks */
@@ -3052,7 +3052,7 @@ static void UV_OT_cursor_set(wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
- RNA_def_float_vector(ot->srna, "location", 2, NULL, -FLT_MAX, FLT_MAX, "Location", "Cursor location in 0.0-1.0 coordinates.", -10.0f, 10.0f);
+ RNA_def_float_vector(ot->srna, "location", 2, NULL, -FLT_MAX, FLT_MAX, _("Location"), _("Cursor location in 0.0-1.0 coordinates."), -10.0f, 10.0f);
}
/********************** set tile operator **********************/
@@ -3105,8 +3105,8 @@ static int set_tile_invoke(bContext *C, wmOperator *op, wmEvent *event)
static void UV_OT_tile_set(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Set Tile";
- ot->description= "Set UV image tile coordinates";
+ ot->name= _("Set Tile");
+ ot->description= _("Set UV image tile coordinates");
ot->idname= "UV_OT_tile_set";
/* api callbacks */
@@ -3118,7 +3118,7 @@ static void UV_OT_tile_set(wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
/* properties */
- RNA_def_int_vector(ot->srna, "tile", 2, NULL, 0, INT_MAX, "Tile", "Tile coordinate.", 0, 10);
+ RNA_def_int_vector(ot->srna, "tile", 2, NULL, 0, INT_MAX, _("Tile"), _("Tile coordinate."), 0, 10);
}
/* ************************** registration **********************************/
diff --git a/source/blender/editors/uvedit/uvedit_unwrap_ops.c b/source/blender/editors/uvedit/uvedit_unwrap_ops.c
index 4ebcf1c75d1..efec9051d51 100644
--- a/source/blender/editors/uvedit/uvedit_unwrap_ops.c
+++ b/source/blender/editors/uvedit/uvedit_unwrap_ops.c
@@ -467,10 +467,10 @@ static int minimize_stretch_cancel(bContext *C, wmOperator *op)
void UV_OT_minimize_stretch(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Minimize Stretch";
+ ot->name= _("Minimize Stretch");
ot->idname= "UV_OT_minimize_stretch";
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
- ot->description="Reduce UV stretching by relaxing angles";
+ ot->description=_("Reduce UV stretching by relaxing angles");
/* api callbacks */
ot->exec= minimize_stretch_exec;
@@ -522,7 +522,7 @@ static int pack_islands_exec(bContext *C, wmOperator *op)
void UV_OT_pack_islands(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Pack Islands";
+ ot->name= _("Pack Islands");
ot->idname= "UV_OT_pack_islands";
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -531,7 +531,7 @@ void UV_OT_pack_islands(wmOperatorType *ot)
ot->poll= ED_operator_uvedit;
/* properties */
- RNA_def_float_factor(ot->srna, "margin", 0.0f, 0.0f, 1.0f, "Margin", "Space between islands", 0.0f, 1.0f);
+ RNA_def_float_factor(ot->srna, "margin", 0.0f, 0.0f, 1.0f, _("Margin"), _("Space between islands"), 0.0f, 1.0f);
}
/* ******************** Average Islands Scale operator **************** */
@@ -564,7 +564,7 @@ static int average_islands_scale_exec(bContext *C, wmOperator *UNUSED(op))
void UV_OT_average_islands_scale(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Average Islands Scale";
+ ot->name= _("Average Islands Scale");
ot->idname= "UV_OT_average_islands_scale";
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -747,21 +747,21 @@ static void uv_map_transform(bContext *C, wmOperator *op, float center[3], float
static void uv_transform_properties(wmOperatorType *ot, int radius)
{
static EnumPropertyItem direction_items[]= {
- {VIEW_ON_EQUATOR, "VIEW_ON_EQUATOR", 0, "View on Equator", "3D view is on the equator"},
- {VIEW_ON_POLES, "VIEW_ON_POLES", 0, "View on Poles", "3D view is on the poles"},
- {ALIGN_TO_OBJECT, "ALIGN_TO_OBJECT", 0, "Align to Object", "Align according to object transform"},
+ {VIEW_ON_EQUATOR, "VIEW_ON_EQUATOR", 0, N_("View on Equator"), N_("3D view is on the equator")},
+ {VIEW_ON_POLES, "VIEW_ON_POLES", 0, N_("View on Poles"), N_("3D view is on the poles")},
+ {ALIGN_TO_OBJECT, "ALIGN_TO_OBJECT", 0, N_("Align to Object"), N_("Align according to object transform")},
{0, NULL, 0, NULL, NULL}
};
static EnumPropertyItem align_items[]= {
- {POLAR_ZX, "POLAR_ZX", 0, "Polar ZX", "Polar 0 is X"},
- {POLAR_ZY, "POLAR_ZY", 0, "Polar ZY", "Polar 0 is Y"},
+ {POLAR_ZX, "POLAR_ZX", 0, N_("Polar ZX"), N_("Polar 0 is X")},
+ {POLAR_ZY, "POLAR_ZY", 0, N_("Polar ZY"), N_("Polar 0 is Y")},
{0, NULL, 0, NULL, NULL}
};
- RNA_def_enum(ot->srna, "direction", direction_items, VIEW_ON_EQUATOR, "Direction", "Direction of the sphere or cylinder.");
- RNA_def_enum(ot->srna, "align", align_items, VIEW_ON_EQUATOR, "Align", "How to determine rotation around the pole.");
+ RNA_def_enum(ot->srna, "direction", RNA_enum_items_gettexted(direction_items), VIEW_ON_EQUATOR, _("Direction"), _("Direction of the sphere or cylinder."));
+ RNA_def_enum(ot->srna, "align", RNA_enum_items_gettexted(align_items), VIEW_ON_EQUATOR, _("Align"), _("How to determine rotation around the pole."));
if(radius)
- RNA_def_float(ot->srna, "radius", 1.0f, 0.0f, FLT_MAX, "Radius", "Radius of the sphere or cylinder.", 0.0001f, 100.0f);
+ RNA_def_float(ot->srna, "radius", 1.0f, 0.0f, FLT_MAX, _("Radius"), _("Radius of the sphere or cylinder."), 0.0001f, 100.0f);
}
static void correct_uv_aspect(EditMesh *em)
@@ -958,8 +958,8 @@ static int unwrap_exec(bContext *C, wmOperator *op)
void UV_OT_unwrap(wmOperatorType *ot)
{
static EnumPropertyItem method_items[] = {
- {0, "ANGLE_BASED", 0, "Angle Based", ""},
- {1, "CONFORMAL", 0, "Conformal", ""},
+ {0, "ANGLE_BASED", 0, N_("Angle Based"), ""},
+ {1, "CONFORMAL", 0, N_("Conformal"), ""},
{0, NULL, 0, NULL, NULL}};
/* identifiers */
@@ -973,7 +973,7 @@ void UV_OT_unwrap(wmOperatorType *ot)
ot->poll= ED_operator_uvmap;
/* properties */
- RNA_def_enum(ot->srna, "method", method_items, 0, "Method", "Unwrapping method. Angle Based usually gives better results than Conformal, while being somewhat slower.");
+ RNA_def_enum(ot->srna, "method", RNA_enum_items_gettexted(method_items), 0, _("Method"), _("Unwrapping method. Angle Based usually gives better results than Conformal, while being somewhat slower."));
RNA_def_boolean(ot->srna, "fill_holes", 1, _("Fill Holes"), _("Virtual fill holes in mesh before unwrapping, to better avoid overlaps and preserve symmetry."));
RNA_def_boolean(ot->srna, "correct_aspect", 1, _("Correct Aspect"), _("Map UV's taking image aspect ratio into account."));
}
@@ -1132,7 +1132,7 @@ static int reset_exec(bContext *C, wmOperator *UNUSED(op))
void UV_OT_reset(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Reset";
+ ot->name= _("Reset");
ot->idname= "UV_OT_reset";
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -1220,7 +1220,7 @@ static int sphere_project_exec(bContext *C, wmOperator *op)
void UV_OT_sphere_project(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Sphere Projection";
+ ot->name= _("Sphere Projection");
ot->idname= "UV_OT_sphere_project";
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -1292,7 +1292,7 @@ static int cylinder_project_exec(bContext *C, wmOperator *op)
void UV_OT_cylinder_project(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Cylinder Projection";
+ ot->name= _("Cylinder Projection");
ot->idname= "UV_OT_cylinder_project";
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -1379,7 +1379,7 @@ static int cube_project_exec(bContext *C, wmOperator *op)
void UV_OT_cube_project(wmOperatorType *ot)
{
/* identifiers */
- ot->name= "Cube Projection";
+ ot->name= _("Cube Projection");
ot->idname= "UV_OT_cube_project";
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -1388,6 +1388,6 @@ void UV_OT_cube_project(wmOperatorType *ot)
ot->poll= ED_operator_uvmap;
/* properties */
- RNA_def_float(ot->srna, "cube_size", 1.0f, 0.0f, FLT_MAX, "Cube Size", "Size of the cube to project on.", 0.001f, 100.0f);
+ RNA_def_float(ot->srna, "cube_size", 1.0f, 0.0f, FLT_MAX, _("Cube Size"), _("Size of the cube to project on."), 0.001f, 100.0f);
uv_map_clip_correct_properties(ot);
}
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c
index f0670938684..dd41d507ac1 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -127,20 +127,19 @@ void RNA_struct_gettexted( StructRNA* ptr )
void RNA_types_init_gettext(void)
{
StructRNA* target_struct[] = {
- &RNA_UserPreferences, &RNA_UserPreferencesEdit, &RNA_UserPreferencesFilePaths,
- &RNA_UserPreferencesInput, &RNA_UserPreferencesSystem, &RNA_UserPreferencesView,
-
+ &RNA_Event,
+ &RNA_FileSelectParams,
+ &RNA_ID,
+ &RNA_KeyMap, &RNA_KeyMapItem, &RNA_KeyMapItems,
+ &RNA_KeyboardSensor,
&RNA_RenderLayer, &RNA_RenderSettings,
+ &RNA_Macro,
+ &RNA_Scopes,
&RNA_SpaceOutliner, &RNA_SpaceView3D, &RNA_SpaceTimeline, &RNA_SpaceUserPreferences,
&RNA_Theme, &RNA_ThemeBoneColorSet, &RNA_ThemeWidgetColors,
- &RNA_KeyMapItem, &RNA_KeyMap, &RNA_KeyMapItems,
-
- &RNA_Macro, &RNA_Event,
- &RNA_ToolSettings,
- &RNA_ID,
- &RNA_FileSelectParams,
- &RNA_KeyboardSensor,
-
+ &RNA_ToolSettings,
+ &RNA_UserPreferences, &RNA_UserPreferencesEdit, &RNA_UserPreferencesFilePaths,
+ &RNA_UserPreferencesInput, &RNA_UserPreferencesSystem, &RNA_UserPreferencesView,
/* for test */
NULL
};
diff --git a/source/blender/makesrna/intern/rna_color.c b/source/blender/makesrna/intern/rna_color.c
index cea130a4b74..0dc72d6249d 100644
--- a/source/blender/makesrna/intern/rna_color.c
+++ b/source/blender/makesrna/intern/rna_color.c
@@ -33,6 +33,8 @@
#include "RNA_define.h"
#include "rna_internal.h"
+#include "BLF_api.h"
+
#include "DNA_color_types.h"
#include "DNA_texture_types.h"
@@ -563,40 +565,40 @@ static void rna_def_scopes(BlenderRNA *brna)
{0, NULL, 0, NULL, NULL}};
srna= RNA_def_struct(brna, "Scopes", NULL);
- RNA_def_struct_ui_text(srna, "Scopes", "Scopes for statistical view of an image");
+ RNA_def_struct_ui_text(srna, N_("Scopes"), N_("Scopes for statistical view of an image"));
prop= RNA_def_property(srna, "use_full_resolution", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, "Scopes", "sample_full", 1);
- RNA_def_property_ui_text(prop, "Full Sample", "Sample every pixel of the image");
+ RNA_def_property_ui_text(prop, N_("Full Sample"), N_("Sample every pixel of the image"));
RNA_def_property_update(prop, 0, "rna_Scopes_update");
prop= RNA_def_property(srna, "accuracy", PROP_FLOAT, PROP_PERCENTAGE);
RNA_def_property_float_sdna(prop, "Scopes", "accuracy");
RNA_def_property_range(prop, 0.0, 100.0);
RNA_def_property_ui_range(prop, 0.0, 100.0, 10, 1);
- RNA_def_property_ui_text(prop, "Accuracy", "Proportion of original image source pixel lines to sample");
+ RNA_def_property_ui_text(prop, N_("Accuracy"), N_("Proportion of original image source pixel lines to sample"));
RNA_def_property_update(prop, 0, "rna_Scopes_update");
prop= RNA_def_property(srna, "histogram", PROP_POINTER, PROP_NONE);
RNA_def_property_pointer_sdna(prop, "Scopes", "hist");
RNA_def_property_struct_type(prop, "Histogram");
- RNA_def_property_ui_text(prop, "Histogram", "Histogram for viewing image statistics");
+ RNA_def_property_ui_text(prop, N_("Histogram"), N_("Histogram for viewing image statistics"));
prop= RNA_def_property(srna, "waveform_mode", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_sdna(prop, "Scopes", "wavefrm_mode");
RNA_def_property_enum_items(prop, prop_wavefrm_mode_items);
- RNA_def_property_ui_text(prop, "Waveform Mode", "");
+ RNA_def_property_ui_text(prop, N_("Waveform Mode"), "");
RNA_def_property_update(prop, 0, "rna_Scopes_update");
prop= RNA_def_property(srna, "waveform_alpha", PROP_FLOAT, PROP_PERCENTAGE);
RNA_def_property_float_sdna(prop, "Scopes", "wavefrm_alpha");
RNA_def_property_range(prop, 0, 1);
- RNA_def_property_ui_text(prop, "Waveform Opacity", "Opacity of the points");
+ RNA_def_property_ui_text(prop, N_("Waveform Opacity"), N_("Opacity of the points"));
prop= RNA_def_property(srna, "vectorscope_alpha", PROP_FLOAT, PROP_PERCENTAGE);
RNA_def_property_float_sdna(prop, "Scopes", "vecscope_alpha");
RNA_def_property_range(prop, 0, 1);
- RNA_def_property_ui_text(prop, "Vectorscope Opacity", "Opacity of the points");
+ RNA_def_property_ui_text(prop, N_("Vectorscope Opacity"), N_("Opacity of the points"));
}
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index 66c5b505f72..f4449dd478a 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -1986,15 +1986,15 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
{0, NULL, 0, NULL, NULL}};
static EnumPropertyItem alpha_mode_items[] ={
- {R_ADDSKY, "SKY", 0, "Sky", "Transparent pixels are filled with sky color"},
- {R_ALPHAPREMUL, "PREMUL", 0, "Premultiplied", "Transparent RGB pixels are multiplied by the alpha channel"},
- {R_ALPHAKEY, "STRAIGHT", 0, "Straight Alpha", "Transparent RGB and alpha pixels are unmodified"},
+ {R_ADDSKY, "SKY", 0, N_("Sky"), N_("Transparent pixels are filled with sky color")},
+ {R_ALPHAPREMUL, "PREMUL", 0, N_("Premultiplied"), N_("Transparent RGB pixels are multiplied by the alpha channel")},
+ {R_ALPHAKEY, "STRAIGHT", 0, N_("Straight Alpha"), N_("Transparent RGB and alpha pixels are unmodified")},
{0, NULL, 0, NULL, NULL}};
static EnumPropertyItem color_mode_items[] ={
- {R_PLANESBW, "BW", 0, "BW", "Images get saved in 8 bits grayscale (only PNG, JPEG, TGA, TIF)"},
- {R_PLANES24, "RGB", 0, "RGB", "Images are saved with RGB (color) data"},
- {R_PLANES32, "RGBA", 0, "RGBA", "Images are saved with RGB and Alpha data (if supported)"},
+ {R_PLANESBW, "BW", 0, "BW", N_("Images get saved in 8 bits grayscale (only PNG, JPEG, TGA, TIF)")},
+ {R_PLANES24, "RGB", 0, "RGB", N_("Images are saved with RGB (color) data")},
+ {R_PLANES32, "RGBA", 0, "RGBA", N_("Images are saved with RGB and Alpha data (if supported)")},
{0, NULL, 0, NULL, NULL}};
static EnumPropertyItem display_mode_items[] ={
@@ -2006,31 +2006,31 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
/* Bake */
static EnumPropertyItem bake_mode_items[] ={
- {RE_BAKE_ALL, "FULL", 0, "Full Render", "Bake everything"},
- {RE_BAKE_AO, "AO", 0, "Ambient Occlusion", "Bake ambient occlusion"},
- {RE_BAKE_SHADOW, "SHADOW", 0, "Shadow", "Bake shadows"},
- {RE_BAKE_NORMALS, "NORMALS", 0, "Normals", "Bake normals"},
- {RE_BAKE_TEXTURE, "TEXTURE", 0, "Textures", "Bake textures"},
- {RE_BAKE_DISPLACEMENT, "DISPLACEMENT", 0, "Displacement", "Bake displacement"},
- {RE_BAKE_EMIT, "EMIT", 0, "Emission", "Bake Emit values (glow)"},
- {RE_BAKE_ALPHA, "ALPHA", 0, "Alpha", "Bake Alpha values (transparency)"},
- {RE_BAKE_MIRROR_INTENSITY, "MIRROR_INTENSITY", 0, "Mirror Intensity", "Bake Mirror values"},
- {RE_BAKE_MIRROR_COLOR, "MIRROR_COLOR", 0, "Mirror Colors", "Bake Mirror colors"},
- {RE_BAKE_SPEC_INTENSITY, "SPEC_INTENSITY", 0, "Specular Intensity", "Bake Specular values"},
- {RE_BAKE_SPEC_COLOR, "SPEC_COLOR", 0, "Specular Colors", "Bake Specular colors"},
+ {RE_BAKE_ALL, "FULL", 0, N_("Full Render"), N_("Bake everything")},
+ {RE_BAKE_AO, "AO", 0, N_("Ambient Occlusion"), N_("Bake ambient occlusion")},
+ {RE_BAKE_SHADOW, "SHADOW", 0, N_("Shadow"), N_("Bake shadows")},
+ {RE_BAKE_NORMALS, "NORMALS", 0, N_("Normals"), N_("Bake normals")},
+ {RE_BAKE_TEXTURE, "TEXTURE", 0, N_("Textures"), N_("Bake textures")},
+ {RE_BAKE_DISPLACEMENT, "DISPLACEMENT", 0, N_("Displacement"), N_("Bake displacement")},
+ {RE_BAKE_EMIT, "EMIT", 0, N_("Emission"), N_("Bake Emit values (glow)")},
+ {RE_BAKE_ALPHA, "ALPHA", 0, N_("Alpha"), N_("Bake Alpha values (transparency)")},
+ {RE_BAKE_MIRROR_INTENSITY, "MIRROR_INTENSITY", 0, N_("Mirror Intensity"), N_("Bake Mirror values")},
+ {RE_BAKE_MIRROR_COLOR, "MIRROR_COLOR", 0, N_("Mirror Colors"), N_("Bake Mirror colors")},
+ {RE_BAKE_SPEC_INTENSITY, "SPEC_INTENSITY", 0, N_("Specular Intensity"), N_("Bake Specular values")},
+ {RE_BAKE_SPEC_COLOR, "SPEC_COLOR", 0, N_("Specular Colors"), N_("Bake Specular colors")},
{0, NULL, 0, NULL, NULL}};
static EnumPropertyItem bake_normal_space_items[] ={
- {R_BAKE_SPACE_CAMERA, "CAMERA", 0, "Camera", "Bake the normals in camera space"},
- {R_BAKE_SPACE_WORLD, "WORLD", 0, "World", "Bake the normals in world space"},
- {R_BAKE_SPACE_OBJECT, "OBJECT", 0, "Object", "Bake the normals in object space"},
- {R_BAKE_SPACE_TANGENT, "TANGENT", 0, "Tangent", "Bake the normals in tangent space"},
+ {R_BAKE_SPACE_CAMERA, "CAMERA", 0, N_("Camera"), N_("Bake the normals in camera space")},
+ {R_BAKE_SPACE_WORLD, "WORLD", 0, N_("World"), N_("Bake the normals in world space")},
+ {R_BAKE_SPACE_OBJECT, "OBJECT", 0, N_("Object"), N_("Bake the normals in object space")},
+ {R_BAKE_SPACE_TANGENT, "TANGENT", 0, N_("Tangent"), N_("Bake the normals in tangent space")},
{0, NULL, 0, NULL, NULL}};
static EnumPropertyItem bake_qyad_split_items[] ={
- {0, "AUTO", 0, "Automatic", "Split quads to give the least distortion while baking"},
- {1, "FIXED", 0, "Fixed", "Split quads predictably (0,1,2) (0,2,3)"},
- {2, "FIXED_ALT", 0, "Fixed Alternate", "Split quads predictably (1,2,3) (1,3,0)"},
+ {0, "AUTO", 0, N_("Automatic"), N_("Split quads to give the least distortion while baking")},
+ {1, "FIXED", 0, N_("Fixed"), N_("Split quads predictably (0,1,2) (0,2,3)")},
+ {2, "FIXED_ALT", 0, N_("Fixed Alternate"), N_("Split quads predictably (1,2,3) (1,3,0)")},
{0, NULL, 0, NULL, NULL}};
static EnumPropertyItem octree_resolution_items[] = {
@@ -2041,12 +2041,12 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
{0, NULL, 0, NULL, NULL}};
static EnumPropertyItem raytrace_structure_items[] = {
- {R_RAYSTRUCTURE_AUTO, "AUTO", 0, "Auto", "Automatically select acceleration structure"},
- {R_RAYSTRUCTURE_OCTREE, "OCTREE", 0, "Octree", "Use old Octree structure"},
- {R_RAYSTRUCTURE_BLIBVH, "BLIBVH", 0, "BLI BVH", "Use BLI K-Dop BVH.c"},
- {R_RAYSTRUCTURE_VBVH, "VBVH", 0, "vBVH", "Use vBVH"},
- {R_RAYSTRUCTURE_SIMD_SVBVH, "SIMD_SVBVH", 0, "SIMD SVBVH", "Use SIMD SVBVH"},
- {R_RAYSTRUCTURE_SIMD_QBVH, "SIMD_QBVH", 0, "SIMD QBVH", "Use SIMD QBVH"},
+ {R_RAYSTRUCTURE_AUTO, "AUTO", 0, N_("Auto"), N_("Automatically select acceleration structure")},
+ {R_RAYSTRUCTURE_OCTREE, "OCTREE", 0, N_("Octree"), N_("Use old Octree structure")},
+ {R_RAYSTRUCTURE_BLIBVH, "BLIBVH", 0, "BLI BVH", N_("Use BLI K-Dop BVH.c")},
+ {R_RAYSTRUCTURE_VBVH, "VBVH", 0, "vBVH", N_("Use vBVH")},
+ {R_RAYSTRUCTURE_SIMD_SVBVH, "SIMD_SVBVH", 0, "SIMD SVBVH", N_("Use SIMD SVBVH")},
+ {R_RAYSTRUCTURE_SIMD_QBVH, "SIMD_QBVH", 0, "SIMD QBVH", N_("Use SIMD QBVH")},
{0, NULL, 0, NULL, NULL}
};
@@ -2058,18 +2058,18 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
{0, NULL, 0, NULL, NULL}};
static EnumPropertyItem field_order_items[] = {
- {0, "EVEN_FIRST", 0, "Upper First", "Upper field first"},
- {R_ODDFIELD, "ODD_FIRST", 0, "Lower First", "Lower field first"},
+ {0, "EVEN_FIRST", 0, N_("Upper First"), N_("Upper field first")},
+ {R_ODDFIELD, "ODD_FIRST", 0, N_("Lower First"), N_("Lower field first")},
{0, NULL, 0, NULL, NULL}};
static EnumPropertyItem threads_mode_items[] = {
- {0, "AUTO", 0, "Auto-detect", "Automatically determine the number of threads, based on CPUs"},
- {R_FIXED_THREADS, "FIXED", 0, "Fixed", "Manually determine the number of threads"},
+ {0, "AUTO", 0, N_("Auto-detect"), N_("Automatically determine the number of threads, based on CPUs")},
+ {R_FIXED_THREADS, "FIXED", 0, N_("Fixed"), N_("Manually determine the number of threads")},
{0, NULL, 0, NULL, NULL}};
#ifdef WITH_OPENEXR
static EnumPropertyItem exr_codec_items[] = {
- {0, "NONE", 0, "None", ""},
+ {0, "NONE", 0, N_("None"), ""},
{1, "PXR24", 0, "Pxr24 (lossy)", ""},
{2, "ZIP", 0, "ZIP (lossless)", ""},
{3, "PIZ", 0, "PIZ (lossless)", ""},
@@ -2079,20 +2079,20 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
#ifdef WITH_OPENJPEG
static EnumPropertyItem jp2_preset_items[] = {
- {0, "NO_PRESET", 0, "No Preset", ""},
- {1, "CINE_24FPS", 0, "Cinema 24fps 2048x1080", ""},
- {2, "CINE_48FPS", 0, "Cinema 48fps 2048x1080", ""},
- {3, "CINE_24FPS_4K", 0, "Cinema 24fps 4096x2160", ""},
- {4, "CINE_SCOPE_24FPS", 0, "Cine-Scope 24fps 2048x858", ""},
- {5, "CINE_SCOPE_48FPS", 0, "Cine-Scope 48fps 2048x858", ""},
- {6, "CINE_FLAT_24FPS", 0, "Cine-Flat 24fps 1998x1080", ""},
- {7, "CINE_FLAT_48FPS", 0, "Cine-Flat 48fps 1998x1080", ""},
+ {0, "NO_PRESET", 0, N_("No Preset"), ""},
+ {1, "CINE_24FPS", 0, N_("Cinema 24fps 2048x1080"), ""},
+ {2, "CINE_48FPS", 0, N_("Cinema 48fps 2048x1080"), ""},
+ {3, "CINE_24FPS_4K", 0, N_("Cinema 24fps 4096x2160"), ""},
+ {4, "CINE_SCOPE_24FPS", 0, N_("Cine-Scope 24fps 2048x858"), ""},
+ {5, "CINE_SCOPE_48FPS", 0, N_("Cine-Scope 48fps 2048x858"), ""},
+ {6, "CINE_FLAT_24FPS", 0, N_("Cine-Flat 24fps 1998x1080"), ""},
+ {7, "CINE_FLAT_48FPS", 0, N_("Cine-Flat 48fps 1998x1080"), ""},
{0, NULL, 0, NULL, NULL}};
static EnumPropertyItem jp2_depth_items[] = {
- {8, "8", 0, "8", "8 bit color channels"},
- {12, "12", 0, "12", "12 bit color channels"},
- {16, "16", 0, "16", "16 bit color channels"},
+ {8, "8", 0, "8", N_("8 bit color channels")},
+ {12, "12", 0, "12", N_("12 bit color channels")},
+ {16, "16", 0, "16", N_("16 bit color channels")},
{0, NULL, 0, NULL, NULL}};
#endif
@@ -2174,62 +2174,62 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
#endif
static EnumPropertyItem engine_items[] = {
- {0, "BLENDER_RENDER", 0, N_("Blender Render"), "Use the Blender internal rendering engine for rendering"},
+ {0, "BLENDER_RENDER", 0, N_("Blender Render"), N_("Use the Blender internal rendering engine for rendering")},
{0, NULL, 0, NULL, NULL}};
srna= RNA_def_struct(brna, "RenderSettings", NULL);
RNA_def_struct_sdna(srna, "RenderData");
RNA_def_struct_nested(brna, srna, "Scene");
RNA_def_struct_path_func(srna, "rna_RenderSettings_path");
- RNA_def_struct_ui_text(srna, "Render Data", "Rendering settings for a Scene datablock");
+ RNA_def_struct_ui_text(srna, N_("Render Data"), N_("Rendering settings for a Scene datablock"));
prop= RNA_def_property(srna, "color_mode", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_bitflag_sdna(prop, NULL, "planes");
RNA_def_property_enum_items(prop, color_mode_items);
- RNA_def_property_ui_text(prop, "Color Mode", "Choose BW for saving greyscale images, RGB for saving red, green and blue channels, AND RGBA for saving red, green, blue + alpha channels");
+ RNA_def_property_ui_text(prop, N_("Color Mode"), N_("Choose BW for saving greyscale images, RGB for saving red, green and blue channels, AND RGBA for saving red, green, blue + alpha channels"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "resolution_x", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "xsch");
RNA_def_property_range(prop, 4, 10000);
- RNA_def_property_ui_text(prop, "Resolution X", "Number of horizontal pixels in the rendered image");
+ RNA_def_property_ui_text(prop, N_("Resolution X"), N_("Number of horizontal pixels in the rendered image"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "resolution_y", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "ysch");
RNA_def_property_range(prop, 4, 10000);
- RNA_def_property_ui_text(prop, "Resolution Y", "Number of vertical pixels in the rendered image");
+ RNA_def_property_ui_text(prop, N_("Resolution Y"), N_("Number of vertical pixels in the rendered image"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "resolution_percentage", PROP_INT, PROP_PERCENTAGE);
RNA_def_property_int_sdna(prop, NULL, "size");
RNA_def_property_range(prop, 1, SHRT_MAX);
RNA_def_property_ui_range(prop, 1, 100, 10, 1);
- RNA_def_property_ui_text(prop, "Resolution %", "Percentage scale for render resolution");
+ RNA_def_property_ui_text(prop, N_("Resolution %"), N_("Percentage scale for render resolution"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "parts_x", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "xparts");
RNA_def_property_range(prop, 1, 512);
- RNA_def_property_ui_text(prop, "Parts X", "Number of horizontal tiles to use while rendering");
+ RNA_def_property_ui_text(prop, N_("Parts X"), N_("Number of horizontal tiles to use while rendering"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "parts_y", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "yparts");
RNA_def_property_range(prop, 1, 512);
- RNA_def_property_ui_text(prop, "Parts Y", "Number of vertical tiles to use while rendering");
+ RNA_def_property_ui_text(prop, N_("Parts Y"), N_("Number of vertical tiles to use while rendering"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "pixel_aspect_x", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "xasp");
RNA_def_property_range(prop, 1.0f, 200.0f);
- RNA_def_property_ui_text(prop, "Pixel Aspect X", "Horizontal aspect ratio - for anamorphic or non-square pixel output");
+ RNA_def_property_ui_text(prop, N_("Pixel Aspect X"), N_("Horizontal aspect ratio - for anamorphic or non-square pixel output"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "pixel_aspect_y", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "yasp");
RNA_def_property_range(prop, 1.0f, 200.0f);
- RNA_def_property_ui_text(prop, "Pixel Aspect Y", "Vertical aspect ratio - for anamorphic or non-square pixel output");
+ RNA_def_property_ui_text(prop, N_("Pixel Aspect Y"), N_("Vertical aspect ratio - for anamorphic or non-square pixel output"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
/* JPEG and AVI JPEG */
@@ -2237,39 +2237,39 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
prop= RNA_def_property(srna, "file_quality", PROP_INT, PROP_PERCENTAGE);
RNA_def_property_int_sdna(prop, NULL, "quality");
RNA_def_property_range(prop, 0, 100); /* 0 is needed for compression. */
- RNA_def_property_ui_text(prop, "Quality", "Quality of JPEG images, AVI Jpeg and SGI movies, Compression for PNG's");
+ RNA_def_property_ui_text(prop, N_("Quality"), N_("Quality of JPEG images, AVI Jpeg and SGI movies, Compression for PNG's"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
/* Tiff */
prop= RNA_def_property(srna, "use_tiff_16bit", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "subimtype", R_TIFF_16BIT);
- RNA_def_property_ui_text(prop, "16 Bit", "Save TIFF with 16 bits per channel");
+ RNA_def_property_ui_text(prop, "16 Bit", N_("Save TIFF with 16 bits per channel"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
/* Cineon and DPX */
prop= RNA_def_property(srna, "use_cineon_log", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "subimtype", R_CINEON_LOG);
- RNA_def_property_ui_text(prop, "Log", "Convert to logarithmic color space");
+ RNA_def_property_ui_text(prop, N_("Log"), N_("Convert to logarithmic color space"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "cineon_black", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "cineonblack");
RNA_def_property_range(prop, 0, 1024);
- RNA_def_property_ui_text(prop, "B", "Log conversion reference blackpoint");
+ RNA_def_property_ui_text(prop, "B", N_("Log conversion reference blackpoint"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "cineon_white", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "cineonwhite");
RNA_def_property_range(prop, 0, 1024);
- RNA_def_property_ui_text(prop, "W", "Log conversion reference whitepoint");
+ RNA_def_property_ui_text(prop, "W", N_("Log conversion reference whitepoint"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "cineon_gamma", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "cineongamma");
RNA_def_property_range(prop, 0.0f, 10.0f);
- RNA_def_property_ui_text(prop, "G", "Log conversion gamma");
+ RNA_def_property_ui_text(prop, "G", N_("Log conversion gamma"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
#ifdef WITH_OPENEXR
@@ -2278,22 +2278,22 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
prop= RNA_def_property(srna, "exr_codec", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_bitflag_sdna(prop, NULL, "quality");
RNA_def_property_enum_items(prop, exr_codec_items);
- RNA_def_property_ui_text(prop, "Codec", "Codec settings for OpenEXR");
+ RNA_def_property_ui_text(prop, N_("Codec"), N_("Codec settings for OpenEXR"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_exr_half", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "subimtype", R_OPENEXR_HALF);
- RNA_def_property_ui_text(prop, "Half", "Use 16 bit floats instead of 32 bit floats per channel");
+ RNA_def_property_ui_text(prop, N_("Half"), N_("Use 16 bit floats instead of 32 bit floats per channel"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "exr_zbuf", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "subimtype", R_OPENEXR_ZBUF);
- RNA_def_property_ui_text(prop, "Zbuf", "Save the z-depth per pixel (32 bit unsigned int z-buffer)");
+ RNA_def_property_ui_text(prop, N_("Zbuf"), N_("Save the z-depth per pixel (32 bit unsigned int z-buffer)"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "exr_preview", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "subimtype", R_PREVIEW_JPG);
- RNA_def_property_ui_text(prop, "Preview", "When rendering animations, save JPG preview images in same directory");
+ RNA_def_property_ui_text(prop, N_("Preview"), N_("When rendering animations, save JPG preview images in same directory"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
#endif
@@ -2304,19 +2304,19 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
RNA_def_property_enum_sdna(prop, NULL, "jp2_preset");
RNA_def_property_enum_items(prop, jp2_preset_items);
RNA_def_property_enum_funcs(prop, NULL, "rna_RenderSettings_jpeg2k_preset_set", NULL);
- RNA_def_property_ui_text(prop, "Preset", "Use a DCI Standard preset for saving jpeg2000");
+ RNA_def_property_ui_text(prop, N_("Preset"), N_("Use a DCI Standard preset for saving jpeg2000"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "jpeg2k_depth", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_bitflag_sdna(prop, NULL, "jp2_depth");
RNA_def_property_enum_items(prop, jp2_depth_items);
RNA_def_property_enum_funcs(prop, NULL, "rna_RenderSettings_jpeg2k_depth_set", NULL);
- RNA_def_property_ui_text(prop, "Depth", "Bit depth per channel");
+ RNA_def_property_ui_text(prop, N_("Depth"), N_("Bit depth per channel"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "jpeg2k_ycc", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "subimtype", R_JPEG2K_YCC);
- RNA_def_property_ui_text(prop, "YCC", "Save luminance-chrominance-chrominance channels instead of RGB colors");
+ RNA_def_property_ui_text(prop, "YCC", N_("Save luminance-chrominance-chrominance channels instead of RGB colors"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
#endif
@@ -2329,13 +2329,13 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
RNA_def_property_enum_funcs(prop, "rna_RenderSettings_qtcodecsettings_codecType_get",
"rna_RenderSettings_qtcodecsettings_codecType_set",
"rna_RenderSettings_qtcodecsettings_codecType_itemf");
- RNA_def_property_ui_text(prop, "Codec", "QuickTime codec type");
+ RNA_def_property_ui_text(prop, N_("Codec"), N_("QuickTime codec type"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "quicktime_codec_spatial_quality", PROP_INT, PROP_PERCENTAGE);
RNA_def_property_int_sdna(prop, NULL, "qtcodecsettings.codecSpatialQuality");
RNA_def_property_range(prop, 0, 100);
- RNA_def_property_ui_text(prop, "Spatial quality", "Intra-frame spatial quality level");
+ RNA_def_property_ui_text(prop, N_("Spatial quality"), N_("Intra-frame spatial quality level"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
#ifdef USE_QTKIT
@@ -2345,35 +2345,35 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
RNA_def_property_enum_funcs(prop, "rna_RenderSettings_qtcodecsettings_audiocodecType_get",
"rna_RenderSettings_qtcodecsettings_audiocodecType_set",
"rna_RenderSettings_qtcodecsettings_audiocodecType_itemf");
- RNA_def_property_ui_text(prop, "Audio Codec", "QuickTime audio codec type");
+ RNA_def_property_ui_text(prop, N_("Audio Codec"), N_("QuickTime audio codec type"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "quicktime_audio_samplerate", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_bitflag_sdna(prop, NULL, "qtcodecsettings.audioSampleRate");
RNA_def_property_enum_items(prop, quicktime_audio_samplerate_items);
- RNA_def_property_ui_text(prop, "Smp Rate", "Sample Rate");
+ RNA_def_property_ui_text(prop, N_("Smp Rate"), N_("Sample Rate"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "quicktime_audio_bitdepth", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_bitflag_sdna(prop, NULL, "qtcodecsettings.audioBitDepth");
RNA_def_property_enum_items(prop, quicktime_audio_bitdepth_items);
- RNA_def_property_ui_text(prop, "Bit Depth", "Bit Depth");
+ RNA_def_property_ui_text(prop, N_("Bit Depth"), N_("Bit Depth"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "quicktime_audio_resampling_hq", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_negative_sdna(prop, NULL, "qtcodecsettings.audioCodecFlags", QTAUDIO_FLAG_RESAMPLE_NOHQ);
- RNA_def_property_ui_text(prop, "HQ", "Use High Quality resampling algorithm");
+ RNA_def_property_ui_text(prop, "HQ", N_("Use High Quality resampling algorithm"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "quicktime_audio_codec_isvbr", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_negative_sdna(prop, NULL, "qtcodecsettings.audioCodecFlags", QTAUDIO_FLAG_CODEC_ISCBR);
- RNA_def_property_ui_text(prop, "VBR", "Use Variable Bit Rate compression (improves quality at same bitrate)");
+ RNA_def_property_ui_text(prop, "VBR", N_("Use Variable Bit Rate compression (improves quality at same bitrate)"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "quicktime_audio_bitrate", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_bitflag_sdna(prop, NULL, "qtcodecsettings.audioBitRate");
RNA_def_property_enum_items(prop, quicktime_audio_bitrate_items);
- RNA_def_property_ui_text(prop, "Bitrate", "Compressed audio bitrate");
+ RNA_def_property_ui_text(prop, "Bitrate", N_("Compressed audio bitrate"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
#endif
#endif
@@ -2384,85 +2384,85 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
prop= RNA_def_property(srna, "ffmpeg_format", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_bitflag_sdna(prop, NULL, "ffcodecdata.type");
RNA_def_property_enum_items(prop, ffmpeg_format_items);
- RNA_def_property_ui_text(prop, "Format", "Output file format");
+ RNA_def_property_ui_text(prop, N_("Format"), N_("Output file format"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "ffmpeg_codec", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_bitflag_sdna(prop, NULL, "ffcodecdata.codec");
RNA_def_property_enum_items(prop, ffmpeg_codec_items);
- RNA_def_property_ui_text(prop, "Codec", "FFMpeg codec to use");
+ RNA_def_property_ui_text(prop, N_("Codec"), N_("FFMpeg codec to use"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "ffmpeg_video_bitrate", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "ffcodecdata.video_bitrate");
RNA_def_property_range(prop, 1, 14000);
- RNA_def_property_ui_text(prop, "Bitrate", "Video bitrate(kb/s)");
+ RNA_def_property_ui_text(prop, N_("Bitrate"), N_("Video bitrate(kb/s)"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "ffmpeg_minrate", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "ffcodecdata.rc_min_rate");
RNA_def_property_range(prop, 0, 9000);
- RNA_def_property_ui_text(prop, "Min Rate", "Rate control: min rate(kb/s)");
+ RNA_def_property_ui_text(prop, N_("Min Rate"), N_("Rate control: min rate(kb/s)"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "ffmpeg_maxrate", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "ffcodecdata.rc_max_rate");
RNA_def_property_range(prop, 1, 14000);
- RNA_def_property_ui_text(prop, "Max Rate", "Rate control: max rate(kb/s)");
+ RNA_def_property_ui_text(prop, N_("Max Rate"), N_("Rate control: max rate(kb/s)"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "ffmpeg_muxrate", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "ffcodecdata.mux_rate");
RNA_def_property_range(prop, 0, 100000000);
- RNA_def_property_ui_text(prop, "Mux Rate", "Mux rate (bits/s(!))");
+ RNA_def_property_ui_text(prop, N_("Mux Rate"), N_("Mux rate (bits/s(!))"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "ffmpeg_gopsize", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "ffcodecdata.gop_size");
RNA_def_property_range(prop, 0, 100);
- RNA_def_property_ui_text(prop, "GOP Size", "Distance between key frames");
+ RNA_def_property_ui_text(prop, N_("GOP Size"), N_("Distance between key frames"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "ffmpeg_buffersize", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "ffcodecdata.rc_buffer_size");
RNA_def_property_range(prop, 0, 2000);
- RNA_def_property_ui_text(prop, "Buffersize", "Rate control: buffer size (kb)");
+ RNA_def_property_ui_text(prop, N_("Buffersize"), N_("Rate control: buffer size (kb)"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "ffmpeg_packetsize", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "ffcodecdata.mux_packet_size");
RNA_def_property_range(prop, 0, 16384);
- RNA_def_property_ui_text(prop, "Mux Packet Size", "Mux packet size (byte)");
+ RNA_def_property_ui_text(prop, N_("Mux Packet Size"), N_("Mux packet size (byte)"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "ffmpeg_autosplit", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "ffcodecdata.flags", FFMPEG_AUTOSPLIT_OUTPUT);
- RNA_def_property_ui_text(prop, "Autosplit Output", "Autosplit output at 2GB boundary");
+ RNA_def_property_ui_text(prop, N_("Autosplit Output"), N_("Autosplit output at 2GB boundary"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
/* FFMPEG Audio*/
prop= RNA_def_property(srna, "ffmpeg_audio_codec", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_bitflag_sdna(prop, NULL, "ffcodecdata.audio_codec");
RNA_def_property_enum_items(prop, ffmpeg_audio_codec_items);
- RNA_def_property_ui_text(prop, "Audio Codec", "FFMpeg audio codec to use");
+ RNA_def_property_ui_text(prop, N_("Audio Codec"), N_("FFMpeg audio codec to use"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "ffmpeg_audio_bitrate", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "ffcodecdata.audio_bitrate");
RNA_def_property_range(prop, 32, 384);
- RNA_def_property_ui_text(prop, "Bitrate", "Audio bitrate(kb/s)");
+ RNA_def_property_ui_text(prop, N_("Bitrate"), N_("Audio bitrate(kb/s)"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "ffmpeg_audio_mixrate", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "ffcodecdata.audio_mixrate");
RNA_def_property_range(prop, 8000, 192000);
- RNA_def_property_ui_text(prop, "Samplerate", "Audio samplerate(samples/s)");
+ RNA_def_property_ui_text(prop, N_("Samplerate"), N_("Audio samplerate(samples/s)"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "ffmpeg_audio_volume", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "ffcodecdata.audio_volume");
RNA_def_property_range(prop, 0.0f, 1.0f);
- RNA_def_property_ui_text(prop, "Volume", "Audio volume");
+ RNA_def_property_ui_text(prop, N_("Volume"), N_("Audio volume"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
#endif
@@ -2471,14 +2471,14 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
RNA_def_property_int_sdna(prop, NULL, "frs_sec");
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
RNA_def_property_range(prop, 1, 120);
- RNA_def_property_ui_text(prop, "FPS", "Framerate, expressed in frames per second");
+ RNA_def_property_ui_text(prop, N_("FPS"), N_("Framerate, expressed in frames per second"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "fps_base", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "frs_sec_base");
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
RNA_def_property_range(prop, 0.1f, 120.0f);
- RNA_def_property_ui_text(prop, "FPS Base", "Framerate base");
+ RNA_def_property_ui_text(prop, N_("FPS Base"), N_("Framerate base"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
/* frame mapping */
@@ -2486,136 +2486,136 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
RNA_def_property_int_sdna(prop, NULL, "framapto");
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
RNA_def_property_range(prop, 1, 900);
- RNA_def_property_ui_text(prop, "Frame Map Old", "Specify old mapping value in frames");
+ RNA_def_property_ui_text(prop, N_("Frame Map Old"), N_("Specify old mapping value in frames"));
RNA_def_property_update(prop, NC_SCENE|ND_FRAME, "rna_Scene_framelen_update");
prop= RNA_def_property(srna, "frame_map_new", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "images");
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
RNA_def_property_range(prop, 1, 900);
- RNA_def_property_ui_text(prop, "Frame Map New", "Specify how many frames the Map Old will last");
+ RNA_def_property_ui_text(prop, N_("Frame Map New"), N_("Specify how many frames the Map Old will last"));
RNA_def_property_update(prop, NC_SCENE|ND_FRAME, "rna_Scene_framelen_update");
prop= RNA_def_property(srna, "dither_intensity", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "dither_intensity");
RNA_def_property_range(prop, 0.0f, 2.0f);
- RNA_def_property_ui_text(prop, "Dither Intensity", "Amount of dithering noise added to the rendered image to break up banding");
+ RNA_def_property_ui_text(prop, N_("Dither Intensity"), N_("Amount of dithering noise added to the rendered image to break up banding"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "pixel_filter_type", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_sdna(prop, NULL, "filtertype");
RNA_def_property_enum_items(prop, pixel_filter_items);
- RNA_def_property_ui_text(prop, "Pixel Filter", "Reconstruction filter used for combining anti-aliasing samples");
+ RNA_def_property_ui_text(prop, N_("Pixel Filter"), N_("Reconstruction filter used for combining anti-aliasing samples"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "filter_size", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "gauss");
RNA_def_property_range(prop, 0.5f, 1.5f);
- RNA_def_property_ui_text(prop, "Filter Size", "Pixel width over which the reconstruction filter combines samples");
+ RNA_def_property_ui_text(prop, N_("Filter Size"), N_("Pixel width over which the reconstruction filter combines samples"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "alpha_mode", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_sdna(prop, NULL, "alphamode");
RNA_def_property_enum_items(prop, alpha_mode_items);
- RNA_def_property_ui_text(prop, "Alpha Mode", "Representation of alpha information in the RGBA pixels");
+ RNA_def_property_ui_text(prop, N_("Alpha Mode"), N_("Representation of alpha information in the RGBA pixels"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "octree_resolution", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_sdna(prop, NULL, "ocres");
RNA_def_property_enum_items(prop, octree_resolution_items);
- RNA_def_property_ui_text(prop, "Octree Resolution", "Resolution of raytrace accelerator. Use higher resolutions for larger scenes");
+ RNA_def_property_ui_text(prop, N_("Octree Resolution"), N_("Resolution of raytrace accelerator. Use higher resolutions for larger scenes"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "raytrace_method", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_sdna(prop, NULL, "raytrace_structure");
RNA_def_property_enum_items(prop, raytrace_structure_items);
- RNA_def_property_ui_text(prop, "Raytrace Acceleration Structure", "Type of raytrace accelerator structure");
+ RNA_def_property_ui_text(prop, N_("Raytrace Acceleration Structure"), N_("Type of raytrace accelerator structure"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_instances", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "raytrace_options", R_RAYTRACE_USE_INSTANCES);
- RNA_def_property_ui_text(prop, "Use Instances", "Instance support leads to effective memory reduction when using duplicates");
+ RNA_def_property_ui_text(prop, N_("Use Instances"), N_("Instance support leads to effective memory reduction when using duplicates"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_local_coords", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "raytrace_options", R_RAYTRACE_USE_LOCAL_COORDS);
- RNA_def_property_ui_text(prop, "Use Local Coords", "Vertex coordinates are stored localy on each primitive. Increases memory usage, but may have impact on speed");
+ RNA_def_property_ui_text(prop, N_("Use Local Coords"), N_("Vertex coordinates are stored localy on each primitive. Increases memory usage, but may have impact on speed"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_antialiasing", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_OSA);
- RNA_def_property_ui_text(prop, "Anti-Aliasing", "Render and combine multiple samples per pixel to prevent jagged edges");
+ RNA_def_property_ui_text(prop, N_("Anti-Aliasing"), N_("Render and combine multiple samples per pixel to prevent jagged edges"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "antialiasing_samples", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_sdna(prop, NULL, "osa");
RNA_def_property_enum_items(prop, fixed_oversample_items);
- RNA_def_property_ui_text(prop, "Anti-Aliasing Samples", "Amount of anti-aliasing samples per pixel");
+ RNA_def_property_ui_text(prop, N_("Anti-Aliasing Samples"), N_("Amount of anti-aliasing samples per pixel"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_fields", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_FIELDS);
- RNA_def_property_ui_text(prop, "Fields", "Render image to two fields per frame, for interlaced TV output");
+ RNA_def_property_ui_text(prop, N_("Fields"), N_("Render image to two fields per frame, for interlaced TV output"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "field_order", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_bitflag_sdna(prop, NULL, "mode");
RNA_def_property_enum_items(prop, field_order_items);
- RNA_def_property_ui_text(prop, "Field Order", "Order of video fields. Select which lines get rendered first, to create smooth motion for TV output");
+ RNA_def_property_ui_text(prop, N_("Field Order"), N_("Order of video fields. Select which lines get rendered first, to create smooth motion for TV output"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_fields_still", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_FIELDSTILL);
- RNA_def_property_ui_text(prop, "Fields Still", "Disable the time difference between fields");
+ RNA_def_property_ui_text(prop, N_("Fields Still"), N_("Disable the time difference between fields"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
/* rendering features */
prop= RNA_def_property(srna, "use_shadows", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_SHADOW);
- RNA_def_property_ui_text(prop, "Shadows", "Calculate shadows while rendering");
+ RNA_def_property_ui_text(prop, N_("Shadows"), N_("Calculate shadows while rendering"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_envmaps", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_ENVMAP);
- RNA_def_property_ui_text(prop, "Environment Maps", "Calculate environment maps while rendering");
+ RNA_def_property_ui_text(prop, N_("Environment Maps"), N_("Calculate environment maps while rendering"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_radiosity", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_RADIO);
- RNA_def_property_ui_text(prop, "Radiosity", "Calculate radiosity in a pre-process before rendering");
+ RNA_def_property_ui_text(prop, N_("Radiosity"), N_("Calculate radiosity in a pre-process before rendering"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_sss", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_SSS);
- RNA_def_property_ui_text(prop, "Subsurface Scattering", "Calculate sub-surface scattering in materials rendering");
+ RNA_def_property_ui_text(prop, N_("Subsurface Scattering"), N_("Calculate sub-surface scattering in materials rendering"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_raytrace", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_RAYTRACE);
- RNA_def_property_ui_text(prop, "Raytracing", "Pre-calculate the raytrace accelerator and render raytracing effects");
+ RNA_def_property_ui_text(prop, N_("Raytracing"), N_("Pre-calculate the raytrace accelerator and render raytracing effects"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_textures", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_negative_sdna(prop, NULL, "scemode", R_NO_TEX);
- RNA_def_property_ui_text(prop, "Textures", "Use textures to affect material properties");
+ RNA_def_property_ui_text(prop, N_("Textures"), N_("Use textures to affect material properties"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_edge_enhance", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_EDGE);
- RNA_def_property_ui_text(prop, "Edge", "Create a toon outline around the edges of geometry");
+ RNA_def_property_ui_text(prop, N_("Edge"), N_("Create a toon outline around the edges of geometry"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "edge_threshold", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "edgeint");
RNA_def_property_range(prop, 0, 255);
- RNA_def_property_ui_text(prop, "Edge Threshold", "Threshold for drawing outlines on geometry edges");
+ RNA_def_property_ui_text(prop, N_("Edge Threshold"), N_("Threshold for drawing outlines on geometry edges"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "edge_color", PROP_FLOAT, PROP_COLOR);
RNA_def_property_float_sdna(prop, NULL, "edgeR");
RNA_def_property_array(prop, 3);
- RNA_def_property_ui_text(prop, "Edge Color", "Edge color");
+ RNA_def_property_ui_text(prop, N_("Edge Color"), N_("Edge color"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
/* threads */
@@ -2623,72 +2623,72 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
RNA_def_property_int_sdna(prop, NULL, "threads");
RNA_def_property_range(prop, 1, BLENDER_MAX_THREADS);
RNA_def_property_int_funcs(prop, "rna_RenderSettings_threads_get", NULL, NULL);
- RNA_def_property_ui_text(prop, "Threads", "Number of CPU threads to use simultaneously while rendering (for multi-core/CPU systems)");
+ RNA_def_property_ui_text(prop, N_("Threads"), N_("Number of CPU threads to use simultaneously while rendering (for multi-core/CPU systems)"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "threads_mode", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_bitflag_sdna(prop, NULL, "mode");
RNA_def_property_enum_items(prop, threads_mode_items);
- RNA_def_property_ui_text(prop, "Threads Mode", "Determine the amount of render threads used");
+ RNA_def_property_ui_text(prop, N_("Threads Mode"), N_("Determine the amount of render threads used"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
/* motion blur */
prop= RNA_def_property(srna, "use_motion_blur", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_MBLUR);
- RNA_def_property_ui_text(prop, "Motion Blur", "Use multi-sampled 3D scene motion blur");
+ RNA_def_property_ui_text(prop, N_("Motion Blur"), N_("Use multi-sampled 3D scene motion blur"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "motion_blur_samples", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "mblur_samples");
RNA_def_property_range(prop, 1, 32);
- RNA_def_property_ui_text(prop, "Motion Samples", "Number of scene samples to take with motion blur");
+ RNA_def_property_ui_text(prop, N_("Motion Samples"), N_("Number of scene samples to take with motion blur"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "motion_blur_shutter", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "blurfac");
RNA_def_property_range(prop, 0.01f, 10.0f);
RNA_def_property_ui_range(prop, 0.01, 2.0f, 1, 0);
- RNA_def_property_ui_text(prop, "Shutter", "Time taken in frames between shutter open and close");
+ RNA_def_property_ui_text(prop, N_("Shutter"), N_("Time taken in frames between shutter open and close"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
/* border */
prop= RNA_def_property(srna, "use_border", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_BORDER);
- RNA_def_property_ui_text(prop, "Border", "Render a user-defined border region, within the frame size. Note, this disables save_buffers and full_sample");
+ RNA_def_property_ui_text(prop, N_("Border"), N_("Render a user-defined border region, within the frame size. Note, this disables save_buffers and full_sample"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "border_min_x", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "border.xmin");
RNA_def_property_range(prop, 0.0f, 1.0f);
- RNA_def_property_ui_text(prop, "Border Minimum X", "Sets minimum X value to for the render border");
+ RNA_def_property_ui_text(prop, N_("Border Minimum X"), N_("Sets minimum X value to for the render border"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "border_min_y", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "border.ymin");
RNA_def_property_range(prop, 0.0f, 1.0f);
- RNA_def_property_ui_text(prop, "Border Minimum Y", "Sets minimum Y value for the render border");
+ RNA_def_property_ui_text(prop, N_("Border Minimum Y"), N_("Sets minimum Y value for the render border"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "border_max_x", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "border.xmax");
RNA_def_property_range(prop, 0.0f, 1.0f);
- RNA_def_property_ui_text(prop, "Border Maximum X", "Sets maximum X value for the render border");
+ RNA_def_property_ui_text(prop, N_("Border Maximum X"), N_("Sets maximum X value for the render border"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "border_max_y", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "border.ymax");
RNA_def_property_range(prop, 0.0f, 1.0f);
- RNA_def_property_ui_text(prop, "Border Maximum Y", "Sets maximum Y value for the render border");
+ RNA_def_property_ui_text(prop, N_("Border Maximum Y"), N_("Sets maximum Y value for the render border"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_crop_to_border", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_CROP);
- RNA_def_property_ui_text(prop, "Crop to Border", "Crop the rendered frame to the defined border size");
+ RNA_def_property_ui_text(prop, N_("Crop to Border"), N_("Crop the rendered frame to the defined border size"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_placeholder", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_TOUCH);
- RNA_def_property_ui_text(prop, "Placeholders", "Create empty placeholder files while rendering frames (similar to Unix 'touch')");
+ RNA_def_property_ui_text(prop, N_("Placeholders"), N_("Create empty placeholder files while rendering frames (similar to Unix 'touch')"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_overwrite", PROP_BOOLEAN, PROP_NONE);
@@ -2698,17 +2698,17 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
prop= RNA_def_property(srna, "use_compositing", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "scemode", R_DOCOMP);
- RNA_def_property_ui_text(prop, "Compositing", "Process the render result through the compositing pipeline, if compositing nodes are enabled");
+ RNA_def_property_ui_text(prop, N_("Compositing"), N_("Process the render result through the compositing pipeline, if compositing nodes are enabled"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_sequencer", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "scemode", R_DOSEQ);
- RNA_def_property_ui_text(prop, "Sequencer", "Process the render (and composited) result through the video sequence editor pipeline, if sequencer strips exist");
+ RNA_def_property_ui_text(prop, N_("Sequencer"), N_("Process the render (and composited) result through the video sequence editor pipeline, if sequencer strips exist"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_color_management", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "color_mgt_flag", R_COLOR_MANAGEMENT);
- RNA_def_property_ui_text(prop, "Color Management", "Use linear workflow - gamma corrected imaging pipeline");
+ RNA_def_property_ui_text(prop, N_("Color Management"), N_("Use linear workflow - gamma corrected imaging pipeline"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_RenderSettings_color_management_update");
@@ -2721,50 +2721,50 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
RNA_def_property_enum_sdna(prop, NULL, "imtype");
RNA_def_property_enum_items(prop, image_type_items);
RNA_def_property_enum_funcs(prop, NULL, "rna_RenderSettings_file_format_set", NULL);
- RNA_def_property_ui_text(prop, "File Format", "File format to save the rendered images as");
+ RNA_def_property_ui_text(prop, N_("File Format"), N_("File format to save the rendered images as"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "file_extension", PROP_STRING, PROP_NONE);
RNA_def_property_string_funcs(prop, "rna_SceneRender_file_ext_get", "rna_SceneRender_file_ext_length", NULL);
- RNA_def_property_ui_text(prop, "Extension", "The file extension used for saving renders");
+ RNA_def_property_ui_text(prop, N_("Extension"), N_("The file extension used for saving renders"));
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
prop= RNA_def_property(srna, "is_movie_format", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_funcs(prop, "rna_RenderSettings_is_movie_fomat_get", NULL);
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
- RNA_def_property_ui_text(prop, "Movie Format", "When true the format is a movie");
+ RNA_def_property_ui_text(prop, N_("Movie Format"), N_("When true the format is a movie"));
prop= RNA_def_property(srna, "use_free_image_textures", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "scemode", R_FREE_IMAGE);
- RNA_def_property_ui_text(prop, "Free Image Textures", "Free all image texture from memory after render, to save memory before compositing");
+ RNA_def_property_ui_text(prop, N_("Free Image Textures"), N_("Free all image texture from memory after render, to save memory before compositing"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_free_unused_nodes", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "scemode", R_COMP_FREE);
- RNA_def_property_ui_text(prop, "Free Unused Nodes", "Free Nodes that are not used while compositing, to save memory");
+ RNA_def_property_ui_text(prop, N_("Free Unused Nodes"), N_("Free Nodes that are not used while compositing, to save memory"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_save_buffers", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "scemode", R_EXR_TILE_FILE);
RNA_def_property_boolean_funcs(prop, "rna_RenderSettings_save_buffers_get", NULL);
- RNA_def_property_ui_text(prop, "Save Buffers","Save tiles for all RenderLayers and SceneNodes to files in the temp directory (saves memory, required for Full Sample)");
+ RNA_def_property_ui_text(prop, N_("Save Buffers"), N_("Save tiles for all RenderLayers and SceneNodes to files in the temp directory (saves memory, required for Full Sample)"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_full_sample", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "scemode", R_FULL_SAMPLE);
RNA_def_property_boolean_funcs(prop, "rna_RenderSettings_full_sample_get", NULL);
- RNA_def_property_ui_text(prop, "Full Sample","Save for every anti-aliasing sample the entire RenderLayer results. This solves anti-aliasing issues with compositing");
+ RNA_def_property_ui_text(prop, N_("Full Sample"),N_("Save for every anti-aliasing sample the entire RenderLayer results. This solves anti-aliasing issues with compositing"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "display_mode", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_bitflag_sdna(prop, NULL, "displaymode");
RNA_def_property_enum_items(prop, display_mode_items);
- RNA_def_property_ui_text(prop, "Display", "Select where rendered images will be displayed");
+ RNA_def_property_ui_text(prop, N_("Display"), N_("Select where rendered images will be displayed"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "filepath", PROP_STRING, PROP_FILEPATH);
RNA_def_property_string_sdna(prop, NULL, "pic");
- RNA_def_property_ui_text(prop, "Output Path", "Directory/name to save animations, # characters defines the position and length of frame numbers");
+ RNA_def_property_ui_text(prop, N_("Output Path"), N_("Directory/name to save animations, # characters defines the position and length of frame numbers"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
/* Bake */
@@ -2772,181 +2772,181 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
prop= RNA_def_property(srna, "bake_type", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_bitflag_sdna(prop, NULL, "bake_mode");
RNA_def_property_enum_items(prop, bake_mode_items);
- RNA_def_property_ui_text(prop, "Bake Mode", "Choose shading information to bake into the image");
+ RNA_def_property_ui_text(prop, N_("Bake Mode"), N_("Choose shading information to bake into the image"));
prop= RNA_def_property(srna, "bake_normal_space", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_bitflag_sdna(prop, NULL, "bake_normal_space");
RNA_def_property_enum_items(prop, bake_normal_space_items);
- RNA_def_property_ui_text(prop, "Normal Space", "Choose normal space for baking");
+ RNA_def_property_ui_text(prop, N_("Normal Space"), N_("Choose normal space for baking"));
prop= RNA_def_property(srna, "bake_quad_split", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_items(prop, bake_qyad_split_items);
- RNA_def_property_ui_text(prop, "Quad Split", "Choose the method used to split a quad into 2 triangles for baking");
+ RNA_def_property_ui_text(prop, N_("Quad Split"), N_("Choose the method used to split a quad into 2 triangles for baking"));
prop= RNA_def_property(srna, "bake_aa_mode", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_bitflag_sdna(prop, NULL, "bake_osa");
RNA_def_property_enum_items(prop, fixed_oversample_items);
- RNA_def_property_ui_text(prop, "Anti-Aliasing Level", "");
+ RNA_def_property_ui_text(prop, N_("Anti-Aliasing Level"), "");
prop= RNA_def_property(srna, "use_bake_selected_to_active", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "bake_flag", R_BAKE_TO_ACTIVE);
- RNA_def_property_ui_text(prop, "Selected to Active", "Bake shading on the surface of selected objects to the active object");
+ RNA_def_property_ui_text(prop, N_("Selected to Active"), N_("Bake shading on the surface of selected objects to the active object"));
prop= RNA_def_property(srna, "use_bake_normalize", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "bake_flag", R_BAKE_NORMALIZE);
- RNA_def_property_ui_text(prop, "Normalized", "With displacement normalize to the distance, with ambient occlusion normalize without using material settings");
+ RNA_def_property_ui_text(prop, N_("Normalized"), N_("With displacement normalize to the distance, with ambient occlusion normalize without using material settings"));
prop= RNA_def_property(srna, "use_bake_clear", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "bake_flag", R_BAKE_CLEAR);
- RNA_def_property_ui_text(prop, "Clear", "Clear Images before baking");
+ RNA_def_property_ui_text(prop, N_("Clear"), N_("Clear Images before baking"));
prop= RNA_def_property(srna, "use_bake_antialiasing", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "bake_flag", R_BAKE_OSA);
- RNA_def_property_ui_text(prop, "Anti-Aliasing", "Enables Anti-aliasing");
+ RNA_def_property_ui_text(prop, N_("Anti-Aliasing"), N_("Enables Anti-aliasing"));
prop= RNA_def_property(srna, "bake_margin", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "bake_filter");
RNA_def_property_range(prop, 0, 32);
- RNA_def_property_ui_text(prop, "Margin", "Amount of pixels to extend the baked result with, as post process filter");
+ RNA_def_property_ui_text(prop, N_("Margin"), N_("Amount of pixels to extend the baked result with, as post process filter"));
prop= RNA_def_property(srna, "bake_distance", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "bake_maxdist");
RNA_def_property_range(prop, 0.0, 1000.0);
- RNA_def_property_ui_text(prop, "Distance", "Maximum distance from active object to other object (in blender units");
+ RNA_def_property_ui_text(prop, N_("Distance"), N_("Maximum distance from active object to other object (in blender units"));
prop= RNA_def_property(srna, "bake_bias", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "bake_biasdist");
RNA_def_property_range(prop, 0.0, 1000.0);
- RNA_def_property_ui_text(prop, "Bias", "Bias towards faces further away from the object (in blender units)");
+ RNA_def_property_ui_text(prop, N_("Bias"), N_("Bias towards faces further away from the object (in blender units)"));
prop= RNA_def_property(srna, "use_bake_multires", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "bake_flag", R_BAKE_MULTIRES);
- RNA_def_property_ui_text(prop, "Bake from Multires", "Bake directly from multires object");
+ RNA_def_property_ui_text(prop, N_("Bake from Multires"), N_("Bake directly from multires object"));
prop= RNA_def_property(srna, "use_bake_lores_mesh", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "bake_flag", R_BAKE_LORES_MESH);
- RNA_def_property_ui_text(prop, "Low Resolution Mesh", "Calculate heights against unsubdivided low resolution mesh");
+ RNA_def_property_ui_text(prop, N_("Low Resolution Mesh"), N_("Calculate heights against unsubdivided low resolution mesh"));
/* stamp */
prop= RNA_def_property(srna, "use_stamp_time", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "stamp", R_STAMP_TIME);
- RNA_def_property_ui_text(prop, "Stamp Time", "Include the render frame as HH:MM:SS.FF in image metadata");
+ RNA_def_property_ui_text(prop, N_("Stamp Time"), N_("Include the render frame as HH:MM:SS.FF in image metadata"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_stamp_date", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "stamp", R_STAMP_DATE);
- RNA_def_property_ui_text(prop, "Stamp Date", "Include the current date in image metadata");
+ RNA_def_property_ui_text(prop, N_("Stamp Date"), N_("Include the current date in image metadata"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_stamp_frame", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "stamp", R_STAMP_FRAME);
- RNA_def_property_ui_text(prop, "Stamp Frame", "Include the frame number in image metadata");
+ RNA_def_property_ui_text(prop, N_("Stamp Frame"), N_("Include the frame number in image metadata"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_stamp_camera", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "stamp", R_STAMP_CAMERA);
- RNA_def_property_ui_text(prop, "Stamp Camera", "Include the name of the active camera in image metadata");
+ RNA_def_property_ui_text(prop, N_("Stamp Camera"), N_("Include the name of the active camera in image metadata"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_stamp_lens", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "stamp", R_STAMP_CAMERALENS);
- RNA_def_property_ui_text(prop, "Stamp Lens", "Include the name of the active cameras lens in image metadata");
+ RNA_def_property_ui_text(prop, N_("Stamp Lens"), N_("Include the name of the active cameras lens in image metadata"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_stamp_scene", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "stamp", R_STAMP_SCENE);
- RNA_def_property_ui_text(prop, "Stamp Scene", "Include the name of the active scene in image metadata");
+ RNA_def_property_ui_text(prop, N_("Stamp Scene"), N_("Include the name of the active scene in image metadata"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_stamp_note", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "stamp", R_STAMP_NOTE);
- RNA_def_property_ui_text(prop, "Stamp Note", "Include a custom note in image metadata");
+ RNA_def_property_ui_text(prop, N_("Stamp Note"), N_("Include a custom note in image metadata"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_stamp_marker", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "stamp", R_STAMP_MARKER);
- RNA_def_property_ui_text(prop, "Stamp Marker", "Include the name of the last marker in image metadata");
+ RNA_def_property_ui_text(prop, N_("Stamp Marker"), N_("Include the name of the last marker in image metadata"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_stamp_filename", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "stamp", R_STAMP_FILENAME);
- RNA_def_property_ui_text(prop, "Stamp Filename", "Include the filename of the .blend file in image metadata");
+ RNA_def_property_ui_text(prop, N_("Stamp Filename"), N_("Include the filename of the .blend file in image metadata"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_stamp_sequencer_strip", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "stamp", R_STAMP_SEQSTRIP);
- RNA_def_property_ui_text(prop, "Stamp Sequence Strip", "Include the name of the foreground sequence strip in image metadata");
+ RNA_def_property_ui_text(prop, N_("Stamp Sequence Strip"), N_("Include the name of the foreground sequence strip in image metadata"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_stamp_render_time", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "stamp", R_STAMP_RENDERTIME);
- RNA_def_property_ui_text(prop, "Stamp Render Time", "Include the render time in the stamp image");
+ RNA_def_property_ui_text(prop, N_("Stamp Render Time"), N_("Include the render time in the stamp image"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "stamp_note_text", PROP_STRING, PROP_NONE);
RNA_def_property_string_sdna(prop, NULL, "stamp_udata");
- RNA_def_property_ui_text(prop, "Stamp Note Text", "Custom text to appear in the stamp note");
+ RNA_def_property_ui_text(prop, N_("Stamp Note Text"), N_("Custom text to appear in the stamp note"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "use_stamp", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "stamp", R_STAMP_DRAW);
- RNA_def_property_ui_text(prop, "Render Stamp", "Render the stamp info text in the rendered image");
+ RNA_def_property_ui_text(prop, N_("Render Stamp"), N_("Render the stamp info text in the rendered image"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "stamp_font_size", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "stamp_font_id");
RNA_def_property_range(prop, 8, 64);
- RNA_def_property_ui_text(prop, "Font Size", "Size of the font used when rendering stamp text");
+ RNA_def_property_ui_text(prop, N_("Font Size"), N_("Size of the font used when rendering stamp text"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "stamp_foreground", PROP_FLOAT, PROP_COLOR);
RNA_def_property_float_sdna(prop, NULL, "fg_stamp");
RNA_def_property_array(prop, 4);
RNA_def_property_range(prop,0.0,1.0);
- RNA_def_property_ui_text(prop, "Stamp Text Color", "Color to use for stamp text");
+ RNA_def_property_ui_text(prop, N_("Stamp Text Color"), N_("Color to use for stamp text"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
prop= RNA_def_property(srna, "stamp_background", PROP_FLOAT, PROP_COLOR);
RNA_def_property_float_sdna(prop, NULL, "bg_stamp");
RNA_def_property_array(prop, 4);
RNA_def_property_range(prop,0.0,1.0);
- RNA_def_property_ui_text(prop, "Stamp Background", "Color to use behind stamp text");
+ RNA_def_property_ui_text(prop, N_("Stamp Background"), N_("Color to use behind stamp text"));
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
/* sequencer draw options */
prop= RNA_def_property(srna, "use_sequencer_gl_preview", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "seq_flag", R_SEQ_GL_PREV);
- RNA_def_property_ui_text(prop, "Sequencer OpenGL", "");
+ RNA_def_property_ui_text(prop, N_("Sequencer OpenGL"), "");
prop= RNA_def_property(srna, "use_sequencer_gl_render", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "seq_flag", R_SEQ_GL_REND);
- RNA_def_property_ui_text(prop, "Sequencer OpenGL", "");
+ RNA_def_property_ui_text(prop, N_("Sequencer OpenGL"), "");
prop= RNA_def_property(srna, "sequencer_gl_preview", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_sdna(prop, NULL, "seq_prev_type");
RNA_def_property_enum_items(prop, viewport_shade_items);
- RNA_def_property_ui_text(prop, "Sequencer Preview Shading", "Method to draw in the sequencer view");
+ RNA_def_property_ui_text(prop, N_("Sequencer Preview Shading"), N_("Method to draw in the sequencer view"));
prop= RNA_def_property(srna, "sequencer_gl_render", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_sdna(prop, NULL, "seq_rend_type");
RNA_def_property_enum_items(prop, viewport_shade_items);
- RNA_def_property_ui_text(prop, "Sequencer Preview Shading", "Method to draw in the sequencer view");
+ RNA_def_property_ui_text(prop, N_("Sequencer Preview Shading"), N_("Method to draw in the sequencer view"));
/* layers */
prop= RNA_def_property(srna, "layers", PROP_COLLECTION, PROP_NONE);
RNA_def_property_collection_sdna(prop, NULL, "layers", NULL);
RNA_def_property_struct_type(prop, "SceneRenderLayer");
- RNA_def_property_ui_text(prop, "Render Layers", "");
+ RNA_def_property_ui_text(prop, N_("Render Layers"), "");
rna_def_render_layers(brna, prop);
prop= RNA_def_property(srna, "use_single_layer", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "scemode", R_SINGLE_LAYER);
- RNA_def_property_ui_text(prop, "Single Layer", "Only render the active layer");
+ RNA_def_property_ui_text(prop, N_("Single Layer"), N_("Only render the active layer"));
RNA_def_property_ui_icon(prop, ICON_UNPINNED, 1);
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
@@ -2960,44 +2960,44 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
prop= RNA_def_property(srna, "has_multiple_engines", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_funcs(prop, "rna_RenderSettings_multiple_engines_get", NULL);
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
- RNA_def_property_ui_text(prop, "Multiple Engines", "More than one rendering engine is available");
+ RNA_def_property_ui_text(prop, N_("Multiple Engines"), N_("More than one rendering engine is available"));
prop= RNA_def_property(srna, "use_game_engine", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_funcs(prop, "rna_RenderSettings_use_game_engine_get", NULL);
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
- RNA_def_property_ui_text(prop, "Use Game Engine", "Current rendering engine is a game engine");
+ RNA_def_property_ui_text(prop, N_("Use Game Engine"), N_("Current rendering engine is a game engine"));
/* simplify */
prop= RNA_def_property(srna, "use_simplify", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_SIMPLIFY);
- RNA_def_property_ui_text(prop, "Use Simplify", "Enable simplification of scene for quicker preview renders");
+ RNA_def_property_ui_text(prop, N_("Use Simplify"), N_("Enable simplification of scene for quicker preview renders"));
RNA_def_property_update(prop, 0, "rna_Scene_use_simplify_update");
prop= RNA_def_property(srna, "simplify_subdivision", PROP_INT, PROP_UNSIGNED);
RNA_def_property_int_sdna(prop, NULL, "simplify_subsurf");
RNA_def_property_ui_range(prop, 0, 6, 1, 0);
- RNA_def_property_ui_text(prop, "Simplify Subdivision", "Global maximum subdivision level");
+ RNA_def_property_ui_text(prop, N_("Simplify Subdivision"), N_("Global maximum subdivision level"));
RNA_def_property_update(prop, 0, "rna_Scene_simplify_update");
prop= RNA_def_property(srna, "simplify_child_particles", PROP_FLOAT, PROP_FACTOR);
RNA_def_property_float_sdna(prop, NULL, "simplify_particles");
- RNA_def_property_ui_text(prop, "Simplify Child Particles", "Global child particles percentage");
+ RNA_def_property_ui_text(prop, N_("Simplify Child Particles"), N_("Global child particles percentage"));
RNA_def_property_update(prop, 0, "rna_Scene_simplify_update");
prop= RNA_def_property(srna, "simplify_shadow_samples", PROP_INT, PROP_UNSIGNED);
RNA_def_property_int_sdna(prop, NULL, "simplify_shadowsamples");
RNA_def_property_ui_range(prop, 1, 16, 1, 0);
- RNA_def_property_ui_text(prop, "Simplify Shadow Samples", "Global maximum shadow samples");
+ RNA_def_property_ui_text(prop, N_("Simplify Shadow Samples"), N_("Global maximum shadow samples"));
RNA_def_property_update(prop, 0, "rna_Scene_simplify_update");
prop= RNA_def_property(srna, "simplify_ao_sss", PROP_FLOAT, PROP_FACTOR);
RNA_def_property_float_sdna(prop, NULL, "simplify_aosss");
- RNA_def_property_ui_text(prop, "Simplify AO and SSS", "Global approximate AA and SSS quality factor");
+ RNA_def_property_ui_text(prop, N_("Simplify AO and SSS"), N_("Global approximate AA and SSS quality factor"));
RNA_def_property_update(prop, 0, "rna_Scene_simplify_update");
prop= RNA_def_property(srna, "use_simplify_triangulate", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "simplify_flag", R_SIMPLE_NO_TRIANGULATE);
- RNA_def_property_ui_text(prop, "Skip Quad to Triangles", "Disables non-planer quads being triangulated");
+ RNA_def_property_ui_text(prop, N_("Skip Quad to Triangles"), N_("Disables non-planer quads being triangulated"));
/* Scene API */
RNA_api_scene_render(srna);