"alert.upgrade-success":"Please reload your NodeBB to fully upgrade this plugin",
"alert.install-success":"Plugin successfully installed, please activate the plugin.",
"alert.uninstall-success":"The plugin has been successfully deactivated and uninstalled.",
"alert.suggest-error":"<p>NodeBB could not reach the package manager, proceed with installation of latest version?</p><div class=\"alert alert-danger\"><strong>Server returned (%1)</strong>: %2</div>",
"alert.package-manager-unreachable":"<p>NodeBB could not reach the package manager, an upgrade is not suggested at this time.</p>",
"alert.incompatible":"<p>Your version of NodeBB (v%1) is only cleared to upgrade to v%2 of this plugin. Please update your NodeBB if you wish to install a newer version of this plugin.</p>",
"alert.possibly-incompatible":"<div class=\"alert alert-warning\"><p><strong>No Compatibility Information Found</strong></p><p>This plugin did not specify a specific version for installation given your NodeBB version. Full compatibility cannot be guaranteed, and may cause your NodeBB to no longer start properly.</p></div><p>In the event that NodeBB cannot boot properly:</p><pre><code>$ ./nodebb reset plugin=\"%1\"</code></pre><p>Continue installation of latest version of this plugin?</p>"
@ -57,7 +61,7 @@ define('admin/extend/plugins', ['jqueryui'], function (jqueryui) {
Plugins.suggest(pluginID,function(err,payload){
Plugins.suggest(pluginID,function(err,payload){
if(err){
if(err){
bootbox.confirm('<p>NodeBB could not reach the package manager, proceed with installation of latest version?</p><div class="alert alert-danger"><strong>Server returned ('+err.status+')</strong>: '+err.responseText+'</div>',function(confirm){
@ -103,7 +107,7 @@ define('admin/extend/plugins', ['jqueryui'], function (jqueryui) {
upgrade(pluginID,btn,payload.version);
upgrade(pluginID,btn,payload.version);
});
});
}else{
}else{
bootbox.alert('<p>Your version of NodeBB (v'+app.config.version+') is only cleared to upgrade to v'+payload.version+' of this plugin. Please update your NodeBB if you wish to install a newer version of this plugin.');
'<div class="alert alert-warning"><p><strong>No Compatibility Infomation Found</strong></p><p>This plugin did not specify a specific version for installation given your NodeBB version. Full compatibility cannot be guaranteed, and may cause your NodeBB to no longer start properly.</p></div>'+
'<p>In the event that NodeBB cannot boot properly:</p>'+
message:pluginData.installed?'Plugin successfully installed, please activate the plugin.' :'The plugin has been successfully deactivated and uninstalled.',