From 3dccc3d93b982460309edd2ee90ff5c5ace9aa05 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Mon, 23 Nov 2020 13:12:06 -0800 Subject: [PATCH] Fix URL description text for chat mode --- desktop/src/onionshare/resources/locale/en.json | 1 + desktop/src/onionshare/tab/server_status.py | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/desktop/src/onionshare/resources/locale/en.json b/desktop/src/onionshare/resources/locale/en.json index 63971b3f..1f98d7a7 100644 --- a/desktop/src/onionshare/resources/locale/en.json +++ b/desktop/src/onionshare/resources/locale/en.json @@ -88,6 +88,7 @@ "gui_share_url_description": "Anyone with this OnionShare address can download your files using the Tor Browser: ", "gui_website_url_description": "Anyone with this OnionShare address can visit your website using the Tor Browser: ", "gui_receive_url_description": "Anyone with this OnionShare address can upload files to your computer using the Tor Browser: ", + "gui_chat_url_description": "Anyone with this OnionShare address can join this chat room using the Tor Browser: ", "gui_url_label_persistent": "This share will not auto-stop.

Every subsequent share reuses the address. (To use one-time addresses, turn off \"Use persistent address\" in the settings.)", "gui_url_label_stay_open": "This share will not auto-stop.", "gui_url_label_onetime": "This share will stop after first completion.", diff --git a/desktop/src/onionshare/tab/server_status.py b/desktop/src/onionshare/tab/server_status.py index 29c72300..2e8dc4f0 100644 --- a/desktop/src/onionshare/tab/server_status.py +++ b/desktop/src/onionshare/tab/server_status.py @@ -185,10 +185,14 @@ class ServerStatus(QtWidgets.QWidget): self.url_description.setText( strings._("gui_website_url_description").format(info_image) ) - else: + elif self.mode == self.common.gui.MODE_RECEIVE: self.url_description.setText( strings._("gui_receive_url_description").format(info_image) ) + elif self.mode == self.common.gui.MODE_CHAT: + self.url_description.setText( + strings._("gui_chat_url_description").format(info_image) + ) # Show a Tool Tip explaining the lifecycle of this URL if self.settings.get("persistent", "enabled"):