From 13d4829b7b636cd03061b1ff746be665df224bc4 Mon Sep 17 00:00:00 2001 From: Damien Picard Date: Tue, 23 Sep 2025 18:38:34 +0200 Subject: [PATCH] I18n: Disambiguate "Meta" in the context of NLA's meta strips Use the "Action" context for this, if in any language it's different from a sequencer meta strip, which already uses "Sequence". Reported by Ye Gui in #43295. --- source/blender/blenkernel/intern/nla.cc | 2 +- source/blender/makesrna/intern/rna_nla.cc | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/source/blender/blenkernel/intern/nla.cc b/source/blender/blenkernel/intern/nla.cc index f9d2f87caa0..dc9020bdb1b 100644 --- a/source/blender/blenkernel/intern/nla.cc +++ b/source/blender/blenkernel/intern/nla.cc @@ -1932,7 +1932,7 @@ void BKE_nlastrip_validate_name(AnimData *adt, NlaStrip *strip) STRNCPY_UTF8(strip->name, DATA_("Transition")); break; case NLASTRIP_TYPE_META: /* meta */ - STRNCPY_UTF8(strip->name, DATA_("Meta")); + STRNCPY_UTF8(strip->name, CTX_DATA_(BLT_I18NCONTEXT_ID_ACTION, "Meta")); break; default: STRNCPY_UTF8(strip->name, DATA_("NLA Strip")); diff --git a/source/blender/makesrna/intern/rna_nla.cc b/source/blender/makesrna/intern/rna_nla.cc index e868c1f2f22..95f27052e88 100644 --- a/source/blender/makesrna/intern/rna_nla.cc +++ b/source/blender/makesrna/intern/rna_nla.cc @@ -14,6 +14,8 @@ #include "ANIM_action.hh" #include "ANIM_nla.hh" +#include "BLT_translation.hh" + #include "RNA_define.hh" #include "RNA_enum_types.hh" @@ -787,6 +789,7 @@ static void rna_def_nlastrip(BlenderRNA *brna) RNA_def_property_clear_flag( prop, PROP_EDITABLE); /* XXX for now, not editable, since this is dangerous */ RNA_def_property_enum_items(prop, prop_type_items); + RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_ACTION); RNA_def_property_ui_text(prop, "Type", "Type of NLA Strip"); RNA_def_property_update(prop, NC_ANIMATION | ND_NLA | NA_EDITED, "rna_NlaStrip_update");