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.
This commit is contained in:
Damien Picard
2025-09-23 18:38:34 +02:00
committed by Bastien Montagne
parent 4e034b5ecb
commit 13d4829b7b
2 changed files with 4 additions and 1 deletions

View File

@@ -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"));

View File

@@ -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");