Ensure we use the app name in the GUI
authorKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 13 Oct 2020 05:23:46 +0000 (07:23 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 13 Oct 2020 05:28:43 +0000 (07:28 +0200)
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/gui/wizard/owncloudsetupnocredspage.ui
src/gui/wizard/owncloudsetuppage.cpp

index e158cc19c71a108bb2180d512b2cd8e0848de34e..d3e62595e06d0413881a991e3b6f7b878da61c81 100644 (file)
            </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>
         </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>
    <header>wizard/slideshow.h</header>
   </customwidget>
  </customwidgets>
- <resources>
-  <include location="../../../theme.qrc"/>
- </resources>
+ <resources/>
  <connections/>
 </ui>
index f286eebc1d18ed69847831a70bbdf0b8e306dce3..8f03fa124e4cb6d41de55b5e27d49a50f2282f5c 100644 (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();
 }