Git: Convert to Tr::tr

Change-Id: I7fb1753109a9263c70c01713f5f4895db6b73662
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Alessandro Portale
2022-10-06 14:05:43 +02:00
committed by hjk
parent b8efc2f14d
commit 928a7d2087
62 changed files with 776 additions and 4045 deletions

View File

@@ -2,9 +2,11 @@
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#include "gitsubmiteditor.h"
#include "gitclient.h"
#include "gitplugin.h"
#include "gitsubmiteditorwidget.h"
#include "gittr.h"
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/iversioncontrol.h>
@@ -19,13 +21,12 @@
#include <QTextCodec>
#include <QTimer>
static const char TASK_UPDATE_COMMIT[] = "Git.UpdateCommit";
using namespace Utils;
using namespace VcsBase;
namespace Git {
namespace Internal {
namespace Git::Internal {
const char TASK_UPDATE_COMMIT[] = "Git.UpdateCommit";
class GitSubmitFileModel : public SubmitFileModel
{
@@ -206,7 +207,7 @@ void GitSubmitEditor::updateFileModel()
w->setUpdateInProgress(true);
m_fetchWatcher.setFuture(Utils::runAsync(&CommitDataFetchResult::fetch,
m_commitType, m_workingDirectory));
Core::ProgressManager::addTask(m_fetchWatcher.future(), tr("Refreshing Commit Data"),
Core::ProgressManager::addTask(m_fetchWatcher.future(), Tr::tr("Refreshing Commit Data"),
TASK_UPDATE_COMMIT);
GitClient::instance()->addFuture(QFuture<void>(m_fetchWatcher.future()));
@@ -262,5 +263,4 @@ QByteArray GitSubmitEditor::fileContents() const
return text.toUtf8();
}
} // namespace Internal
} // namespace Git
} // Git::Internal