From fbde01dbac4b59f5a3cd0d138673c607b97845c4 Mon Sep 17 00:00:00 2001 From: eight04 Date: Fri, 16 Feb 2024 17:22:04 +0800 Subject: [PATCH] Improve messages --- src/static/_locales/en/messages.json | 8 ++++---- src/userscript/index.js | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/static/_locales/en/messages.json b/src/static/_locales/en/messages.json index 3043879..fd0574e 100644 --- a/src/static/_locales/en/messages.json +++ b/src/static/_locales/en/messages.json @@ -12,13 +12,13 @@ "message": "Based on Linkify Plus. Turn plain text URLs into links." }, "optionsFuzzyIpLabel": { - "message": "Match IP with only 4 digits." + "message": "Match ambiguous IP addresses." }, "optionsIgnoreMustacheLabel": { "message": "Ignore URLs inside mustaches e.g. {{ ... }}." }, "optionsEmbedImageLabel": { - "message": "Embed images." + "message": "Create an image element if the URL looks like an image file." }, "optionsEmbedImageExcludeElementLabel": { "message": "Exclude following elements. (CSS selector)" @@ -63,7 +63,7 @@ "message": "Always linkify following elements. Override above. (CSS selector)" }, "optionsTimeoutLabel": { - "message": "Max executation time. (ms)" + "message": "Max execution time. (ms)" }, "optionsTimeoutHelp": { "message": "The script will terminate if it takes too long to convert the entire page." @@ -72,7 +72,7 @@ "message": "Max script run time. (ms)" }, "optionsMaxRunTimeHelp": { - "message": "Split the process into small chunks to avoid freezing the browser." + "message": "If the script takes too long to run, the process would be splitted into small chunks to avoid browser freeze." }, "optionsUrlMatcherLabel": { "message": "URL matcher" diff --git a/src/userscript/index.js b/src/userscript/index.js index da4bf8a..468f980 100644 --- a/src/userscript/index.js +++ b/src/userscript/index.js @@ -1,4 +1,3 @@ -/* global $inline */ const translate = require("../static/_locales/en/messages.json"); // default const GM_webextPref = require("gm-webext-pref"); const prefDefault = require("../lib/pref-default");