forked from qt-creator/qt-creator
Git: Convert to Tr::tr
Change-Id: I7fb1753109a9263c70c01713f5f4895db6b73662 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "gerritoptionspage.h"
|
||||
#include "gerritparameters.h"
|
||||
#include "gerritserver.h"
|
||||
#include "gittr.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
#include <utils/pathchooser.h>
|
||||
@@ -24,7 +25,7 @@ GerritOptionsPage::GerritOptionsPage(const QSharedPointer<GerritParameters> &p,
|
||||
, m_parameters(p)
|
||||
{
|
||||
setId("Gerrit");
|
||||
setDisplayName(tr("Gerrit"));
|
||||
setDisplayName(Git::Tr::tr("Gerrit"));
|
||||
setCategory(VcsBase::Constants::VCS_SETTINGS_CATEGORY);
|
||||
}
|
||||
|
||||
@@ -70,24 +71,24 @@ GerritOptionsWidget::GerritOptionsWidget(QWidget *parent)
|
||||
, m_sshChooser(new Utils::PathChooser)
|
||||
, m_curlChooser(new Utils::PathChooser)
|
||||
, m_portSpinBox(new QSpinBox(this))
|
||||
, m_httpsCheckBox(new QCheckBox(tr("HTTPS")))
|
||||
, m_httpsCheckBox(new QCheckBox(Git::Tr::tr("HTTPS")))
|
||||
{
|
||||
auto formLayout = new QFormLayout(this);
|
||||
formLayout->setFieldGrowthPolicy(QFormLayout::ExpandingFieldsGrow);
|
||||
formLayout->addRow(tr("&Host:"), m_hostLineEdit);
|
||||
formLayout->addRow(tr("&User:"), m_userLineEdit);
|
||||
formLayout->addRow(Git::Tr::tr("&Host:"), m_hostLineEdit);
|
||||
formLayout->addRow(Git::Tr::tr("&User:"), m_userLineEdit);
|
||||
m_sshChooser->setExpectedKind(Utils::PathChooser::ExistingCommand);
|
||||
m_sshChooser->setCommandVersionArguments({"-V"});
|
||||
m_sshChooser->setHistoryCompleter("Git.SshCommand.History");
|
||||
formLayout->addRow(tr("&ssh:"), m_sshChooser);
|
||||
formLayout->addRow(Git::Tr::tr("&ssh:"), m_sshChooser);
|
||||
m_curlChooser->setExpectedKind(Utils::PathChooser::ExistingCommand);
|
||||
m_curlChooser->setCommandVersionArguments({"-V"});
|
||||
formLayout->addRow(tr("cur&l:"), m_curlChooser);
|
||||
formLayout->addRow(Git::Tr::tr("cur&l:"), m_curlChooser);
|
||||
m_portSpinBox->setMinimum(1);
|
||||
m_portSpinBox->setMaximum(65535);
|
||||
formLayout->addRow(tr("SSH &Port:"), m_portSpinBox);
|
||||
formLayout->addRow(tr("P&rotocol:"), m_httpsCheckBox);
|
||||
m_httpsCheckBox->setToolTip(tr(
|
||||
formLayout->addRow(Git::Tr::tr("SSH &Port:"), m_portSpinBox);
|
||||
formLayout->addRow(Git::Tr::tr("P&rotocol:"), m_httpsCheckBox);
|
||||
m_httpsCheckBox->setToolTip(Git::Tr::tr(
|
||||
"Determines the protocol used to form a URL in case\n"
|
||||
"\"canonicalWebUrl\" is not configured in the file\n"
|
||||
"\"gerrit.config\"."));
|
||||
|
||||
Reference in New Issue
Block a user