Add missing TTRs in tiles editor and array inspector
This commit is contained in:
parent
9b9bb418cb
commit
bef7f14885
3 changed files with 8 additions and 8 deletions
|
@ -1687,11 +1687,11 @@ void EditorInspectorArray::_panel_gui_input(Ref<InputEvent> p_event, int p_index
|
|||
void EditorInspectorArray::_move_element(int p_element_index, int p_to_pos) {
|
||||
String action_name;
|
||||
if (p_element_index < 0) {
|
||||
action_name = vformat("Add element to property array with prefix %s.", array_element_prefix);
|
||||
action_name = vformat(TTR("Add element to property array with prefix %s."), array_element_prefix);
|
||||
} else if (p_to_pos < 0) {
|
||||
action_name = vformat("Remove element %d from property array with prefix %s.", p_element_index, array_element_prefix);
|
||||
action_name = vformat(TTR("Remove element %d from property array with prefix %s."), p_element_index, array_element_prefix);
|
||||
} else {
|
||||
action_name = vformat("Move element %d to position %d in property array with prefix %s.", p_element_index, p_to_pos, array_element_prefix);
|
||||
action_name = vformat(TTR("Move element %d to position %d in property array with prefix %s."), p_element_index, p_to_pos, array_element_prefix);
|
||||
}
|
||||
EditorUndoRedoManager *undo_redo = EditorUndoRedoManager::get_singleton();
|
||||
undo_redo->create_action(action_name);
|
||||
|
@ -1838,7 +1838,7 @@ void EditorInspectorArray::_move_element(int p_element_index, int p_to_pos) {
|
|||
|
||||
void EditorInspectorArray::_clear_array() {
|
||||
EditorUndoRedoManager *undo_redo = EditorUndoRedoManager::get_singleton();
|
||||
undo_redo->create_action(vformat("Clear property array with prefix %s.", array_element_prefix));
|
||||
undo_redo->create_action(vformat(TTR("Clear property array with prefix %s."), array_element_prefix));
|
||||
if (mode == MODE_USE_MOVE_ARRAY_ELEMENT_FUNCTION) {
|
||||
for (int i = count - 1; i >= 0; i--) {
|
||||
// Call the function.
|
||||
|
@ -1891,7 +1891,7 @@ void EditorInspectorArray::_resize_array(int p_size) {
|
|||
}
|
||||
|
||||
EditorUndoRedoManager *undo_redo = EditorUndoRedoManager::get_singleton();
|
||||
undo_redo->create_action(vformat("Resize property array with prefix %s.", array_element_prefix));
|
||||
undo_redo->create_action(vformat(TTR("Resize property array with prefix %s."), array_element_prefix));
|
||||
if (p_size > count) {
|
||||
if (mode == MODE_USE_MOVE_ARRAY_ELEMENT_FUNCTION) {
|
||||
for (int i = count; i < p_size; i++) {
|
||||
|
|
|
@ -1233,7 +1233,7 @@ TileDataDefaultEditor::TileDataDefaultEditor() {
|
|||
picker_button = memnew(Button);
|
||||
picker_button->set_flat(true);
|
||||
picker_button->set_toggle_mode(true);
|
||||
picker_button->set_shortcut(ED_SHORTCUT("tiles_editor/picker", "Picker", Key::P));
|
||||
picker_button->set_shortcut(ED_SHORTCUT("tiles_editor/picker", TTR("Picker"), Key::P));
|
||||
toolbar->add_child(picker_button);
|
||||
}
|
||||
|
||||
|
@ -2720,7 +2720,7 @@ TileDataTerrainsEditor::TileDataTerrainsEditor() {
|
|||
picker_button = memnew(Button);
|
||||
picker_button->set_flat(true);
|
||||
picker_button->set_toggle_mode(true);
|
||||
picker_button->set_shortcut(ED_SHORTCUT("tiles_editor/picker", "Picker", Key::P));
|
||||
picker_button->set_shortcut(ED_SHORTCUT("tiles_editor/picker", TTR("Picker"), Key::P));
|
||||
toolbar->add_child(picker_button);
|
||||
|
||||
// Setup
|
||||
|
|
|
@ -2561,7 +2561,7 @@ TileSetAtlasSourceEditor::TileSetAtlasSourceEditor() {
|
|||
tools_settings_erase_button = memnew(Button);
|
||||
tools_settings_erase_button->set_flat(true);
|
||||
tools_settings_erase_button->set_toggle_mode(true);
|
||||
tools_settings_erase_button->set_shortcut(ED_SHORTCUT("tiles_editor/eraser", "Eraser", Key::E));
|
||||
tools_settings_erase_button->set_shortcut(ED_SHORTCUT("tiles_editor/eraser", TTR("Eraser"), Key::E));
|
||||
tools_settings_erase_button->set_shortcut_context(this);
|
||||
tool_settings->add_child(tools_settings_erase_button);
|
||||
|
||||
|
|
Loading…
Reference in a new issue