Commit 02e28e31 authored by Antoni Bella Pérez's avatar Antoni Bella Pérez 🚲
Browse files

l10n improves: Revision and add more semantic markup

parent cf3a9b27
Pipeline #244820 passed with stage
in 5 minutes and 25 seconds
......@@ -177,7 +177,7 @@ void CalendarClipboard::cutIncidence(const KCalendarCore::Incidence::Ptr &incide
"make all its sub-to-dos independent, or "
"cut the to-do with all its sub-to-dos?",
incidence->summary()),
i18n("KOrganizer Confirmation"),
i18nc("@title:window", "KOrganizer Confirmation"),
KGuiItem(i18n("Cut Only This")),
KGuiItem(i18n("Cut All")));
......@@ -216,7 +216,7 @@ bool CalendarClipboard::copyIncidence(const KCalendarCore::Incidence::Ptr &incid
"Do you want to copy just this item or "
"copy the to-do with all its sub-to-dos?",
incidence->summary()),
i18n("KOrganizer Confirmation"),
i18nc("@title:window", "KOrganizer Confirmation"),
KGuiItem(i18n("Copy Only This")),
KGuiItem(i18n("Copy All")));
if (km == KMessageBox::Cancel) {
......
......@@ -374,7 +374,7 @@ void FreeBusyManagerPrivate::processFreeBusyDownloadResult(KJob *_job)
qCritical() << "Error downloading freebusy" << _job->errorString();
KMessageBox::error(mParentWidgetForRetrieval,
i18n("Failed to download free/busy data from: %1\nReason: %2", job->url().toDisplayString(), job->errorText()),
i18n("Free/busy retrieval error"));
i18nc("@title:window", "Free/Busy Retrieval Error"));
// TODO: Ask for a retry? (i.e. queue the email again when the user wants it).
......@@ -397,7 +397,7 @@ void FreeBusyManagerPrivate::processFreeBusyDownloadResult(KJob *_job)
qCritical() << "Error downloading freebusy, invalid fb.";
KMessageBox::error(mParentWidgetForRetrieval,
i18n("Failed to parse free/busy information that was retrieved from: %1", job->url().toDisplayString()),
i18n("Free/busy retrieval error"));
i18nc("@title:window", "Free/Busy Retrieval Error"));
}
}
......@@ -613,7 +613,7 @@ void FreeBusyManagerPrivate::processMailSchedulerResult(Akonadi::Scheduler::Resu
if (result == Scheduler::ResultSuccess) {
KMessageBox::information(mParentWidgetForMailling,
i18n("The free/busy information was successfully sent."),
i18n("Sending Free/Busy"),
i18nc("@title:window", "Sending Free/Busy"),
QStringLiteral("FreeBusyPublishSuccess"));
} else {
KMessageBox::error(mParentWidgetForMailling, i18n("Unable to publish the free/busy data: %1", errorMsg));
......@@ -745,7 +745,7 @@ void FreeBusyManager::publishFreeBusy(QWidget *parentWidget)
"\"Free/Busy\" page.</p>"
"<p>Contact your system administrator for the exact URL and the "
"account details.</p></qt>"),
i18n("No Free/Busy Upload URL"));
i18nc("@title:window", "No Free/Busy Upload URL"));
return;
}
......@@ -754,7 +754,7 @@ void FreeBusyManager::publishFreeBusy(QWidget *parentWidget)
return;
}
if (!targetURL.isValid()) {
KMessageBox::error(parentWidget, i18n("<qt>The target URL '%1' provided is invalid.</qt>", targetURL.toDisplayString()), i18n("Invalid URL"));
KMessageBox::error(parentWidget, i18n("<qt>The target URL '%1' provided is invalid.</qt>", targetURL.toDisplayString()), i18nc("@title:window", "Invalid URL"));
d->mBrokenUrl = true;
return;
}
......
......@@ -1327,7 +1327,7 @@ void IncidenceChanger::cancelAttendees( const Akonadi::Item &aitem )
0,
i18n( "Some attendees were removed from the incidence. "
"Shall cancel messages be sent to these attendees?" ),
i18n( "Attendees Removed" ), KGuiItem( i18n( "Send Messages" ) ),
i18nc("@title:window", "Attendees Removed" ), KGuiItem( i18n( "Send Messages" ) ),
KGuiItem( i18n( "Do Not Send" ) ) ) == KMessageBox::Yes ) {
// don't use Akonadi::Groupware::sendICalMessage here, because that asks just
// a very general question "Other people are involved, send message to
......
......@@ -272,7 +272,7 @@ void ITIPHandler::sendiTIPMessage(KCalendarCore::iTIPMethod method, const KCalen
i18n("The item '%1' has no attendees. "
"Therefore no groupware message will be sent.",
incidence->summary()),
i18n("Message Not Sent"),
i18nc("@title:window", "Message Not Sent"),
QStringLiteral("ScheduleNoAttendees"));
}
......
......@@ -133,7 +133,7 @@ void ITIPHandlerPrivate::finishSendiTIPMessage(Akonadi::MailScheduler::Result re
"was successfully sent.\nMethod: %2",
m_queuedInvitation.incidence->summary(),
KCalendarCore::ScheduleMessage::methodName(m_queuedInvitation.method)),
i18n("Sending Free/Busy"),
i18nc("@title:window", "Sending Free/Busy"),
QStringLiteral("FreeBusyPublishSuccess"));
}
Q_EMIT q->iTipMessageSent(ITIPHandler::ResultSuccess, QString());
......@@ -158,7 +158,7 @@ void ITIPHandlerPrivate::finishPublishInformation(Akonadi::MailScheduler::Result
if (m_parentWidget) {
KMessageBox::information(m_parentWidget,
i18n("The item information was successfully sent."),
i18n("Publishing"),
i18nc("@title:window", "Publishing"),
QStringLiteral("IncidencePublishSuccess"));
}
Q_EMIT q->informationPublished(ITIPHandler::ResultSuccess, QString());
......@@ -178,13 +178,13 @@ void ITIPHandlerPrivate::finishSendAsICalendar(Akonadi::MailClient::Result resul
if (m_parentWidget) {
KMessageBox::information(m_parentWidget,
i18n("The item information was successfully sent."),
i18n("Forwarding"),
i18nc("@title:window", "Forwarding"),
QStringLiteral("IncidenceForwardSuccess"));
}
Q_EMIT q->sentAsICalendar(ITIPHandler::ResultSuccess, QString());
} else {
if (m_parentWidget) {
KMessageBox::error(m_parentWidget, i18n("Unable to forward the item '%1'", m_queuedInvitation.incidence->summary()), i18n("Forwarding Error"));
KMessageBox::error(m_parentWidget, i18n("Unable to forward the item '%1'", m_queuedInvitation.incidence->summary()), i18nc("@title:window", "Forwarding Error"));
}
qCritical() << "Sent as iCalendar failed." << errorMessage;
Q_EMIT q->sentAsICalendar(ITIPHandler::ResultError, errorMessage);
......
......@@ -64,7 +64,7 @@ int ITIPHandlerDialogDelegate::askUserIfNeeded(const QString &question, Action a
case ActionDontSendMessage:
return KMessageBox::No;
default:
return KMessageBox::questionYesNo(mParent, question, i18n("Group Scheduling Email"), buttonYes, buttonNo);
return KMessageBox::questionYesNo(mParent, question, i18nc("@title:window", "Group Scheduling Email"), buttonYes, buttonNo);
}
}
......
......@@ -122,7 +122,7 @@ void PublishDialog::accept()
i18n("Unable to publish the calendar incidence due to an "
"invalid recipients string. %1",
emailParseResultToString(addressOk)),
i18n("Publishing Error"));
i18nc("@title:window", "Publishing Error"));
} else {
QDialog::accept();
}
......
......@@ -294,7 +294,7 @@ void Scheduler::acceptRequest(const IncidenceBase::Ptr &incidenceBase,
"<item>you no longer have access to the calendar containing the invitation</item>"
"</list></para>"
"<para>This is not a problem, but we thought you should know.</para>"),
i18nc("@title", "Cannot find invitation to be updated"),
i18nc("@title:window", "Cannot Find Invitation to be Updated"),
QStringLiteral("AcceptCantFindIncidence"));
}
qCDebug(AKONADICALENDAR_LOG) << "Storing new incidence with scheduling uid=" << schedulingUid << " and uid=" << incidence->uid();
......@@ -479,7 +479,7 @@ void Scheduler::acceptReply(const IncidenceBase::Ptr &incidenceBase,
}
if (KMessageBox::questionYesNo(nullptr,
msg,
i18nc("@title", "Uninvited attendee"),
i18nc("@title:window", "Uninvited Attendee"),
KGuiItem(i18nc("@option", "Accept Attendance")),
KGuiItem(i18nc("@option", "Reject Attendance")))
!= KMessageBox::Yes) {
......@@ -507,7 +507,7 @@ void Scheduler::acceptReply(const IncidenceBase::Ptr &incidenceBase,
i18nc("@info",
"An attendee was added to the incidence. "
"Do you want to email the attendees an update message?"),
i18nc("@title", "Attendee Added"),
i18nc("@title:window", "Attendee Added"),
KGuiItem(i18nc("@option", "Send Messages")),
KGuiItem(i18nc("@option", "Do Not Send")))
== KMessageBox::Yes) {
......
......@@ -54,7 +54,7 @@ public:
mGenericManager->setContextText(StandardActionManager::CreateCollection,
StandardActionManager::ErrorMessageTitle,
i18n("Calendar folder creation failed"));
i18nc("@title:window", "Calendar Folder Creation Failed"));
mGenericManager->action(Akonadi::StandardActionManager::CreateCollection)
->setProperty("ContentMimeTypes",
QStringList() << QStringLiteral("inode/directory") << QStringLiteral("application/x-vnd.akonadi.calendar.todo")
......@@ -78,7 +78,7 @@ public:
mGenericManager->setContextText(StandardActionManager::DeleteCollections,
StandardActionManager::MessageBoxTitle,
ki18ncp("@title:window", "Delete calendar folder?", "Delete calendar folders?"));
ki18ncp("@title:window", "Delete Calendar Folder?", "Delete Calendar Folders?"));
mGenericManager->setContextText(StandardActionManager::DeleteCollections,
StandardActionManager::ErrorMessageText,
......@@ -86,7 +86,7 @@ public:
mGenericManager->setContextText(StandardActionManager::DeleteCollections,
StandardActionManager::ErrorMessageTitle,
i18n("Calendar folder deletion failed"));
i18nc("@title:window", "Calendar Folder Deletion Failed"));
break;
case Akonadi::StandardActionManager::SynchronizeCollections:
......@@ -125,7 +125,7 @@ public:
mGenericManager->setContextText(StandardActionManager::DeleteItems, StandardActionManager::ErrorMessageText, ki18n("Could not delete event: %1"));
mGenericManager->setContextText(StandardActionManager::DeleteItems, StandardActionManager::ErrorMessageTitle, i18n("Event deletion failed"));
mGenericManager->setContextText(StandardActionManager::DeleteItems, StandardActionManager::ErrorMessageTitle, i18nc("@title:window", "Event Deletion Failed"));
break;
case Akonadi::StandardActionManager::CutItems:
......@@ -144,7 +144,7 @@ public:
StandardActionManager::ErrorMessageText,
ki18n("Could not create calendar: %1"));
mGenericManager->setContextText(StandardActionManager::CreateResource, StandardActionManager::ErrorMessageTitle, i18n("Calendar creation failed"));
mGenericManager->setContextText(StandardActionManager::CreateResource, StandardActionManager::ErrorMessageTitle, i18nc("@title:window", "Calendar Creation Failed"));
break;
case Akonadi::StandardActionManager::DeleteResources:
......@@ -185,7 +185,7 @@ public:
case StandardActionManager::Paste:
mGenericManager->setContextText(StandardActionManager::Paste, StandardActionManager::ErrorMessageText, ki18n("Could not paste event: %1"));
mGenericManager->setContextText(StandardActionManager::Paste, StandardActionManager::ErrorMessageTitle, i18n("Paste failed"));
mGenericManager->setContextText(StandardActionManager::Paste, StandardActionManager::ErrorMessageTitle, i18nc("@title:window", "Paste Failed"));
break;
case Akonadi::StandardActionManager::SynchronizeCollectionTree:
mGenericManager->action(Akonadi::StandardActionManager::SynchronizeCollectionTree)->setText(i18n("Update Available Calendars"));
......
Supports Markdown
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