forked from qt-creator/qt-creator
Marketplace: Tr::tr()
Change-Id: Idbba28fd3057d634b5c5fb56f405c33d13d35332 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -44713,7 +44713,7 @@ Do you want to display them anyway?</source>
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>Marketplace::Internal::QtMarketplaceWelcomePage</name>
|
<name>::Marketplace</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Marketplace</source>
|
<source>Marketplace</source>
|
||||||
<translation>Marketplace</translation>
|
<translation>Marketplace</translation>
|
||||||
|
|||||||
@@ -24236,7 +24236,7 @@ Error: %5</translation>
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>Marketplace::Internal::QtMarketplaceWelcomePage</name>
|
<name>::Marketplace</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Marketplace</source>
|
<source>Marketplace</source>
|
||||||
<translation>Магазин</translation>
|
<translation>Магазин</translation>
|
||||||
|
|||||||
@@ -24051,7 +24051,7 @@ Error: %5</source>
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>Marketplace::Internal::QtMarketplaceWelcomePage</name>
|
<name>::Marketplace</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Marketplace</source>
|
<source>Marketplace</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include "qtmarketplacewelcomepage.h"
|
#include "qtmarketplacewelcomepage.h"
|
||||||
|
|
||||||
|
#include "marketplacetr.h"
|
||||||
#include "productlistmodel.h"
|
#include "productlistmodel.h"
|
||||||
|
|
||||||
#include <coreplugin/welcomepagehelper.h>
|
#include <coreplugin/welcomepagehelper.h>
|
||||||
@@ -25,7 +26,7 @@ using namespace Utils;
|
|||||||
|
|
||||||
QString QtMarketplaceWelcomePage::title() const
|
QString QtMarketplaceWelcomePage::title() const
|
||||||
{
|
{
|
||||||
return tr("Marketplace");
|
return Tr::tr("Marketplace");
|
||||||
}
|
}
|
||||||
|
|
||||||
int QtMarketplaceWelcomePage::priority() const
|
int QtMarketplaceWelcomePage::priority() const
|
||||||
@@ -45,7 +46,7 @@ public:
|
|||||||
{
|
{
|
||||||
auto searchBox = new Core::SearchBox(this);
|
auto searchBox = new Core::SearchBox(this);
|
||||||
m_searcher = searchBox->m_lineEdit;
|
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);
|
auto vbox = new QVBoxLayout(this);
|
||||||
vbox->setContentsMargins(0, 0, 0, Core::WelcomePageHelpers::ItemGap);
|
vbox->setContentsMargins(0, 0, 0, Core::WelcomePageHelpers::ItemGap);
|
||||||
@@ -82,7 +83,7 @@ public:
|
|||||||
f.setPixelSize(20);
|
f.setPixelSize(20);
|
||||||
m_errorLabel->setFont(f);
|
m_errorLabel->setFont(f);
|
||||||
const QString txt
|
const QString txt
|
||||||
= QtMarketplaceWelcomePage::tr(
|
= Tr::tr(
|
||||||
"<p>Could not fetch data from Qt Marketplace.</p><p>Try with your browser "
|
"<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>"
|
"instead: <a href='https://marketplace.qt.io'>https://marketplace.qt.io</a>"
|
||||||
"</p><br/><p><small><i>Error: %1</i></small></p>").arg(message);
|
"</p><br/><p><small><i>Error: %1</i></small></p>").arg(message);
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ namespace Internal {
|
|||||||
|
|
||||||
class QtMarketplaceWelcomePage : public Core::IWelcomePage
|
class QtMarketplaceWelcomePage : public Core::IWelcomePage
|
||||||
{
|
{
|
||||||
Q_DECLARE_TR_FUNCTIONS(Marketplace::Internal::QtMarketplaceWelcomePage)
|
|
||||||
public:
|
public:
|
||||||
QtMarketplaceWelcomePage() = default;
|
QtMarketplaceWelcomePage() = default;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user