mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-07 08:55:12 -04:00
Merge pull request #1229 from micahflee/1228_chat_description
Fix URL description text for chat mode
This commit is contained in:
commit
43b341ba75
2 changed files with 6 additions and 1 deletions
|
@ -88,6 +88,7 @@
|
||||||
"gui_share_url_description": "<b>Anyone</b> with this OnionShare address can <b>download</b> your files using the <b>Tor Browser</b>: <img src='{}' />",
|
"gui_share_url_description": "<b>Anyone</b> with this OnionShare address can <b>download</b> your files using the <b>Tor Browser</b>: <img src='{}' />",
|
||||||
"gui_website_url_description": "<b>Anyone</b> with this OnionShare address can <b>visit</b> your website using the <b>Tor Browser</b>: <img src='{}' />",
|
"gui_website_url_description": "<b>Anyone</b> with this OnionShare address can <b>visit</b> your website using the <b>Tor Browser</b>: <img src='{}' />",
|
||||||
"gui_receive_url_description": "<b>Anyone</b> with this OnionShare address can <b>upload</b> files to your computer using the <b>Tor Browser</b>: <img src='{}' />",
|
"gui_receive_url_description": "<b>Anyone</b> with this OnionShare address can <b>upload</b> files to your computer using the <b>Tor Browser</b>: <img src='{}' />",
|
||||||
|
"gui_chat_url_description": "<b>Anyone</b> with this OnionShare address can <b>join this chat room</b> using the <b>Tor Browser</b>: <img src='{}' />",
|
||||||
"gui_url_label_persistent": "This share will not auto-stop.<br><br>Every subsequent share reuses the address. (To use one-time addresses, turn off \"Use persistent address\" in the settings.)",
|
"gui_url_label_persistent": "This share will not auto-stop.<br><br>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_stay_open": "This share will not auto-stop.",
|
||||||
"gui_url_label_onetime": "This share will stop after first completion.",
|
"gui_url_label_onetime": "This share will stop after first completion.",
|
||||||
|
|
|
@ -185,10 +185,14 @@ class ServerStatus(QtWidgets.QWidget):
|
||||||
self.url_description.setText(
|
self.url_description.setText(
|
||||||
strings._("gui_website_url_description").format(info_image)
|
strings._("gui_website_url_description").format(info_image)
|
||||||
)
|
)
|
||||||
else:
|
elif self.mode == self.common.gui.MODE_RECEIVE:
|
||||||
self.url_description.setText(
|
self.url_description.setText(
|
||||||
strings._("gui_receive_url_description").format(info_image)
|
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
|
# Show a Tool Tip explaining the lifecycle of this URL
|
||||||
if self.settings.get("persistent", "enabled"):
|
if self.settings.get("persistent", "enabled"):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue