Changeset View
Changeset View
Standalone View
Standalone View
src/dialogs/katedialogs.cpp
Show First 20 Lines • Show All 1285 Lines • ▼ Show 20 Line(s) | 1274 | if (!onDiskDeleted) { | |||
---|---|---|---|---|---|
1286 | } | 1286 | } | ||
1287 | 1287 | | |||
1288 | QAction * aReload = new QAction(i18n("&Reload"), this); | 1288 | QAction * aReload = new QAction(i18n("&Reload"), this); | ||
1289 | aReload->setIcon(QIcon::fromTheme(QStringLiteral("view-refresh"))); | 1289 | aReload->setIcon(QIcon::fromTheme(QStringLiteral("view-refresh"))); | ||
1290 | aReload->setToolTip(i18n("Reload the file from disk. Unsaved changes will be lost.")); | 1290 | aReload->setToolTip(i18n("Reload the file from disk. Unsaved changes will be lost.")); | ||
1291 | m_message->addAction(aReload); | 1291 | m_message->addAction(aReload); | ||
1292 | connect(aReload, SIGNAL(triggered()), this, SIGNAL(reloadTriggered())); | 1292 | connect(aReload, SIGNAL(triggered()), this, SIGNAL(reloadTriggered())); | ||
1293 | } else { | 1293 | } else { | ||
1294 | QAction * closeFile = new QAction(i18n("&Close"), this); | 1294 | QAction * closeFile = new QAction(i18nc("@action:button closes the opened file", "&Close File"), this); | ||
kossebau: Given this text ends on a button , use "&Close File".
See also https://hig.kde. | |||||
meven: Thank you for pointing it out :) | |||||
1295 | closeFile->setIcon(QIcon::fromTheme(QStringLiteral("document-close"))); | 1295 | closeFile->setIcon(QIcon::fromTheme(QStringLiteral("document-close"))); | ||
1296 | closeFile->setToolTip(i18n("Close the file, discarding its content.")); | 1296 | closeFile->setToolTip(i18n("Close the file, discarding its content.")); | ||
1297 | m_message->addAction(closeFile, false); | 1297 | m_message->addAction(closeFile, false); | ||
1298 | connect(closeFile, &QAction::triggered, this, &KateModOnHdPrompt::closeTriggered); | 1298 | connect(closeFile, &QAction::triggered, this, &KateModOnHdPrompt::closeTriggered); | ||
1299 | 1299 | | |||
1300 | QAction * aSaveAs = new QAction(i18n("&Save As..."), this); | 1300 | QAction * aSaveAs = new QAction(i18n("&Save As..."), this); | ||
1301 | aSaveAs->setIcon(QIcon::fromTheme(QStringLiteral("document-save-as"))); | 1301 | aSaveAs->setIcon(QIcon::fromTheme(QStringLiteral("document-save-as"))); | ||
1302 | aSaveAs->setToolTip(i18n("Lets you select a location and save the file again.")); | 1302 | aSaveAs->setToolTip(i18n("Lets you select a location and save the file again.")); | ||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |
Given this text ends on a button , use "&Close File".
See also https://hig.kde.org/style/writing/capitalization.html
More perfect might be even to use User Interface Markers in the comment, so translators have a clue what capitalization style they would prefer for their locale ->
i18nc("@action:button", "&Close file")
See also https://api.kde.org/frameworks/ki18n/html/prg_guide.html#good_ctxt