forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
ff6d91e42b
commit
6e59d31095
@@ -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()
|
||||||
|
@@ -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)
|
||||||
|
@@ -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()
|
||||||
|
Reference in New Issue
Block a user