Merge pull request #13829 from goodyttoor/master
Some untranslated UI strings
This commit is contained in:
commit
a31735ad36
|
@ -251,7 +251,7 @@ void EditorAudioBus::_volume_db_changed(float p_db) {
|
||||||
updating_bus = true;
|
updating_bus = true;
|
||||||
|
|
||||||
UndoRedo *ur = EditorNode::get_singleton()->get_undo_redo();
|
UndoRedo *ur = EditorNode::get_singleton()->get_undo_redo();
|
||||||
ur->create_action("Change Audio Bus Volume", UndoRedo::MERGE_ENDS);
|
ur->create_action(TTR("Change Audio Bus Volume"), UndoRedo::MERGE_ENDS);
|
||||||
ur->add_do_method(AudioServer::get_singleton(), "set_bus_volume_db", get_index(), p_db);
|
ur->add_do_method(AudioServer::get_singleton(), "set_bus_volume_db", get_index(), p_db);
|
||||||
ur->add_undo_method(AudioServer::get_singleton(), "set_bus_volume_db", get_index(), AudioServer::get_singleton()->get_bus_volume_db(get_index()));
|
ur->add_undo_method(AudioServer::get_singleton(), "set_bus_volume_db", get_index(), AudioServer::get_singleton()->get_bus_volume_db(get_index()));
|
||||||
ur->add_do_method(buses, "_update_bus", get_index());
|
ur->add_do_method(buses, "_update_bus", get_index());
|
||||||
|
@ -812,7 +812,7 @@ void EditorAudioBuses::_update_buses() {
|
||||||
EditorAudioBuses *EditorAudioBuses::register_editor() {
|
EditorAudioBuses *EditorAudioBuses::register_editor() {
|
||||||
|
|
||||||
EditorAudioBuses *audio_buses = memnew(EditorAudioBuses);
|
EditorAudioBuses *audio_buses = memnew(EditorAudioBuses);
|
||||||
EditorNode::get_singleton()->add_bottom_panel_item("Audio", audio_buses);
|
EditorNode::get_singleton()->add_bottom_panel_item(TTR("Audio"), audio_buses);
|
||||||
return audio_buses;
|
return audio_buses;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -690,9 +690,9 @@ Ref<Script> EditorData::get_scene_root_script(int p_idx) const {
|
||||||
String EditorData::get_scene_title(int p_idx) const {
|
String EditorData::get_scene_title(int p_idx) const {
|
||||||
ERR_FAIL_INDEX_V(p_idx, edited_scene.size(), String());
|
ERR_FAIL_INDEX_V(p_idx, edited_scene.size(), String());
|
||||||
if (!edited_scene[p_idx].root)
|
if (!edited_scene[p_idx].root)
|
||||||
return "[empty]";
|
return TTR("[empty]");
|
||||||
if (edited_scene[p_idx].root->get_filename() == "")
|
if (edited_scene[p_idx].root->get_filename() == "")
|
||||||
return "[unsaved]";
|
return TTR("[unsaved]");
|
||||||
bool show_ext = EDITOR_DEF("interface/scene_tabs/show_extension", false);
|
bool show_ext = EDITOR_DEF("interface/scene_tabs/show_extension", false);
|
||||||
String name = edited_scene[p_idx].root->get_filename().get_file();
|
String name = edited_scene[p_idx].root->get_filename().get_file();
|
||||||
if (!show_ext) {
|
if (!show_ext) {
|
||||||
|
|
|
@ -670,13 +670,13 @@ EditorProfiler::EditorProfiler() {
|
||||||
variables->set_hide_root(true);
|
variables->set_hide_root(true);
|
||||||
variables->set_columns(3);
|
variables->set_columns(3);
|
||||||
variables->set_column_titles_visible(true);
|
variables->set_column_titles_visible(true);
|
||||||
variables->set_column_title(0, "Name");
|
variables->set_column_title(0, TTR("Name"));
|
||||||
variables->set_column_expand(0, true);
|
variables->set_column_expand(0, true);
|
||||||
variables->set_column_min_width(0, 60);
|
variables->set_column_min_width(0, 60);
|
||||||
variables->set_column_title(1, "Time");
|
variables->set_column_title(1, TTR("Time"));
|
||||||
variables->set_column_expand(1, false);
|
variables->set_column_expand(1, false);
|
||||||
variables->set_column_min_width(1, 60 * EDSCALE);
|
variables->set_column_min_width(1, 60 * EDSCALE);
|
||||||
variables->set_column_title(2, "Calls");
|
variables->set_column_title(2, TTR("Calls"));
|
||||||
variables->set_column_expand(2, false);
|
variables->set_column_expand(2, false);
|
||||||
variables->set_column_min_width(2, 60 * EDSCALE);
|
variables->set_column_min_width(2, 60 * EDSCALE);
|
||||||
variables->connect("item_edited", this, "_item_edited");
|
variables->connect("item_edited", this, "_item_edited");
|
||||||
|
|
|
@ -3081,7 +3081,7 @@ void PropertyEditor::update_tree() {
|
||||||
item->set_text(1, type + " ID: " + itos(id));
|
item->set_text(1, type + " ID: " + itos(id));
|
||||||
item->add_button(1, get_icon("EditResource", "EditorIcons"));
|
item->add_button(1, get_icon("EditResource", "EditorIcons"));
|
||||||
} else {
|
} else {
|
||||||
item->set_text(1, "[Empty]");
|
item->set_text(1, TTR("[Empty]"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (has_icon(p.hint_string, "EditorIcons")) {
|
if (has_icon(p.hint_string, "EditorIcons")) {
|
||||||
|
|
|
@ -406,13 +406,13 @@ EditorSettingsDialog::EditorSettingsDialog() {
|
||||||
shortcut_clear_button->connect("pressed", this, "_clear_shortcut_search_box");
|
shortcut_clear_button->connect("pressed", this, "_clear_shortcut_search_box");
|
||||||
|
|
||||||
shortcuts = memnew(Tree);
|
shortcuts = memnew(Tree);
|
||||||
vbc->add_margin_child("Shortcut List:", shortcuts, true);
|
vbc->add_margin_child(TTR("Shortcut List:"), shortcuts, true);
|
||||||
shortcuts->set_columns(2);
|
shortcuts->set_columns(2);
|
||||||
shortcuts->set_hide_root(true);
|
shortcuts->set_hide_root(true);
|
||||||
//shortcuts->set_hide_folding(true);
|
//shortcuts->set_hide_folding(true);
|
||||||
shortcuts->set_column_titles_visible(true);
|
shortcuts->set_column_titles_visible(true);
|
||||||
shortcuts->set_column_title(0, "Name");
|
shortcuts->set_column_title(0, TTR("Name"));
|
||||||
shortcuts->set_column_title(1, "Binding");
|
shortcuts->set_column_title(1, TTR("Binding"));
|
||||||
shortcuts->connect("button_pressed", this, "_shortcut_button_pressed");
|
shortcuts->connect("button_pressed", this, "_shortcut_button_pressed");
|
||||||
|
|
||||||
press_a_key = memnew(ConfirmationDialog);
|
press_a_key = memnew(ConfirmationDialog);
|
||||||
|
|
Loading…
Reference in New Issue