Commit 3bed8f40 authored by Alexander Lohnau's avatar Alexander Lohnau 💬 Committed by Nate Graham
Browse files

Show timezone keyword as part of runner syntax

Relates to plasma-workspace!1102

See https://i.imgur.com/SkP1oC8.png for how it will be displayed
parent 3923d79f
Pipeline #114360 failed with stage
in 1 minute and 6 seconds
......@@ -23,9 +23,11 @@ DateTimeRunner::DateTimeRunner(QObject *parent, const KPluginMetaData &metaData,
setObjectName(QLatin1String("DataTimeRunner"));
addSyntax(Plasma::RunnerSyntax(dateWord, i18n("Displays the current date")));
addSyntax(Plasma::RunnerSyntax(dateWord + QLatin1String(" :q:"), i18n("Displays the current date in a given timezone")));
addSyntax(Plasma::RunnerSyntax(timeWord, i18n("Displays the current time")));
addSyntax(Plasma::RunnerSyntax(timeWord + QLatin1String(" :q:"), i18n("Displays the current time in a given timezone")));
addSyntax(Plasma::RunnerSyntax(dateWord + i18nc("The <> and space are part of the example query", " <timezone>"),
i18n("Displays the current date in a given timezone")));
addSyntax(Plasma::RunnerSyntax(timeWord + i18nc("The <> and space are part of the example query", " <timezone>"),
i18n("Displays the current time in a given timezone")));
setTriggerWords({timeWord, dateWord});
}
......
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