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:
committed by
Bastien Montagne
parent
4e034b5ecb
commit
13d4829b7b
@@ -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"));
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user