Commit c40fa3d7 authored by Lukas Appelhans's avatar Lukas Appelhans

More translations

parent 64b49560
......@@ -74,9 +74,8 @@ void RemoveOperation::remove(QList<Akabei::Package*> packages)
void RemoveOperation::errors(QList<Akabei::Error*>& errors)
{
kDebug() << "yoyoyo";
QTextStream out(stdout);
out << "Errors occurred: " << endl;
out << i18n("Errors occurred: ") << endl;
foreach (Akabei::Error * err, errors) {
out << err->description() << endl;
}
......@@ -90,12 +89,12 @@ void RemoveOperation::validationFinished(bool valid)
//foreach (Akabei::Operation * op, Akabei::Backend::instance()->operationRunner()->operations()) {
//kDebug() << op->fileSystemRemovals();
//}
out << "Queue not valid" << endl;
out << i18n("Queue not valid") << endl;
out.flush();
return;
}
int removeSize = 0;
out << "Packages: ";
out << i18n("Packages: ");
foreach (AkabeiClient::QueueItem * item, AkabeiClient::Backend::instance()->queue()->items()) {
if (item != AkabeiClient::Backend::instance()->queue()->items().first())
out << ", ";
......@@ -109,10 +108,10 @@ void RemoveOperation::validationFinished(bool valid)
}
}
out << endl << endl;
out << "Size of packages about to be removed: " << KIO::convertSize(removeSize) << endl;
out << i18n("Size of packages about to be removed: %1", KIO::convertSize(removeSize)) << endl;
out.flush();
out << "Continue with installation?[Y/n]";
out << i18n("Continue with installation?[Y/n]");
out.flush();
std::string input;
getline(std::cin, input);
......@@ -149,6 +148,6 @@ void RemoveOperation::showProgress(int progress)
void RemoveOperation::finished()
{
QTextStream out(stdout);
out << "The transaction finished!" << endl;
out << i18n("The transaction finished!") << endl;
QCoreApplication::instance()->quit();
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment