aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2023-07-22 02:05:23 +0200
committer0neGal <mail@0negal.com>2023-07-22 02:05:23 +0200
commita93dd1170d71ad3cb687a585034c2225aae0ef95 (patch)
tree3b3d00922717f374f499dacb609656700b74da97
parentc3652b72b7bb3bcce207139ebc718e15f6746e43 (diff)
downloadViper-a93dd1170d71ad3cb687a585034c2225aae0ef95.tar.gz
Viper-a93dd1170d71ad3cb687a585034c2225aae0ef95.zip
added English strings for plugin install prompt
-rw-r--r--src/lang/en.json2
-rw-r--r--src/modules/packages.js13
2 files changed, 4 insertions, 11 deletions
diff --git a/src/lang/en.json b/src/lang/en.json
index bd95a53..5ce9407 100644
--- a/src/lang/en.json
+++ b/src/lang/en.json
@@ -69,6 +69,8 @@
"gui.mods.installedmod": "Installed mod!",
"gui.mods.dragdrop": "Drag and drop a mod to install",
"gui.mods.confirmdependencies": "This package has dependencies, shown below, clicking \"Ok\" will install the package and the dependencies.\n\n",
+ "gui.mods.confirm_plugins_title": "The following package has native plugins:",
+ "gui.mods.confirm_plugins_description": "Native plugins have far more system access than a regular mod, and because of this they're inherently less secure to have installed, as a malicious plugin could do far more harm this way. If this plugin is one from a trusted developer or similar or you know what you're doing, then you can disregard this message completely.",
"gui.browser.info": "Info",
"gui.browser.view": "View",
diff --git a/src/modules/packages.js b/src/modules/packages.js
index 317f0b0..e6eb4a1 100644
--- a/src/modules/packages.js
+++ b/src/modules/packages.js
@@ -183,17 +183,8 @@ packages.install = async (url, author, package_name, version) => {
// user, and make absolutely certain that they do want to
// install this package, as plugins have security concerns
let confirmation = await win.confirm(
- `The following package has native plugins: ${name} \n\n`
-
- +
-
- "Native plugins have far more system access than a " +
- "regular mod, and because of this they're inherently " +
- "less secure to have installed, as a malicious plugin" +
- " could do far more harm this way. If this plugin is " +
- "one from a trusted developer or similar or you know " +
- "what you're doing, then you can disregard this " +
- "message completely."
+ `${lang("gui.mods.confirm_plugins_title")} ${name} \n\n` +
+ lang("gui.mods.confirm_plugins_description")
)
// check whether the user cancelled or confirmed the