diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-03-09 20:38:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-09 20:38:19 +0100 |
commit | f17c5501eb4bb6a86d9f2f07567da081eb8991b0 (patch) | |
tree | 7b6b8cce5077329811983e7112cccadbe493c92c /editor/animation_track_editor.cpp | |
parent | 3a7dd7f3230171f2d75ee30b4544e931e966591f (diff) | |
parent | 25d93200c826bd47235697128f002c7a9d81952a (diff) | |
download | redot-engine-f17c5501eb4bb6a86d9f2f07567da081eb8991b0.tar.gz |
Merge pull request #58865 from timothyqiu/more-i18n
Add missing i18n to various strings
Diffstat (limited to 'editor/animation_track_editor.cpp')
-rw-r--r-- | editor/animation_track_editor.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index 6586fcd5ce..120bb4b184 100644 --- a/editor/animation_track_editor.cpp +++ b/editor/animation_track_editor.cpp @@ -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); |