label->setText(tr("Are you sure you want to delete \"%1\" from the transfer list?","Are you sure you want to delete \"ubuntu-linux-iso\" from the transfer list?").arg(name));
label->setText(tr("Are you sure you want to delete '%1' from the transfer list?","Are you sure you want to delete 'ubuntu-linux-iso' from the transfer list?").arg(name));
else
else
label->setText(tr("Are you sure you want to delete these %1 torrents from the transfer list?","Are you sure you want to delete these 5 torrents from the transfer list?").arg(QString::number(size)));
label->setText(tr("Are you sure you want to delete these %1 torrents from the transfer list?","Are you sure you want to delete these 5 torrents from the transfer list?").arg(QString::number(size)));
showNotificationBaloon(tr("I/O Error","i.e: Input/Output Error"),tr("An I/O error occurred for torrent %1.\n Reason: %2","e.g: An error occurred for torrent xxx.avi.\n Reason: disk is full.").arg(torrent->name()).arg(msg));
showNotificationBaloon(tr("I/O Error","i.e: Input/Output Error"),tr("An I/O error occurred for torrent '%1'.\n Reason: %2","e.g: An error occurred for torrent 'xxx.avi'.\n Reason: disk is full.").arg(torrent->name()).arg(msg));
QMessageBoxconfirmBox(QMessageBox::Question,tr("Recursive download confirmation"),tr("The torrent %1 contains torrent files, do you want to proceed with their download?").arg(torrent_name));
QMessageBoxconfirmBox(QMessageBox::Question,tr("Recursive download confirmation"),tr("The torrent '%1' contains torrent files, do you want to proceed with their download?").arg(torrent_name));
Logger::instance()->addMessage(tr("Automatic download %1 from %2 RSS feed failed because it doesn't contain a torrent or a magnet link...").arg(article->title()).arg(displayName()),Log::WARNING);
Logger::instance()->addMessage(tr("Automatic download of '%1' from '%2' RSS feed failed because it doesn't contain a torrent or a magnet link...").arg(article->title()).arg(displayName()),Log::WARNING);
article->markAsRead();
article->markAsRead();
return;
return;
}
}
Logger::instance()->addMessage(tr("Automatically downloading %1 torrent from %2 RSS feed...").arg(article->title()).arg(displayName()));
Logger::instance()->addMessage(tr("Automatically downloading '%1' torrent from '%2' RSS feed...").arg(article->title()).arg(displayName()));
qDebug("Version to be installed: %.2f",new_version);
qDebug("Version to be installed: %.2f",new_version);
if(!isUpdateNeeded(plugin_name,new_version)){
if(!isUpdateNeeded(plugin_name,new_version)){
qDebug("Apparently update is not needed, we have a more recent version");
qDebug("Apparently update is not needed, we have a more recent version");
QMessageBox::information(this,tr("Search plugin install"),tr("A more recent version of %1 search engine plugin is already installed.","%1 is the name of the search engine").arg(plugin_name));
QMessageBox::information(this,tr("Search plugin install"),tr("A more recent version of '%1' search engine plugin is already installed.","%1 is the name of the search engine").arg(plugin_name));
QMessageBox::warning(this,tr("Search plugin install"),tr("%1 search engine plugin could not be updated, keeping old version.","%1 is the name of the search engine").arg(plugin_name));
QMessageBox::warning(this,tr("Search plugin install"),tr("'%1' search engine plugin could not be updated, keeping old version.","%1 is the name of the search engine").arg(plugin_name));
return;
return;
}else{
}else{
// Remove broken file
// Remove broken file
Utils::Fs::forceRemove(dest_path);
Utils::Fs::forceRemove(dest_path);
QMessageBox::warning(this,tr("Search plugin install"),tr("%1 search engine plugin could not be installed.","%1 is the name of the search engine").arg(plugin_name));
QMessageBox::warning(this,tr("Search plugin install"),tr("'%1' search engine plugin could not be installed.","%1 is the name of the search engine").arg(plugin_name));
QMessageBox::information(this,tr("Search plugin install"),tr("%1 search engine plugin was successfully updated.","%1 is the name of the search engine").arg(plugin_name));
QMessageBox::information(this,tr("Search plugin install"),tr("'%1' search engine plugin was successfully updated.","%1 is the name of the search engine").arg(plugin_name));
return;
return;
}else{
}else{
QMessageBox::information(this,tr("Search plugin install"),tr("%1 search engine plugin was successfully installed.","%1 is the name of the search engine").arg(plugin_name));
QMessageBox::information(this,tr("Search plugin install"),tr("'%1' search engine plugin was successfully installed.","%1 is the name of the search engine").arg(plugin_name));
QMessageBox::warning(this,tr("Search plugin update"),tr("Sorry, %1 search plugin installation failed.","%1 is the name of the search engine").arg(plugin_name));
QMessageBox::warning(this,tr("Search plugin update"),tr("Sorry, '%1' search plugin installation failed.","%1 is the name of the search engine").arg(plugin_name));