Skip to content

Commit

Permalink
added English strings for plugin install prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
0neGal committed Jul 22, 2023
1 parent c3652b7 commit a93dd11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 2 additions & 0 deletions src/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
13 changes: 2 additions & 11 deletions src/modules/packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a93dd11

Please sign in to comment.