Ensure we use the app name in the GUI

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
Kevin Ottens 2020-10-13 07:23:46 +02:00
parent 7efaa2ed68
commit ca57221b74
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2
2 changed files with 9 additions and 6 deletions

View file

@ -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.&lt;br/&gt; 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.&lt;br/&gt;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>

View file

@ -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();
}