diff --git a/source/blender/editors/curve/editfont.cc b/source/blender/editors/curve/editfont.cc index f8cbf2413a6..93f7438d9a4 100644 --- a/source/blender/editors/curve/editfont.cc +++ b/source/blender/editors/curve/editfont.cc @@ -693,8 +693,8 @@ static uiBlock *wm_block_insert_unicode_create(bContext *C, ARegion *region, voi uiLayout *layout = UI_block_layout( block, UI_LAYOUT_VERTICAL, UI_LAYOUT_PANEL, 0, 0, 200 * UI_SCALE_FAC, UI_UNIT_Y, 0, style); - uiItemL_ex(layout, "Insert Unicode Character", ICON_NONE, true, false); - uiItemL(layout, "Enter a Unicode codepoint hex value", ICON_NONE); + uiItemL_ex(layout, IFACE_("Insert Unicode Character"), ICON_NONE, true, false); + uiItemL(layout, RPT_("Enter a Unicode codepoint hex value"), ICON_NONE); uiBut *text_but = uiDefBut(block, UI_BTYPE_TEXT, diff --git a/source/blender/editors/curves/intern/curves_ops.cc b/source/blender/editors/curves/intern/curves_ops.cc index 5a50aff7ee2..d6865bcb60d 100644 --- a/source/blender/editors/curves/intern/curves_ops.cc +++ b/source/blender/editors/curves/intern/curves_ops.cc @@ -949,7 +949,7 @@ static void select_random_ui(bContext * /*C*/, wmOperator *op) uiLayout *layout = op->layout; uiItemR(layout, op->ptr, "seed", UI_ITEM_NONE, nullptr, ICON_NONE); - uiItemR(layout, op->ptr, "probability", UI_ITEM_R_SLIDER, "Probability", ICON_NONE); + uiItemR(layout, op->ptr, "probability", UI_ITEM_R_SLIDER, IFACE_("Probability"), ICON_NONE); } static void CURVES_OT_select_random(wmOperatorType *ot) diff --git a/source/blender/editors/interface/templates/interface_templates.cc b/source/blender/editors/interface/templates/interface_templates.cc index 9e6814e5525..c4c5c3bc39d 100644 --- a/source/blender/editors/interface/templates/interface_templates.cc +++ b/source/blender/editors/interface/templates/interface_templates.cc @@ -7220,10 +7220,10 @@ void uiTemplateCacheFile(uiLayout *layout, /* TODO: unused for now, so no need to expose. */ #if 0 row = uiLayoutRow(layout, false); - uiItemR(row, &fileptr, "forward_axis", UI_ITEM_NONE, "Forward Axis", ICON_NONE); + uiItemR(row, &fileptr, "forward_axis", UI_ITEM_NONE, IFACE_("Forward Axis"), ICON_NONE); row = uiLayoutRow(layout, false); - uiItemR(row, &fileptr, "up_axis", UI_ITEM_NONE, "Up Axis", ICON_NONE); + uiItemR(row, &fileptr, "up_axis", UI_ITEM_NONE, IFACE_("Up Axis"), ICON_NONE); #endif } diff --git a/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc b/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc index f4a7d74012a..19d79603a47 100644 --- a/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc +++ b/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc @@ -17,6 +17,8 @@ #include "BKE_object.hh" #include "BKE_paint.hh" +#include "BLT_translation.hh" + #include "WM_api.hh" #include "WM_message.hh" #include "WM_toolsystem.hh" @@ -460,10 +462,10 @@ static void select_random_ui(bContext * /*C*/, wmOperator *op) uiItemR(layout, op->ptr, "partial", UI_ITEM_NONE, nullptr, ICON_NONE); if (RNA_boolean_get(op->ptr, "partial")) { - uiItemR(layout, op->ptr, "min", UI_ITEM_R_SLIDER, "Min", ICON_NONE); + uiItemR(layout, op->ptr, "min", UI_ITEM_R_SLIDER, IFACE_("Min"), ICON_NONE); } else { - uiItemR(layout, op->ptr, "probability", UI_ITEM_R_SLIDER, "Probability", ICON_NONE); + uiItemR(layout, op->ptr, "probability", UI_ITEM_R_SLIDER, IFACE_("Probability"), ICON_NONE); } } diff --git a/source/blender/editors/space_node/drawnode.cc b/source/blender/editors/space_node/drawnode.cc index 29fb221a442..beea1fa543b 100644 --- a/source/blender/editors/space_node/drawnode.cc +++ b/source/blender/editors/space_node/drawnode.cc @@ -397,7 +397,7 @@ static void node_shader_buts_tex_image(uiLayout *layout, bContext *C, PointerRNA uiItemR(layout, ptr, "projection", DEFAULT_FLAGS, "", ICON_NONE); if (RNA_enum_get(ptr, "projection") == SHD_PROJ_BOX) { - uiItemR(layout, ptr, "projection_blend", DEFAULT_FLAGS, "Blend", ICON_NONE); + uiItemR(layout, ptr, "projection_blend", DEFAULT_FLAGS, IFACE_("Blend"), ICON_NONE); } uiItemR(layout, ptr, "extension", DEFAULT_FLAGS, "", ICON_NONE); @@ -1373,7 +1373,7 @@ static void std_node_socket_draw( if (default_value->enum_items->items.is_empty()) { uiLayout *row = uiLayoutSplit(layout, 0.4f, false); uiItemL(row, text, ICON_NONE); - uiItemL(row, "No Items", ICON_NONE); + uiItemL(row, IFACE_("No Items"), ICON_NONE); } else { uiItemR(layout, ptr, "default_value", DEFAULT_FLAGS, "", ICON_NONE); diff --git a/source/blender/gpencil_modifiers_legacy/intern/MOD_gpencil_legacy_lineart.cc b/source/blender/gpencil_modifiers_legacy/intern/MOD_gpencil_legacy_lineart.cc index 9d96497bb0b..2e1edf483c2 100644 --- a/source/blender/gpencil_modifiers_legacy/intern/MOD_gpencil_legacy_lineart.cc +++ b/source/blender/gpencil_modifiers_legacy/intern/MOD_gpencil_legacy_lineart.cc @@ -438,7 +438,7 @@ static void options_light_reference_draw(const bContext * /*C*/, Panel *panel) uiLayoutSetEnabled(layout, !is_baked); if (use_cache && !is_first) { - uiItemL(layout, "Cached from the first Line Art modifier.", ICON_INFO); + uiItemL(layout, RPT_("Cached from the first Line Art modifier."), ICON_INFO); return; } diff --git a/source/blender/modifiers/intern/MOD_grease_pencil_util.cc b/source/blender/modifiers/intern/MOD_grease_pencil_util.cc index 07bdad070fe..db7a11099f9 100644 --- a/source/blender/modifiers/intern/MOD_grease_pencil_util.cc +++ b/source/blender/modifiers/intern/MOD_grease_pencil_util.cc @@ -22,6 +22,8 @@ #include "BKE_lib_query.hh" #include "BKE_material.h" +#include "BLT_translation.hh" + #include "BLO_read_write.hh" #include "RNA_access.hh" @@ -166,7 +168,7 @@ void draw_custom_curve_settings(const bContext * /*C*/, uiLayout *layout, Pointe uiLayoutSetPropSep(layout, true); row = uiLayoutRow(layout, true); uiLayoutSetPropDecorate(row, false); - uiItemR(row, ptr, "use_custom_curve", UI_ITEM_NONE, "Custom Curve", ICON_NONE); + uiItemR(row, ptr, "use_custom_curve", UI_ITEM_NONE, IFACE_("Custom Curve"), ICON_NONE); if (use_custom_curve) { uiTemplateCurveMapping(layout, ptr, "custom_curve", 0, false, false, false, false); } diff --git a/source/blender/modifiers/intern/MOD_lineart.cc b/source/blender/modifiers/intern/MOD_lineart.cc index 4ae0d8a72b5..bf6051be447 100644 --- a/source/blender/modifiers/intern/MOD_lineart.cc +++ b/source/blender/modifiers/intern/MOD_lineart.cc @@ -376,7 +376,7 @@ static void options_light_reference_draw(const bContext * /*C*/, Panel *panel) uiLayoutSetEnabled(layout, !is_baked); if (use_cache && !is_first) { - uiItemL(layout, "Cached from the first line art modifier.", ICON_INFO); + uiItemL(layout, RPT_("Cached from the first line art modifier."), ICON_INFO); return; } diff --git a/source/blender/modifiers/intern/MOD_subsurf.cc b/source/blender/modifiers/intern/MOD_subsurf.cc index e3e8d3af7ec..2e3c4d680e3 100644 --- a/source/blender/modifiers/intern/MOD_subsurf.cc +++ b/source/blender/modifiers/intern/MOD_subsurf.cc @@ -403,8 +403,9 @@ static void panel_draw(const bContext *C, Panel *panel) Object *ob = static_cast(ob_ptr.data); const Mesh *mesh = static_cast(ob->data); if (BKE_subsurf_modifier_force_disable_gpu_evaluation_for_mesh(smd, mesh)) { - uiItemL( - layout, "Sharp edges or custom normals detected, disabling GPU subdivision", ICON_INFO); + uiItemL(layout, + RPT_("Sharp edges or custom normals detected, disabling GPU subdivision"), + ICON_INFO); } else if (Object *ob_eval = DEG_get_evaluated_object(depsgraph, ob)) { if (ModifierData *md_eval = BKE_modifiers_findby_name(ob_eval, smd->modifier.name)) { @@ -413,7 +414,7 @@ static void panel_draw(const bContext *C, Panel *panel) if (runtime_data && runtime_data->used_gpu) { if (runtime_data->used_cpu) { - uiItemL(layout, "Using both CPU and GPU subdivision", ICON_INFO); + uiItemL(layout, RPT_("Using both CPU and GPU subdivision"), ICON_INFO); } } } diff --git a/source/blender/modifiers/intern/MOD_volume_displace.cc b/source/blender/modifiers/intern/MOD_volume_displace.cc index 11007234f54..d1eba3d7cec 100644 --- a/source/blender/modifiers/intern/MOD_volume_displace.cc +++ b/source/blender/modifiers/intern/MOD_volume_displace.cc @@ -99,15 +99,15 @@ static void panel_draw(const bContext *C, Panel *panel) uiLayoutSetPropSep(layout, true); uiTemplateID(layout, C, ptr, "texture", "texture.new", nullptr, nullptr, 0, false, nullptr); - uiItemR(layout, ptr, "texture_map_mode", UI_ITEM_NONE, "Texture Mapping", ICON_NONE); + uiItemR(layout, ptr, "texture_map_mode", UI_ITEM_NONE, IFACE_("Texture Mapping"), ICON_NONE); if (vdmd->texture_map_mode == MOD_VOLUME_DISPLACE_MAP_OBJECT) { - uiItemR(layout, ptr, "texture_map_object", UI_ITEM_NONE, "Object", ICON_NONE); + uiItemR(layout, ptr, "texture_map_object", UI_ITEM_NONE, IFACE_("Object"), ICON_NONE); } uiItemR(layout, ptr, "strength", UI_ITEM_NONE, nullptr, ICON_NONE); - uiItemR(layout, ptr, "texture_sample_radius", UI_ITEM_NONE, "Sample Radius", ICON_NONE); - uiItemR(layout, ptr, "texture_mid_level", UI_ITEM_NONE, "Mid Level", ICON_NONE); + uiItemR(layout, ptr, "texture_sample_radius", UI_ITEM_NONE, IFACE_("Sample Radius"), ICON_NONE); + uiItemR(layout, ptr, "texture_mid_level", UI_ITEM_NONE, IFACE_("Mid Level"), ICON_NONE); modifier_panel_end(layout, ptr); } diff --git a/source/blender/nodes/geometry/nodes/node_geo_bake.cc b/source/blender/nodes/geometry/nodes/node_geo_bake.cc index f3af3cc8c14..9a8d0ac61a5 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_bake.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_bake.cc @@ -590,7 +590,7 @@ static void node_layout(uiLayout *layout, bContext *C, PointerRNA *ptr) { uiLayout *row = uiLayoutRow(col, true); uiLayoutSetEnabled(row, !ctx.is_baked); - uiItemR(row, &ctx.bake_rna, "bake_mode", UI_ITEM_R_EXPAND, "Mode", ICON_NONE); + uiItemR(row, &ctx.bake_rna, "bake_mode", UI_ITEM_R_EXPAND, IFACE_("Mode"), ICON_NONE); } draw_bake_button(col, ctx); } @@ -612,7 +612,7 @@ static void node_layout_ex(uiLayout *layout, bContext *C, PointerRNA *ptr) { uiLayout *row = uiLayoutRow(col, true); uiLayoutSetEnabled(row, !ctx.is_baked); - uiItemR(row, &ctx.bake_rna, "bake_mode", UI_ITEM_R_EXPAND, "Mode", ICON_NONE); + uiItemR(row, &ctx.bake_rna, "bake_mode", UI_ITEM_R_EXPAND, IFACE_("Mode"), ICON_NONE); } draw_bake_button(col, ctx); @@ -629,10 +629,11 @@ static void node_layout_ex(uiLayout *layout, bContext *C, PointerRNA *ptr) uiLayoutSetEnabled(settings_col, !ctx.is_baked); { uiLayout *col = uiLayoutColumn(settings_col, true); - uiItemR(col, &ctx.bake_rna, "use_custom_path", UI_ITEM_NONE, "Custom Path", ICON_NONE); + uiItemR( + col, &ctx.bake_rna, "use_custom_path", UI_ITEM_NONE, IFACE_("Custom Path"), ICON_NONE); uiLayout *subcol = uiLayoutColumn(col, true); uiLayoutSetActive(subcol, ctx.bake->flag & NODES_MODIFIER_BAKE_CUSTOM_PATH); - uiItemR(subcol, &ctx.bake_rna, "directory", UI_ITEM_NONE, "Path", ICON_NONE); + uiItemR(subcol, &ctx.bake_rna, "directory", UI_ITEM_NONE, IFACE_("Path"), ICON_NONE); } if (!ctx.bake_still) { uiLayout *col = uiLayoutColumn(settings_col, true); @@ -640,13 +641,13 @@ static void node_layout_ex(uiLayout *layout, bContext *C, PointerRNA *ptr) &ctx.bake_rna, "use_custom_simulation_frame_range", UI_ITEM_NONE, - "Custom Range", + IFACE_("Custom Range"), ICON_NONE); uiLayout *subcol = uiLayoutColumn(col, true); uiLayoutSetActive(subcol, ctx.bake->flag & NODES_MODIFIER_BAKE_CUSTOM_SIMULATION_FRAME_RANGE); - uiItemR(subcol, &ctx.bake_rna, "frame_start", UI_ITEM_NONE, "Start", ICON_NONE); - uiItemR(subcol, &ctx.bake_rna, "frame_end", UI_ITEM_NONE, "End", ICON_NONE); + uiItemR(subcol, &ctx.bake_rna, "frame_start", UI_ITEM_NONE, IFACE_("Start"), ICON_NONE); + uiItemR(subcol, &ctx.bake_rna, "frame_end", UI_ITEM_NONE, IFACE_("End"), ICON_NONE); } } diff --git a/source/blender/nodes/geometry/nodes/node_geo_index_switch.cc b/source/blender/nodes/geometry/nodes/node_geo_index_switch.cc index 9462342c9de..a598f536422 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_index_switch.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_index_switch.cc @@ -71,7 +71,7 @@ static void node_layout_ex(uiLayout *layout, bContext *C, PointerRNA *ptr) bNode &node = *static_cast(ptr->data); NodeIndexSwitch &storage = node_storage(node); if (uiLayout *panel = uiLayoutPanel(C, layout, "index_switch_items", false, TIP_("Items"))) { - uiItemO(panel, "Add Item", ICON_ADD, "node.index_switch_item_add"); + uiItemO(panel, IFACE_("Add Item"), ICON_ADD, "node.index_switch_item_add"); uiLayout *col = uiLayoutColumn(panel, false); for (const int i : IndexRange(storage.items_num)) { uiLayout *row = uiLayoutRow(col, false); diff --git a/source/blender/nodes/geometry/nodes/node_geo_simulation.cc b/source/blender/nodes/geometry/nodes/node_geo_simulation.cc index 5a2bc9bbd99..ab620e4b233 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_simulation.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_simulation.cc @@ -426,10 +426,10 @@ static void node_layout_ex(uiLayout *layout, bContext *C, PointerRNA *current_no { uiLayout *col = uiLayoutColumn(settings_col, true); uiLayoutSetActive(col, !is_baked); - uiItemR(col, &bake_rna, "use_custom_path", UI_ITEM_NONE, "Custom Path", ICON_NONE); + uiItemR(col, &bake_rna, "use_custom_path", UI_ITEM_NONE, IFACE_("Custom Path"), ICON_NONE); uiLayout *subcol = uiLayoutColumn(col, true); uiLayoutSetActive(subcol, bake->flag & NODES_MODIFIER_BAKE_CUSTOM_PATH); - uiItemR(subcol, &bake_rna, "directory", UI_ITEM_NONE, "Path", ICON_NONE); + uiItemR(subcol, &bake_rna, "directory", UI_ITEM_NONE, IFACE_("Path"), ICON_NONE); } { uiLayout *col = uiLayoutColumn(settings_col, true); @@ -437,12 +437,12 @@ static void node_layout_ex(uiLayout *layout, bContext *C, PointerRNA *current_no &bake_rna, "use_custom_simulation_frame_range", UI_ITEM_NONE, - "Custom Range", + IFACE_("Custom Range"), ICON_NONE); uiLayout *subcol = uiLayoutColumn(col, true); uiLayoutSetActive(subcol, bake->flag & NODES_MODIFIER_BAKE_CUSTOM_SIMULATION_FRAME_RANGE); - uiItemR(subcol, &bake_rna, "frame_start", UI_ITEM_NONE, "Start", ICON_NONE); - uiItemR(subcol, &bake_rna, "frame_end", UI_ITEM_NONE, "End", ICON_NONE); + uiItemR(subcol, &bake_rna, "frame_start", UI_ITEM_NONE, IFACE_("Start"), ICON_NONE); + uiItemR(subcol, &bake_rna, "frame_end", UI_ITEM_NONE, IFACE_("End"), ICON_NONE); } }