From e5cbe5f552ca13a8057f995a638630aa7b9333dc Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Thu, 25 Jul 2024 11:25:55 +0200 Subject: [PATCH] Improve connection ready message --- client/locale/fr/wivrn.po | 21 +++++++++++++-------- client/scenes/lobby_gui.cpp | 4 ++-- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/client/locale/fr/wivrn.po b/client/locale/fr/wivrn.po index 5df35c07..ad2666d3 100644 --- a/client/locale/fr/wivrn.po +++ b/client/locale/fr/wivrn.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn 0.15\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-06-19 16:58+0200\n" +"POT-Creation-Date: 2024-07-25 11:44+0200\n" "PO-Revision-Date: 2024-05-20 13:00+0200\n" "Last-Translator: Guillaume Meunier \n" "Language: French\n" @@ -43,8 +43,13 @@ msgid "Video stream interrupted" msgstr "Flux vidéo interrompu" #: client/scenes/lobby_gui.cpp:86 -msgid "Waiting for video stream" -msgstr "Attente du flux vidéo" +#, c++-format +msgid "" +"Connection ready\n" +"Start a VR application on {}" +msgstr "" +"Connexion prête\n" +"Démarrez une application VR sur {}" #: client/scenes/lobby_gui.cpp:101 msgid "Close" @@ -146,23 +151,23 @@ msgstr "Temps GPU" msgid "GPU time [ms]" msgstr "Temps GPU [ms]" -#: client/scenes/lobby_gui.cpp:502 client/scenes/lobby_gui.cpp:695 +#: client/scenes/lobby_gui.cpp:502 client/scenes/lobby_gui.cpp:700 msgid "Licenses" msgstr "Licences" -#: client/scenes/lobby_gui.cpp:685 +#: client/scenes/lobby_gui.cpp:690 msgid "Server list" msgstr "Serveurs" -#: client/scenes/lobby_gui.cpp:688 +#: client/scenes/lobby_gui.cpp:693 msgid "Settings" msgstr "Paramètres" -#: client/scenes/lobby_gui.cpp:692 +#: client/scenes/lobby_gui.cpp:697 msgid "About" msgstr "À propos" -#: client/scenes/lobby_gui.cpp:698 +#: client/scenes/lobby_gui.cpp:703 msgid "Exit" msgstr "Quitter" diff --git a/client/scenes/lobby_gui.cpp b/client/scenes/lobby_gui.cpp index 97ff5846..4adcae85 100644 --- a/client/scenes/lobby_gui.cpp +++ b/client/scenes/lobby_gui.cpp @@ -83,7 +83,7 @@ void scenes::lobby::gui_connecting() if (next_scene->current_state() == scenes::stream::state::stalled) status = _("Video stream interrupted"); else - status = _("Waiting for video stream"); + status = fmt::format(_F("Connection ready\nStart a VR application on {}"), server_name); } else if (async_session.valid()) status = async_session.get_progress(); @@ -326,7 +326,7 @@ void scenes::lobby::gui_server_list() ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(20, 20)); ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 10); ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 2); - if (ImGui::BeginPopupModal("connecting", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove)) + if (ImGui::BeginPopupModal("connecting", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize)) { gui_connecting(); ImGui::EndPopup();