From d81b3c6131491bb59423e0369f48878a7055c18c Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Mon, 19 Jun 2023 10:59:49 +0200 Subject: [PATCH] Copilot: Fix UI text capitalization and punctuation Change-Id: I49a38633a8df1b4d65ee02bebecf270287c800d9 Reviewed-by: Marcus Tillmanns --- src/plugins/copilot/authwidget.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/copilot/authwidget.cpp b/src/plugins/copilot/authwidget.cpp index f29e3d3a150..5047657b4ca 100644 --- a/src/plugins/copilot/authwidget.cpp +++ b/src/plugins/copilot/authwidget.cpp @@ -24,7 +24,7 @@ AuthWidget::AuthWidget(QWidget *parent) { using namespace Layouting; - m_button = new QPushButton(Tr::tr("Sign in")); + m_button = new QPushButton(Tr::tr("Sign In")); m_button->setEnabled(false); m_progressIndicator = new Utils::ProgressIndicator(Utils::ProgressIndicatorSize::Small); m_progressIndicator->setVisible(false); @@ -91,13 +91,13 @@ void AuthWidget::updateClient(const Utils::FilePath &nodeJs, const Utils::FilePa { LanguageClientManager::shutdownClient(m_client); m_client = nullptr; - setState(Tr::tr("Sign in"), false); + setState(Tr::tr("Sign In"), false); m_button->setEnabled(false); if (!nodeJs.isExecutableFile() || !agent.exists()) { return; } - setState(Tr::tr("Sign in"), true); + setState(Tr::tr("Sign In"), true); m_client = new CopilotClient(nodeJs, agent); connect(m_client, &Client::initialized, this, &AuthWidget::checkStatus); @@ -117,7 +117,7 @@ void AuthWidget::signIn() QDesktopServices::openUrl(QUrl(response.result()->verificationUri())); - m_statusLabel->setText(Tr::tr("A browser window will open, enter the code %1 when " + m_statusLabel->setText(Tr::tr("A browser window will open. Enter the code %1 when " "asked.\nThe code has been copied to your clipboard.") .arg(response.result()->userCode())); m_statusLabel->setVisible(true); @@ -129,7 +129,7 @@ void AuthWidget::signIn() if (response.error()) { QMessageBox::critical(this, - Tr::tr("Login failed"), + Tr::tr("Login Failed"), Tr::tr( "The login request failed: ") + response.error()->message());