From c3d82423396d95b66328775b9023904e48f16cec Mon Sep 17 00:00:00 2001 From: idk Date: Thu, 21 Feb 2019 23:17:18 -0500 Subject: [PATCH] update menu text --- _locales/en/messages.json | 16 ++++++++++------ options/options.html | 3 ++- options/options.js | 9 ++++++++- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index ce1ebf1..6493957 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -22,18 +22,22 @@ }, "hostText": { "message": "Host: ", - "description": "Message for the Reset Tunnel button" + "description": "Host for the HTTP or SOCKS5 Proxy" }, "portText": { "message": "Port: ", - "description": "Message for the Reset Tunnel button" + "description": "Port for the HTTP or SOCKS5 Proxy" + }, + "controlHelpText": { + "message": "These options will be inert if used with the default i2p HTTP or SOCKS proxy.", + "description": "Help for configuring the options for the Reset Tunnel button" }, "controlHostText": { - "message": "Host: ", - "description": "Message for the Reset Tunnel button" + "message": "Control Host: ", + "description": "Host for the Reset Tunnel button" }, "controlPortText": { - "message": "Port: ", - "description": "Message for the Reset Tunnel button" + "message": "Control Port: ", + "description": "Port for the Reset Tunnel button" } } diff --git a/options/options.html b/options/options.html index 8c6dca6..5f5d504 100644 --- a/options/options.html +++ b/options/options.html @@ -28,7 +28,8 @@
Controller Options
- +

These options will be inert if used with the default i2p HTTP or SOCKS + proxy.


diff --git a/options/options.js b/options/options.js index 45abd3b..cb36e5f 100644 --- a/options/options.js +++ b/options/options.js @@ -3,6 +3,7 @@ var hosttext = browser.i18n.getMessage("hostText"); var porttext = browser.i18n.getMessage("portText"); var controlhosttext = browser.i18n.getMessage("controlHostText"); var controlporttext = browser.i18n.getMessage("controlPortText"); +var controlhelptext = browser.i18n.getMessage("controlHelpText"); function getScheme() { const proxy_scheme = document.querySelector("#proxy_scheme"); @@ -79,7 +80,7 @@ function checkStoredSettings(storedSettings) { } function onError(e) { - console.error(e); + console.error(e); } function setupProxy() { @@ -192,6 +193,11 @@ function SetControlPortText(){ portid.textContent = controlporttext; } +function SetControlHelpText(){ + var portid = document.getElementById('controlHelpText'); + portid.textContent = controlhelptext; +} + function onError(e) { console.error(e); } @@ -209,6 +215,7 @@ SetHostText() SetPortText() SetControlHostText() SetControlPortText() +SetControlHelpText() function RefreshIdentity(){ console.log("Generating new identity")