diff options
author | Kevin Ottens <kevin.ottens@nextcloud.com> | 2020-10-13 08:23:46 +0300 |
---|---|---|
committer | Kevin Ottens <kevin.ottens@nextcloud.com> | 2020-10-13 08:28:43 +0300 |
commit | ca57221b7423f8b2192dccb0b860136bc7a2ccd7 (patch) | |
tree | a6bbe246217630dad3548a6b4f412dc51766338a /src/gui/wizard | |
parent | 7efaa2ed68903a5361cfe88421b9090f786f6cd1 (diff) |
Ensure we use the app name in the GUI
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
Diffstat (limited to 'src/gui/wizard')
-rw-r--r-- | src/gui/wizard/owncloudsetupnocredspage.ui | 10 | ||||
-rw-r--r-- | src/gui/wizard/owncloudsetuppage.cpp | 5 |
2 files changed, 9 insertions, 6 deletions
diff --git a/src/gui/wizard/owncloudsetupnocredspage.ui b/src/gui/wizard/owncloudsetupnocredspage.ui index e158cc19c..d3e62595e 100644 --- a/src/gui/wizard/owncloudsetupnocredspage.ui +++ b/src/gui/wizard/owncloudsetupnocredspage.ui @@ -240,9 +240,9 @@ </layout> </item> <item> - <widget class="QLabel" name="label"> + <widget class="QLabel" name="addressDescriptionLabel"> <property name="text"> - <string>This is the link to your Nextcloud web interface when you open it in the browser.<br/> It looks like https://cloud.example.com or https://example.com/cloud</string> + <string>This is the link to your %1 web interface when you open it in the browser.<br/>It looks like https://cloud.example.com or https://example.com/cloud</string> </property> <property name="wordWrap"> <bool>true</bool> @@ -378,7 +378,7 @@ </size> </property> <property name="text"> - <string>Log in to your Nextcloud</string> + <string>Log in to your %1</string> </property> <property name="autoDefault"> <bool>false</bool> @@ -488,8 +488,6 @@ <header>wizard/slideshow.h</header> </customwidget> </customwidgets> - <resources> - <include location="../../../theme.qrc"/> - </resources> + <resources/> <connections/> </ui> diff --git a/src/gui/wizard/owncloudsetuppage.cpp b/src/gui/wizard/owncloudsetuppage.cpp index f286eebc1..8f03fa124 100644 --- a/src/gui/wizard/owncloudsetuppage.cpp +++ b/src/gui/wizard/owncloudsetuppage.cpp @@ -91,6 +91,11 @@ OwncloudSetupPage::OwncloudSetupPage(QWidget *parent) _ui.slideShow->hide(); #endif + const auto appName = Theme::instance()->appNameGUI(); + _ui.loginButton->setText(tr("Log in to your %1").arg(appName)); + _ui.addressDescriptionLabel->setText(tr("This is the link to your %1 web interface when you open it in the browser.<br/>" + "It looks like https://cloud.example.com or https://example.com/cloud").arg(appName)); + customizeStyle(); } |