Commit d7c4b94b authored by Nate Graham's avatar Nate Graham 💤
Browse files

Rename "Recent Documents" to "Recent Files" everywhere

This is a more generic term that's less likely to be inappropriate
(every document is a file, but not every file is a document) and using
"Recent Files" brings Plasma into consistency with what KIO and Dolphin
call it.

CCBUG: 424007
parent d68c16b2
......@@ -272,7 +272,7 @@ QVariantList recentDocumentActions(KService::Ptr service)
}
if (list.isEmpty()) {
list << createTitleActionItem(i18n("Recent Documents"));
list << createTitleActionItem(i18n("Recent Files"));
}
QVariantMap item = createActionItem(url.fileName(), fileItem.iconName(), QStringLiteral("_kicker_recentDocument"), resource);
......@@ -281,7 +281,7 @@ QVariantList recentDocumentActions(KService::Ptr service)
}
if (!list.isEmpty()) {
QVariantMap forgetAction = createActionItem(i18n("Forget Recent Documents"), QStringLiteral("edit-clear-history"), QStringLiteral("_kicker_forgetRecentDocuments"));
QVariantMap forgetAction = createActionItem(i18n("Forget Recent Files"), QStringLiteral("edit-clear-history"), QStringLiteral("_kicker_forgetRecentDocuments"));
list << forgetAction;
}
......
......@@ -168,7 +168,7 @@ QString RecentUsageModel::description() const
return i18n("Applications");
case OnlyDocs:
default:
return i18n("Documents");
return i18n("Files");
}
}
......@@ -300,7 +300,7 @@ QVariant RecentUsageModel::docData(const QString &resource, int role) const
}
return QIcon::fromTheme(fileItem.iconName(), QIcon::fromTheme(QStringLiteral("unknown")));
} else if (role == Kicker::GroupRole) {
return i18n("Documents");
return i18n("Files");
} else if (role == Kicker::FavoriteIdRole || role == Kicker::UrlRole) {
return url.toString();
} else if (role == Kicker::DescriptionRole) {
......@@ -336,7 +336,7 @@ QVariant RecentUsageModel::docData(const QString &resource, int role) const
QVariantMap openParentFolder = Kicker::createActionItem(i18n("Open Containing Folder"), QStringLiteral("folder-open"), QStringLiteral("openParentFolder"));
actionList << openParentFolder;
QVariantMap forgetAction = Kicker::createActionItem(i18n("Forget Document"), QStringLiteral("edit-clear-history"), QStringLiteral("forget"));
QVariantMap forgetAction = Kicker::createActionItem(i18n("Forget File"), QStringLiteral("edit-clear-history"), QStringLiteral("forget"));
actionList << forgetAction;
QVariantMap forgetAllAction = Kicker::createActionItem(forgetAllActionName(), QStringLiteral("edit-clear-history"), QStringLiteral("forgetAll"));
......@@ -473,7 +473,7 @@ QString RecentUsageModel::forgetAllActionName() const
return i18n("Forget All Applications");
case OnlyDocs:
default:
return i18n("Forget All Documents");
return i18n("Forget All Files");
}
}
......
......@@ -408,8 +408,8 @@ void RootModel::refresh()
m_recentDocsModel = new RecentUsageModel(this, RecentUsageModel::OnlyDocs, m_recentOrdering);
m_entryList.prepend(new GroupEntry(this,
m_recentOrdering == RecentUsageModel::Recent
? i18n("Recent Documents")
: i18n("Often Used Documents"),
? i18n("Recent Files")
: i18n("Often Used Files"),
m_recentOrdering == RecentUsageModel::Recent
? QString("view-history")
: QString("office-chart-pie"),
......
[Desktop Entry]
Name=Recent Documents
Name=Recent Files
Name[ar]=المستندات الأخيرة
Name[ast]=Documentos d'apocayá
Name[az]=Sonuncu sənədlər
......
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