Commit 719cae95 authored by AlmAck's avatar AlmAck

added new translatable lines

parent 9b002d65
......@@ -59,18 +59,18 @@ void CommandLineUtils::printHelpMessage(QMultiHash<APM::OperationType, AkabeiOpe
QTextStream out(stdout);
QHash<APM::OperationType, QString> typenames;
typenames.insert(APM::PerformOperationType, "Perform type");
typenames.insert(APM::QueryOperationType, "Query type");
typenames.insert(APM::RemoveOperationType, "Remove type");
typenames.insert(APM::SyncOperationType, "Sync type");
typenames.insert(APM::UpgradeOperationType, "Upgrade type");
typenames.insert(APM::NoType, "No type");
typenames.insert(APM::PerformOperationType, QObject::tr("Perform type"));
typenames.insert(APM::QueryOperationType, QObject::tr("Query type"));
typenames.insert(APM::RemoveOperationType, QObject::tr("Remove type"));
typenames.insert(APM::SyncOperationType, QObject::tr("Sync type"));
typenames.insert(APM::UpgradeOperationType, QObject::tr("Upgrade type"));
typenames.insert(APM::NoType, QObject::tr("No type"));
out << "Usage: " << m_data.catalogName() << " operation [options] [arguments]." << endl;
out << QObject::tr("Usage: ") << m_data.catalogName() << QObject::tr(" operation [options] [arguments].") << endl;
out << endl;
out << m_data.shortDescription();
out << endl << endl;
out << "Akabei operations:" << endl;
out << QObject::tr("Akabei operations:") << endl;
foreach (APM::OperationType type, typenames.keys()) {
if (!m_acceptedOperations.values(type).isEmpty()) {
......@@ -111,7 +111,7 @@ void CommandLineUtils::printHelpMessage(QMultiHash<APM::OperationType, AkabeiOpe
}
out << endl;
out << "Akabei options:" << endl;
out << QObject::tr("Akabei options:") << endl;
foreach (const AkabeiOption& opt, m_acceptedOptions.toSet()) {
/*
......@@ -178,13 +178,13 @@ void CommandLineUtils::printVersion(AkabeiAboutData &m_data)
void CommandLineUtils::printAuthors(AkabeiAboutData &m_data)
{
QTextStream out(stdout);
out << m_data.appName() << " was written by" << endl;
out << m_data.appName() << QObject::tr(" was written by") << endl;
foreach (const AkabeiAuthor& dev, m_data.authors()) {
out << " " << dev.name() << " " << dev.emailAddress() << endl;
}
out << "Please use " << m_data.bugAddress() << " to report bugs." << endl;
out << QObject::tr("Please use ") << m_data.bugAddress() << QObject::tr(" to report bugs.") << endl;
exit(0);
}
......
......@@ -72,10 +72,10 @@ void QueueOperation::start(AkabeiClient::PackageAction action, QList<Akabei::Pac
QString errorDescription;
if (action == AkabeiClient::Remove) {
errorDescription = "Unable to find the requested package(s) among the installed ones. Quitting...";
errorDescription = QObject::tr("Unable to find the requested package(s) among the installed ones. Quitting...");
}
else {
errorDescription = "Unable to find the requested package(s). Quitting...";
errorDescription = QObject::tr("Unable to find the requested package(s). Quitting...");
}
QTextStream err(stderr);
......
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