Marketplace: Tr::tr()

Change-Id: Idbba28fd3057d634b5c5fb56f405c33d13d35332
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Alessandro Portale
2023-02-08 09:39:44 +01:00
parent 74bf8fd5f7
commit dbf017c11e
5 changed files with 7 additions and 7 deletions

View File

@@ -44713,7 +44713,7 @@ Do you want to display them anyway?</source>
</message>
</context>
<context>
<name>Marketplace::Internal::QtMarketplaceWelcomePage</name>
<name>::Marketplace</name>
<message>
<source>Marketplace</source>
<translation>Marketplace</translation>

View File

@@ -24236,7 +24236,7 @@ Error: %5</translation>
</message>
</context>
<context>
<name>Marketplace::Internal::QtMarketplaceWelcomePage</name>
<name>::Marketplace</name>
<message>
<source>Marketplace</source>
<translation>Магазин</translation>

View File

@@ -24051,7 +24051,7 @@ Error: %5</source>
</message>
</context>
<context>
<name>Marketplace::Internal::QtMarketplaceWelcomePage</name>
<name>::Marketplace</name>
<message>
<source>Marketplace</source>
<translation type="unfinished"></translation>

View File

@@ -3,6 +3,7 @@
#include "qtmarketplacewelcomepage.h"
#include "marketplacetr.h"
#include "productlistmodel.h"
#include <coreplugin/welcomepagehelper.h>
@@ -25,7 +26,7 @@ using namespace Utils;
QString QtMarketplaceWelcomePage::title() const
{
return tr("Marketplace");
return Tr::tr("Marketplace");
}
int QtMarketplaceWelcomePage::priority() const
@@ -45,7 +46,7 @@ public:
{
auto searchBox = new Core::SearchBox(this);
m_searcher = searchBox->m_lineEdit;
m_searcher->setPlaceholderText(QtMarketplaceWelcomePage::tr("Search in Marketplace..."));
m_searcher->setPlaceholderText(Tr::tr("Search in Marketplace..."));
auto vbox = new QVBoxLayout(this);
vbox->setContentsMargins(0, 0, 0, Core::WelcomePageHelpers::ItemGap);
@@ -82,7 +83,7 @@ public:
f.setPixelSize(20);
m_errorLabel->setFont(f);
const QString txt
= QtMarketplaceWelcomePage::tr(
= Tr::tr(
"<p>Could not fetch data from Qt Marketplace.</p><p>Try with your browser "
"instead: <a href='https://marketplace.qt.io'>https://marketplace.qt.io</a>"
"</p><br/><p><small><i>Error: %1</i></small></p>").arg(message);

View File

@@ -12,7 +12,6 @@ namespace Internal {
class QtMarketplaceWelcomePage : public Core::IWelcomePage
{
Q_DECLARE_TR_FUNCTIONS(Marketplace::Internal::QtMarketplaceWelcomePage)
public:
QtMarketplaceWelcomePage() = default;