|
@@ -3419,6 +3419,7 @@ void AnimationTrackEditor::_query_insert(const InsertData &p_id) {
|
|
|
|
|
|
if (bool(EDITOR_DEF("editors/animation/confirm_insert_track", true))) {
|
|
if (bool(EDITOR_DEF("editors/animation/confirm_insert_track", true))) {
|
|
if (num_tracks == 1) {
|
|
if (num_tracks == 1) {
|
|
|
|
+ // TRANSLATORS: %s will be replaced by a phrase describing the target of track.
|
|
insert_confirm_text->set_text(vformat(TTR("Create NEW track for %s and insert key?"), p_id.query));
|
|
insert_confirm_text->set_text(vformat(TTR("Create NEW track for %s and insert key?"), p_id.query));
|
|
} else {
|
|
} else {
|
|
insert_confirm_text->set_text(vformat(TTR("Create %d NEW tracks and insert keys?"), num_tracks));
|
|
insert_confirm_text->set_text(vformat(TTR("Create %d NEW tracks and insert keys?"), num_tracks));
|
|
@@ -3526,7 +3527,8 @@ void AnimationTrackEditor::insert_transform_key(Spatial *p_node, const String &p
|
|
id.track_idx = track_idx;
|
|
id.track_idx = track_idx;
|
|
id.value = p_xform;
|
|
id.value = p_xform;
|
|
id.type = Animation::TYPE_TRANSFORM;
|
|
id.type = Animation::TYPE_TRANSFORM;
|
|
- id.query = "node '" + p_node->get_name() + "'";
|
|
|
|
|
|
+ // TRANSLATORS: This describes the target of new animation track, will be inserted into another string.
|
|
|
|
+ id.query = vformat(TTR("node '%s'"), p_node->get_name());
|
|
id.advance = false;
|
|
id.advance = false;
|
|
|
|
|
|
//dialog insert
|
|
//dialog insert
|
|
@@ -3548,7 +3550,8 @@ void AnimationTrackEditor::_insert_animation_key(NodePath p_path, const Variant
|
|
id.track_idx = i;
|
|
id.track_idx = i;
|
|
id.value = p_value;
|
|
id.value = p_value;
|
|
id.type = Animation::TYPE_ANIMATION;
|
|
id.type = Animation::TYPE_ANIMATION;
|
|
- id.query = "animation";
|
|
|
|
|
|
+ // TRANSLATORS: This describes the target of new animation track, will be inserted into another string.
|
|
|
|
+ id.query = TTR("animation");
|
|
id.advance = false;
|
|
id.advance = false;
|
|
//dialog insert
|
|
//dialog insert
|
|
_query_insert(id);
|
|
_query_insert(id);
|
|
@@ -3561,7 +3564,7 @@ void AnimationTrackEditor::_insert_animation_key(NodePath p_path, const Variant
|
|
id.track_idx = -1;
|
|
id.track_idx = -1;
|
|
id.value = p_value;
|
|
id.value = p_value;
|
|
id.type = Animation::TYPE_ANIMATION;
|
|
id.type = Animation::TYPE_ANIMATION;
|
|
- id.query = "animation";
|
|
|
|
|
|
+ id.query = TTR("animation");
|
|
id.advance = false;
|
|
id.advance = false;
|
|
//dialog insert
|
|
//dialog insert
|
|
_query_insert(id);
|
|
_query_insert(id);
|
|
@@ -3610,7 +3613,8 @@ void AnimationTrackEditor::insert_node_value_key(Node *p_node, const String &p_p
|
|
id.track_idx = i;
|
|
id.track_idx = i;
|
|
id.value = p_value;
|
|
id.value = p_value;
|
|
id.type = Animation::TYPE_VALUE;
|
|
id.type = Animation::TYPE_VALUE;
|
|
- id.query = "property '" + p_property + "'";
|
|
|
|
|
|
+ // TRANSLATORS: This describes the target of new animation track, will be inserted into another string.
|
|
|
|
+ id.query = vformat(TTR("property '%s'"), p_property);
|
|
id.advance = false;
|
|
id.advance = false;
|
|
//dialog insert
|
|
//dialog insert
|
|
_query_insert(id);
|
|
_query_insert(id);
|
|
@@ -3640,7 +3644,7 @@ void AnimationTrackEditor::insert_node_value_key(Node *p_node, const String &p_p
|
|
id.track_idx = i;
|
|
id.track_idx = i;
|
|
id.value = value;
|
|
id.value = value;
|
|
id.type = Animation::TYPE_BEZIER;
|
|
id.type = Animation::TYPE_BEZIER;
|
|
- id.query = "property '" + p_property + "'";
|
|
|
|
|
|
+ id.query = vformat(TTR("property '%s'"), p_property);
|
|
id.advance = false;
|
|
id.advance = false;
|
|
//dialog insert
|
|
//dialog insert
|
|
_query_insert(id);
|
|
_query_insert(id);
|
|
@@ -3656,7 +3660,7 @@ void AnimationTrackEditor::insert_node_value_key(Node *p_node, const String &p_p
|
|
id.track_idx = -1;
|
|
id.track_idx = -1;
|
|
id.value = p_value;
|
|
id.value = p_value;
|
|
id.type = Animation::TYPE_VALUE;
|
|
id.type = Animation::TYPE_VALUE;
|
|
- id.query = "property '" + p_property + "'";
|
|
|
|
|
|
+ id.query = vformat(TTR("property '%s'"), p_property);
|
|
id.advance = false;
|
|
id.advance = false;
|
|
//dialog insert
|
|
//dialog insert
|
|
_query_insert(id);
|
|
_query_insert(id);
|
|
@@ -3709,7 +3713,7 @@ void AnimationTrackEditor::insert_value_key(const String &p_property, const Vari
|
|
id.track_idx = i;
|
|
id.track_idx = i;
|
|
id.value = p_value;
|
|
id.value = p_value;
|
|
id.type = Animation::TYPE_VALUE;
|
|
id.type = Animation::TYPE_VALUE;
|
|
- id.query = "property '" + p_property + "'";
|
|
|
|
|
|
+ id.query = vformat(TTR("property '%s'"), p_property);
|
|
id.advance = p_advance;
|
|
id.advance = p_advance;
|
|
//dialog insert
|
|
//dialog insert
|
|
_query_insert(id);
|
|
_query_insert(id);
|
|
@@ -3734,7 +3738,7 @@ void AnimationTrackEditor::insert_value_key(const String &p_property, const Vari
|
|
id.track_idx = i;
|
|
id.track_idx = i;
|
|
id.value = value;
|
|
id.value = value;
|
|
id.type = Animation::TYPE_BEZIER;
|
|
id.type = Animation::TYPE_BEZIER;
|
|
- id.query = "property '" + p_property + "'";
|
|
|
|
|
|
+ id.query = vformat(TTR("property '%s'"), p_property);
|
|
id.advance = p_advance;
|
|
id.advance = p_advance;
|
|
//dialog insert
|
|
//dialog insert
|
|
_query_insert(id);
|
|
_query_insert(id);
|
|
@@ -3748,7 +3752,7 @@ void AnimationTrackEditor::insert_value_key(const String &p_property, const Vari
|
|
id.track_idx = -1;
|
|
id.track_idx = -1;
|
|
id.value = p_value;
|
|
id.value = p_value;
|
|
id.type = Animation::TYPE_VALUE;
|
|
id.type = Animation::TYPE_VALUE;
|
|
- id.query = "property '" + p_property + "'";
|
|
|
|
|
|
+ id.query = vformat(TTR("property '%s'"), p_property);
|
|
id.advance = p_advance;
|
|
id.advance = p_advance;
|
|
//dialog insert
|
|
//dialog insert
|
|
_query_insert(id);
|
|
_query_insert(id);
|