diff --git a/source/blender/editors/interface/interface_templates.cc b/source/blender/editors/interface/interface_templates.cc index 49b42bcf157..557fda36b8c 100644 --- a/source/blender/editors/interface/interface_templates.cc +++ b/source/blender/editors/interface/interface_templates.cc @@ -1228,6 +1228,7 @@ static uiBut *template_id_def_new_but(uiBlock *block, BLT_I18NCONTEXT_ID_POINTCLOUD, BLT_I18NCONTEXT_ID_VOLUME, BLT_I18NCONTEXT_ID_SIMULATION, ); + BLT_I18N_MSGID_MULTI_CTXT("New", BLT_I18NCONTEXT_ID_PAINTCURVE, ); /* NOTE: BLT_I18N_MSGID_MULTI_CTXT takes a maximum number of parameters, * check the definition to see if a new call must be added when the limit * is exceeded. */ diff --git a/source/blender/editors/sculpt_paint/paint_curve.cc b/source/blender/editors/sculpt_paint/paint_curve.cc index d9f87c599c7..ec00e121854 100644 --- a/source/blender/editors/sculpt_paint/paint_curve.cc +++ b/source/blender/editors/sculpt_paint/paint_curve.cc @@ -17,6 +17,8 @@ #include "BLI_math_vector.h" +#include "BLT_translation.h" + #include "BKE_context.h" #include "BKE_main.h" #include "BKE_paint.h" @@ -147,7 +149,7 @@ static int paintcurve_new_exec(bContext *C, wmOperator * /*op*/) Main *bmain = CTX_data_main(C); if (p && p->brush) { - p->brush->paint_curve = BKE_paint_curve_add(bmain, "PaintCurve"); + p->brush->paint_curve = BKE_paint_curve_add(bmain, DATA_("PaintCurve")); } WM_event_add_notifier(C, NC_PAINTCURVE | NA_ADDED, nullptr); @@ -181,7 +183,7 @@ static void paintcurve_point_add(bContext *C, wmOperator *op, const int loc[2]) PaintCurve *pc = br->paint_curve; if (!pc) { - br->paint_curve = pc = BKE_paint_curve_add(bmain, "PaintCurve"); + br->paint_curve = pc = BKE_paint_curve_add(bmain, DATA_("PaintCurve")); } ED_paintcurve_undo_push_begin(op->type->name);