From b5d57817cf840b29e4ac679d24f8ce8441ad878d Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 18 May 2019 13:52:51 -0600 Subject: [PATCH] fix some typos, move some phrases to the i18n toml file --- bin/telebit-remote.js | 10 ++-------- lib/en-us.toml | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/bin/telebit-remote.js b/bin/telebit-remote.js index 82f1e55..0eacd2d 100755 --- a/bin/telebit-remote.js +++ b/bin/telebit-remote.js @@ -574,18 +574,12 @@ function getToken(err, state) { , end: function () { utils.putConfig('enable', [], function (err) { if (err) { console.error(err); return; } - console.info("Success"); + console.info(TPLS.remote.success); // workaround for https://github.com/nodejs/node/issues/21319 if (state._useTty) { setTimeout(function () { - console.info("Some fun things to try first:\n"); - console.info(" ~/telebit http ~/public"); - console.info(" ~/telebit tcp 5050"); - console.info(" ~/telebit ssh auto"); - console.info(); - console.info("Press any key to continue..."); - console.info(); + console.info(TPLS.remote.next_steps); process.exit(0); }, 0.5 * 1000); return; diff --git a/lib/en-us.toml b/lib/en-us.toml index 4be76e2..be0b5b8 100644 --- a/lib/en-us.toml +++ b/lib/en-us.toml @@ -135,7 +135,7 @@ usage: telebit http [subdomain] Use cases: - - Lazy man's AirDrop (works or lazy women too!) + - Lazy man's AirDrop (works for lazy women too!) - Testing dev sites on a phone - Sharing indie music and movies with friends" @@ -145,7 +145,7 @@ usage: telebit ssh All https traffic will be inspected to see if it looks like ssh Once enabled all traffic that looks - ssh auto Make ssh Just Works™ (on port 22) + ssh auto Make ssh Just Work™ (on port 22) ssh forward ssh traffic to non-standard port ex: telebit ssh 22 ex: explicitly forward ssh-looking packets to localhost:22 @@ -466,6 +466,17 @@ code = " waiting = "waiting for you to check your email..." +success = "Success" + +next_steps = "Some fun things to try first: + + ~/telebit http ~/Public + ~/telebit tcp 5050 + ~/telebit ssh auto + +Press any key to continue... +" + [remote.setup] email = "Welcome!