QMessageBox::warning(this,tr("Search plugin install")+" -- "+tr("qBittorrent"),tr("%1 search engine plugin could not be installed.","%1 is the name of the search engine").arg(plugin_name.toUtf8().data()));
QMessageBox::warning(this,tr("Search plugin install")+" -- "+tr("qBittorrent"),tr("%1 search engine plugin could not be installed.","%1 is the name of the search engine").arg(plugin_name.toLocal8Bit().data()));
QMessageBox::warning(this,tr("Search plugin install")+" -- "+tr("qBittorrent"),tr("%1 search engine plugin could not be installed.","%1 is the name of the search engine").arg(plugin_name.toUtf8().data()));
QMessageBox::warning(this,tr("Search plugin install")+" -- "+tr("qBittorrent"),tr("%1 search engine plugin could not be installed.","%1 is the name of the search engine").arg(plugin_name.toLocal8Bit().data()));
}
}
QStringfavicon;
foreach(favicon,favicons){
qDebug("Detected favicon %s in archive",favicon.toUtf8().data());
qDebug("Detected favicon %s in archive",favicon.toLocal8Bit().data());
qDebug("Asked to install plugin at %s",path.toUtf8().data());
qDebug("Asked to install plugin at %s",path.toLocal8Bit().data());
floatnew_version=misc::getPluginVersion(path);
qDebug("Version to be installed: %.2f",new_version);
if(!isUpdateNeeded(plugin_name,new_version)){
qDebug("Apparently update it not needed, we have a more recent version");
QMessageBox::information(this,tr("Search plugin install")+" -- "+tr("qBittorrent"),tr("A more recent version of %1 search engine plugin is already installed.","%1 is the name of the search engine").arg(plugin_name.toUtf8().data()));
QMessageBox::information(this,tr("Search plugin install")+" -- "+tr("qBittorrent"),tr("A more recent version of %1 search engine plugin is already installed.","%1 is the name of the search engine").arg(plugin_name.toLocal8Bit().data()));
QMessageBox::warning(this,tr("Search plugin install")+" -- "+tr("qBittorrent"),tr("%1 search engine plugin could not be updated, keeping old version.","%1 is the name of the search engine").arg(plugin_name.toUtf8().data()));
QMessageBox::warning(this,tr("Search plugin install")+" -- "+tr("qBittorrent"),tr("%1 search engine plugin could not be updated, keeping old version.","%1 is the name of the search engine").arg(plugin_name.toLocal8Bit().data()));
return;
}else{
// Remove broken file
QFile::remove(dest_path);
QMessageBox::warning(this,tr("Search plugin install")+" -- "+tr("qBittorrent"),tr("%1 search engine plugin could not be installed.","%1 is the name of the search engine").arg(plugin_name.toUtf8().data()));
QMessageBox::warning(this,tr("Search plugin install")+" -- "+tr("qBittorrent"),tr("%1 search engine plugin could not be installed.","%1 is the name of the search engine").arg(plugin_name.toLocal8Bit().data()));
QMessageBox::information(this,tr("Search plugin install")+" -- "+tr("qBittorrent"),tr("%1 search engine plugin was successfully updated.","%1 is the name of the search engine").arg(plugin_name.toUtf8().data()));
QMessageBox::information(this,tr("Search plugin install")+" -- "+tr("qBittorrent"),tr("%1 search engine plugin was successfully updated.","%1 is the name of the search engine").arg(plugin_name.toLocal8Bit().data()));
return;
}else{
QMessageBox::information(this,tr("Search plugin install")+" -- "+tr("qBittorrent"),tr("%1 search engine plugin was successfully installed.","%1 is the name of the search engine").arg(plugin_name.toUtf8().data()));
QMessageBox::information(this,tr("Search plugin install")+" -- "+tr("qBittorrent"),tr("%1 search engine plugin was successfully installed.","%1 is the name of the search engine").arg(plugin_name.toLocal8Bit().data()));
QMessageBox::warning(this,tr("Search plugin update")+" -- "+tr("qBittorrent"),tr("Sorry, %1 search plugin install failed.","%1 is the name of the search engine").arg(plugin_name.toUtf8().data()));
QMessageBox::warning(this,tr("Search plugin update")+" -- "+tr("qBittorrent"),tr("Sorry, %1 search plugin install failed.","%1 is the name of the search engine").arg(plugin_name.toLocal8Bit().data()));
QMessageBox::warning(this,tr("Search plugin update")+" -- "+tr("qBittorrent"),tr("Sorry, %1 search plugin install failed.","%1 is the name of the search engine").arg(plugin_name.toUtf8().data()));
QMessageBox::warning(this,tr("Search plugin update")+" -- "+tr("qBittorrent"),tr("Sorry, %1 search plugin install failed.","%1 is the name of the search engine").arg(plugin_name.toLocal8Bit().data()));