Skip to content

Commit 165fdce

Browse files
committed
Merge pull request #102709 from KoBeWi/repeatranslations2
Split repeated translation for floating windows
2 parents d8b48b0 + 3448fe6 commit 165fdce

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
@@ -4410,7 +4410,7 @@ ScriptEditor::ScriptEditor(WindowWrapper *p_wrapper) {
44104410
make_floating->connect("request_open_in_screen", callable_mp(window_wrapper, &WindowWrapper::enable_window_on_screen).bind(true));
44114411
if (!make_floating->is_disabled()) {
44124412
// Override default ScreenSelect tooltip if multi-window support is available.
4413-
make_floating->set_tooltip_text(TTR("Make the script editor floating.\nRight-click to open the screen selector."));
4413+
make_floating->set_tooltip_text(TTR("Make the script editor floating.") + "\n" + TTR("Right-click to open the screen selector."));
44144414
}
44154415

44164416
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
@@ -497,7 +497,7 @@ ScreenSelect::ScreenSelect() {
497497
set_disabled(true);
498498
set_tooltip_text(EditorNode::get_singleton()->get_multiwindow_support_tooltip_text());
499499
} else {
500-
set_tooltip_text(TTR("Make this panel floating.\nRight-click to open the screen selector."));
500+
set_tooltip_text(TTR("Make this panel floating.") + "\n" + TTR("Right-click to open the screen selector."));
501501
}
502502

503503
// Create the popup.

0 commit comments

Comments
 (0)