@@ -100,7 +100,7 @@ DownloadButton::DownloadButton(QWidget *parent) : QWidget(parent)
100
100
QSizePolicy::Preferred);
101
101
102
102
_downloadButton = new QPushButton (this );
103
- _downloadButton->setToolTip (" Click to Download " );
103
+ _downloadButton->setToolTip (obs_module_text ( " MarketplaceWindow.DownloadButton.Tooltip " ) );
104
104
std::string downloadIconPath = imageBaseDir + " download.svg" ;
105
105
std::string downloadIconHoverPath = imageBaseDir + " download_hover.svg" ;
106
106
blog (LOG_INFO, " download img: " , downloadIconPath.c_str ());
@@ -245,7 +245,7 @@ WindowToolBar::WindowToolBar(QWidget *parent) : QWidget(parent)
245
245
_layout->addStretch ();
246
246
247
247
_settingsButton = new QPushButton (this );
248
- _settingsButton->setToolTip (" Settings " );
248
+ _settingsButton->setToolTip (obs_module_text ( " MarketplaceWindow.OpenSettingsButton.Tooltip " ) );
249
249
std::string settingsIconPath = imageBaseDir + " settings.svg" ;
250
250
std::string settingsIconHoverPath = imageBaseDir + " settings_hover.svg" ;
251
251
QString settingsButtonStyle = EIconHoverButtonStyle;
@@ -262,7 +262,7 @@ WindowToolBar::WindowToolBar(QWidget *parent) : QWidget(parent)
262
262
_layout->addWidget (_settingsButton);
263
263
264
264
_storeButton = new QPushButton (this );
265
- _storeButton->setToolTip (" Go to Elgato Marketplace " );
265
+ _storeButton->setToolTip (obs_module_text ( " MarketplaceWindow.StoreButton.Tooltip " ) );
266
266
std::string storeIconPath = imageBaseDir + " marketplace-logo.svg" ;
267
267
std::string storeIconHoverPath =
268
268
imageBaseDir + " marketplace-logo_hover.svg" ;
@@ -281,7 +281,7 @@ WindowToolBar::WindowToolBar(QWidget *parent) : QWidget(parent)
281
281
_layout->addWidget (_storeButton);
282
282
283
283
_logInButton = new QPushButton (this );
284
- _logInButton->setText (" Log In " );
284
+ _logInButton->setText (obs_module_text ( " MarketplaceWindow.LoginButton.LogIn " ) );
285
285
_logInButton->setHidden (elgatoCloud->loggedIn );
286
286
_logInButton->setStyleSheet (
287
287
" QPushButton {font-size: 12pt; border-radius: 8px; padding: 8px; background-color: #232323; border: none; } "
@@ -291,7 +291,7 @@ WindowToolBar::WindowToolBar(QWidget *parent) : QWidget(parent)
291
291
[this ]() { elgatoCloud->StartLogin (); });
292
292
293
293
_logOutButton = new QPushButton (this );
294
- _logOutButton->setText (" Sign Out " );
294
+ _logOutButton->setText (obs_module_text ( " MarketplaceWindow.LoginButton.LogOut " ) );
295
295
_logOutButton->setHidden (!elgatoCloud->loggedIn );
296
296
_logOutButton->setStyleSheet (
297
297
" QPushButton {font-size: 12pt; border-radius: 8px; padding: 8px; background-color: #232323; border: none; } "
@@ -381,7 +381,7 @@ OwnedProducts::OwnedProducts(QWidget *parent) : QWidget(parent)
381
381
{
382
382
_layout = new QHBoxLayout (this );
383
383
_sideMenu = new QListWidget (this );
384
- _sideMenu->addItem (" Purchased " );
384
+ _sideMenu->addItem (obs_module_text ( " MarketplaceWindow.PurchasedTab " ) );
385
385
// _sideMenu->addItem("Installed (#)");
386
386
_sideMenu->setSizePolicy (QSizePolicy::Preferred,
387
387
QSizePolicy::Expanding);
@@ -391,7 +391,7 @@ OwnedProducts::OwnedProducts(QWidget *parent) : QWidget(parent)
391
391
connect (_sideMenu, &QListWidget::itemPressed, this ,
392
392
[this ](QListWidgetItem *item) {
393
393
QString val = item->text ();
394
- if (val == " Purchased " ) {
394
+ if (val == obs_module_text ( " MarketplaceWindow.PurchasedTab " ) ) {
395
395
if (_numProducts > 0 )
396
396
_content->setCurrentIndex (0 );
397
397
else
@@ -417,12 +417,12 @@ OwnedProducts::OwnedProducts(QWidget *parent) : QWidget(parent)
417
417
auto npLayout = new QVBoxLayout (noProducts);
418
418
npLayout->addStretch ();
419
419
auto npTitle = new QLabel (
420
- " You don't own any scene collection products yet " , noProducts);
420
+ obs_module_text ( " MarketplaceWindow.Purchased.NoPurchasesTitle " ) , noProducts);
421
421
npTitle->setStyleSheet (" QLabel {font-size: 18pt;}" );
422
422
npTitle->setAlignment (Qt::AlignCenter);
423
423
npLayout->addWidget (npTitle);
424
424
auto npSubTitle = new QLabel (
425
- " Your digital assets from Marketplace will appear here " ,
425
+ obs_module_text ( " MarketplaceWindow.Purchased.NoPurchasesSubtitle " ) ,
426
426
noProducts);
427
427
npSubTitle->setStyleSheet (" QLabel {font-size: 13pt;}" );
428
428
npSubTitle->setAlignment (Qt::AlignCenter);
@@ -469,7 +469,7 @@ ElgatoCloudWindow::~ElgatoCloudWindow()
469
469
470
470
void ElgatoCloudWindow::initialize ()
471
471
{
472
- setWindowTitle (QString (" Elgato Marketplace" ));
472
+ setWindowTitle (QString (" Elgato Marketplace Connect " ));
473
473
setFixedSize (1140 , 600 );
474
474
475
475
QPalette pal = QPalette ();
@@ -509,18 +509,11 @@ void ElgatoCloudWindow::initialize()
509
509
510
510
auto loadingWidget = new LoadingWidget (this ); // Loading widget, id: 3
511
511
_stackedContent->addWidget (loadingWidget);
512
- // _config = new ElgatoCloudConfig(this);
513
- // _config->setVisible(false);
514
- // connect(_config, &ElgatoCloudConfig::closeClicked, this, [this]() {
515
- // //_mainWidget->setVisible(true);
516
- // //_config->setVisible(false);
517
- // });
518
512
519
513
mainLayout->addWidget (_stackedContent);
520
514
_mainWidget->setLayout (mainLayout);
521
515
522
516
_layout->addWidget (_mainWidget);
523
- // _layout->addWidget(_config);
524
517
525
518
setLayout (_layout);
526
519
}
@@ -590,7 +583,7 @@ ElgatoProductItem::ElgatoProductItem(QWidget *parent, ElgatoProduct *product)
590
583
label->setStyleSheet (" QLabel {font-size: 11pt;}" );
591
584
592
585
titleLayout->addWidget (label);
593
- auto subTitle = new QLabel (" Stream Package " , this );
586
+ auto subTitle = new QLabel (" Scene Collection " , this );
594
587
subTitle->setStyleSheet (" QLabel {font-size: 10pt; color: #7E7E7E; }" );
595
588
titleLayout->addWidget (subTitle);
596
589
@@ -698,13 +691,12 @@ LoginNeeded::LoginNeeded(QWidget *parent) : QWidget(parent)
698
691
auto layout = new QVBoxLayout (this );
699
692
700
693
auto login = new QLabel (this );
701
- login->setText (" Please Log In " );
694
+ login->setText (obs_module_text ( " MarketplaceWindow.LoginNeeded.Title " ) );
702
695
login->setStyleSheet (" QLabel {font-size: 18pt;}" );
703
696
login->setAlignment (Qt::AlignCenter);
704
697
705
698
auto loginSub = new QLabel (this );
706
- loginSub->setText (
707
- " Click the Log In button above to log into your account and begin using the Elgato Marketplace plugin." );
699
+ loginSub->setText (obs_module_text (" MarketplaceWindow.LoginNeeded.Subtitle" ));
708
700
loginSub->setWordWrap (true );
709
701
loginSub->setAlignment (Qt::AlignCenter);
710
702
@@ -719,14 +711,14 @@ ConnectionError::ConnectionError(QWidget *parent) : QWidget(parent)
719
711
auto layout = new QVBoxLayout (this );
720
712
721
713
auto connectionError = new QLabel (this );
722
- connectionError->setText (" Connection Error" );
714
+ connectionError->setText (
715
+ obs_module_text (" MarketplaceWindow.ConnectionError.Title" ));
723
716
connectionError->setStyleSheet (" QLabel {font-size: 18pt;}" );
724
717
connectionError->setAlignment (Qt::AlignCenter);
725
718
726
719
auto connectionErrorSub = new QLabel (this );
727
- // TODO- CHANGE THIS TEXT IF NOT INTERNAL
728
720
connectionErrorSub->setText (
729
- " Could not connect to the server. (make sure you are using the VPN to connect to staging) " );
721
+ obs_module_text ( " MarketplaceWindow.ConnectionError.Subtitle " ) );
730
722
connectionErrorSub->setWordWrap (true );
731
723
connectionErrorSub->setAlignment (Qt::AlignCenter);
732
724
@@ -740,7 +732,7 @@ LoadingWidget::LoadingWidget(QWidget *parent) : QWidget(parent)
740
732
{
741
733
auto layout = new QVBoxLayout (this );
742
734
auto loading = new QLabel (this );
743
- loading->setText (" Loading Your Purchased Products... " );
735
+ loading->setText (obs_module_text ( " MarketplaceWindow. Loading.Title " ) );
744
736
loading->setStyleSheet (" QLabel {font-size: 18pt;}" );
745
737
loading->setAlignment (Qt::AlignCenter);
746
738
0 commit comments