forked from qt-creator/qt-creator
VcsBase: Convert to Tr::tr
To reduce the amount of duplicated strings for translators to handle. The problem is not very prominent in vcsbase, but that's where we are moving everywhere else. Change-Id: Icb11fad3bccfea8a1408420e729566a75adccb66 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -2,10 +2,12 @@
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "vcsbaseclient.h"
|
||||
|
||||
#include "vcsbaseclientsettings.h"
|
||||
#include "vcsbaseeditor.h"
|
||||
#include "vcsbaseeditorconfig.h"
|
||||
#include "vcsbaseplugin.h"
|
||||
#include "vcsbasetr.h"
|
||||
#include "vcscommand.h"
|
||||
#include "vcsoutputwindow.h"
|
||||
|
||||
@@ -79,7 +81,7 @@ VcsCommand *VcsBaseClientImpl::createCommand(const FilePath &workingDirectory,
|
||||
editor->setCommand(cmd);
|
||||
connect(cmd, &VcsCommand::done, editor, [editor, cmd] {
|
||||
if (cmd->result() != ProcessResult::FinishedWithSuccess) {
|
||||
editor->textDocument()->setPlainText(tr("Failed to retrieve data."));
|
||||
editor->textDocument()->setPlainText(Tr::tr("Failed to retrieve data."));
|
||||
return;
|
||||
}
|
||||
editor->setPlainText(cmd->cleanedStdOut());
|
||||
@@ -208,7 +210,7 @@ VcsBaseEditorWidget *VcsBaseClientImpl::createVcsEditor(Id kind, QString title,
|
||||
{
|
||||
VcsBaseEditorWidget *baseEditor = nullptr;
|
||||
IEditor *outputEditor = locateEditor(registerDynamicProperty, dynamicPropertyValue);
|
||||
const QString progressMsg = tr("Working...");
|
||||
const QString progressMsg = Tr::tr("Working...");
|
||||
if (outputEditor) {
|
||||
// Exists already
|
||||
outputEditor->document()->setContents(progressMsg.toUtf8());
|
||||
|
||||
Reference in New Issue
Block a user