Skip to content

Commit 3448fe6

Browse files
committed
Split repeated translation for floating windows
1 parent 172fc62 commit 3448fe6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

editor/plugins/script_editor_plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4398,7 +4398,7 @@ ScriptEditor::ScriptEditor(WindowWrapper *p_wrapper) {
43984398
make_floating->connect("request_open_in_screen", callable_mp(window_wrapper, &WindowWrapper::enable_window_on_screen).bind(true));
43994399
if (!make_floating->is_disabled()) {
44004400
// Override default ScreenSelect tooltip if multi-window support is available.
4401-
make_floating->set_tooltip_text(TTR("Make the script editor floating.\nRight-click to open the screen selector."));
4401+
make_floating->set_tooltip_text(TTR("Make the script editor floating.") + "\n" + TTR("Right-click to open the screen selector."));
44024402
}
44034403

44044404
menu_hb->add_child(make_floating);

editor/plugins/shader_editor_plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ ShaderEditorPlugin::ShaderEditorPlugin() {
813813
make_floating->connect("request_open_in_screen", callable_mp(window_wrapper, &WindowWrapper::enable_window_on_screen).bind(true));
814814
if (!make_floating->is_disabled()) {
815815
// Override default ScreenSelect tooltip if multi-window support is available.
816-
make_floating->set_tooltip_text(TTR("Make the shader editor floating.\nRight-click to open the screen selector."));
816+
make_floating->set_tooltip_text(TTR("Make the shader editor floating.") + "\n" + TTR("Right-click to open the screen selector."));
817817
}
818818

819819
menu_hb->add_child(make_floating);

editor/window_wrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ ScreenSelect::ScreenSelect() {
489489
set_disabled(true);
490490
set_tooltip_text(EditorNode::get_singleton()->get_multiwindow_support_tooltip_text());
491491
} else {
492-
set_tooltip_text(TTR("Make this panel floating.\nRight-click to open the screen selector."));
492+
set_tooltip_text(TTR("Make this panel floating.") + "\n" + TTR("Right-click to open the screen selector."));
493493
}
494494

495495
// Create the popup.

0 commit comments

Comments
 (0)