forked from I2P_Developers/i2p.i2p
linkify message
This commit is contained in:
@ -366,8 +366,18 @@ public class PluginUpdateHandler extends UpdateHandler {
|
|||||||
} else {
|
} else {
|
||||||
// start everything
|
// start everything
|
||||||
try {
|
try {
|
||||||
if (PluginStarter.startPlugin(_context, appName))
|
if (PluginStarter.startPlugin(_context, appName)) {
|
||||||
statusDone("<b>" + _("Plugin {0} installed and started", appName) + "</b>");
|
String linkName = ConfigClientsHelper.stripHTML(props, "consoleLinkName_" + Messages.getLanguage(_context));
|
||||||
|
if (linkName == null)
|
||||||
|
linkName = ConfigClientsHelper.stripHTML(props, "consoleLinkName");
|
||||||
|
String linkURL = ConfigClientsHelper.stripHTML(props, "consoleLinkURL");
|
||||||
|
String link;
|
||||||
|
if (linkName != null && linkURL != null)
|
||||||
|
link = "<a target=\"_blank\" href=\"" + linkURL + "\"/>" + linkName + "</a>";
|
||||||
|
else
|
||||||
|
link = appName;
|
||||||
|
statusDone("<b>" + _("Plugin {0} installed and started", link) + "</b>");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
statusDone("<b>" + _("Plugin {0} installed but failed to start, check logs", appName) + "</b>");
|
statusDone("<b>" + _("Plugin {0} installed but failed to start, check logs", appName) + "</b>");
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
|
Reference in New Issue
Block a user