VCS: Capitalize commitDisplayName

To be used by the submit editor.

Change-Id: I73fc13abfd37f207d92669c1893b7edda35ed1e4
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Orgad Shaneh
2018-08-28 08:35:38 +03:00
committed by Orgad Shaneh
parent ff6d91e42b
commit 6e59d31095
3 changed files with 5 additions and 4 deletions

View File

@@ -838,7 +838,7 @@ void ClearCasePlugin::updateActions(VcsBasePlugin::ActionState as)
QString ClearCasePlugin::commitDisplayName() const QString ClearCasePlugin::commitDisplayName() const
{ {
return tr("check in", "\"commit\" action for ClearCase."); return tr("Check In");
} }
void ClearCasePlugin::checkOutCurrentFile() void ClearCasePlugin::checkOutCurrentFile()

View File

@@ -1228,7 +1228,7 @@ void PerforceDiffConfig::triggerReRun()
QString PerforcePlugin::commitDisplayName() const QString PerforcePlugin::commitDisplayName() const
{ {
return tr("submit", "\"commit\" action for perforce"); return tr("Submit");
} }
void PerforcePlugin::p4Diff(const QString &workingDir, const QStringList &files) void PerforcePlugin::p4Diff(const QString &workingDir, const QStringList &files)

View File

@@ -643,12 +643,13 @@ bool VcsBasePlugin::enableMenuAction(ActionState as, QAction *menuAction) const
QString VcsBasePlugin::commitDisplayName() const QString VcsBasePlugin::commitDisplayName() const
{ {
return tr("commit", "name of \"commit\" action of the VCS."); return tr("Commit", "name of \"commit\" action of the VCS.");
} }
bool VcsBasePlugin::promptBeforeCommit() bool VcsBasePlugin::promptBeforeCommit()
{ {
return DocumentManager::saveAllModifiedDocuments(tr("Save before %1?").arg(commitDisplayName())); return DocumentManager::saveAllModifiedDocuments(tr("Save before %1?")
.arg(commitDisplayName().toLower()));
} }
void VcsBasePlugin::promptToDeleteCurrentFile() void VcsBasePlugin::promptToDeleteCurrentFile()