Add missing i18n to various strings

This commit is contained in:
Haoyu Qiu
2022-03-07 21:50:02 +08:00
parent 1421ce6780
commit 25d93200c8
9 changed files with 20 additions and 16 deletions

View File

@ -5554,31 +5554,35 @@ void AnimationTrackEditor::_edit_menu_pressed(int p_option) {
}
}
String track_type;
switch (animation->track_get_type(i)) {
case Animation::TYPE_POSITION_3D:
text += " (Position)";
track_type = TTR("Position");
break;
case Animation::TYPE_ROTATION_3D:
text += " (Rotation)";
track_type = TTR("Rotation");
break;
case Animation::TYPE_SCALE_3D:
text += " (Scale)";
track_type = TTR("Scale");
break;
case Animation::TYPE_BLEND_SHAPE:
text += " (BlendShape)";
track_type = TTR("BlendShape");
break;
case Animation::TYPE_METHOD:
text += " (Methods)";
track_type = TTR("Methods");
break;
case Animation::TYPE_BEZIER:
text += " (Bezier)";
track_type = TTR("Bezier");
break;
case Animation::TYPE_AUDIO:
text += " (Audio)";
track_type = TTR("Audio");
break;
default: {
};
}
if (!track_type.is_empty()) {
text += vformat(" (%s)", track_type);
}
TreeItem *it = track_copy_select->create_item(troot);
it->set_editable(0, true);