mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
Make action names translatable
This commit is contained in:
parent
7c1ee0488e
commit
a3b221e99f
4 changed files with 12 additions and 6 deletions
|
|
@ -1339,8 +1339,14 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
|
|||
}
|
||||
|
||||
if (_edit.mode != TRANSFORM_NONE) {
|
||||
static const char *_transform_name[4] = { "None", "Rotate", "Translate", "Scale" };
|
||||
undo_redo->create_action(_transform_name[_edit.mode]);
|
||||
static const char *_transform_name[4] = {
|
||||
TTRC("None"),
|
||||
TTRC("Rotate"),
|
||||
// TRANSLATORS: This refers to the movement that changes the position of an object.
|
||||
TTRC("Translate"),
|
||||
TTRC("Scale"),
|
||||
};
|
||||
undo_redo->create_action(TTRGET(_transform_name[_edit.mode]));
|
||||
|
||||
List<Node *> &selection = editor_selection->get_selected_node_list();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue