Changeset 39188 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Nov 3, 2011 2:19:00 PM (13 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/nls/VirtualBox_de.ts
r38973 r39188 4575 4575 </message> 4576 4576 <message> 4577 <source><p>You have version %1 of the <b><nobr>%2</nobr></b> installed.</p><p>You should download and install version %3 of this extension pack from Oracle!</p></source> 4578 <translation><p>Sie haben Version %1 des <b><nobr>%2</nobr></b> installiert.</p><p>Sie sollten Version %3 dieses Zusatzpaketes von Oracle herunterladen und installieren!</p></translation> 4579 </message> 4580 <message> 4577 4581 <source><p>Are you sure you want to download the <b><nobr>%1</nobr></b> from <nobr><a href="%2">%2</a></nobr> (size %3 bytes)?</p></source> 4578 4582 <translation><p>Möchten Sie wirklich das <b><nobr>%1</nobr></b> von <nobr><a href="%2">%2</a></nobr> (Größe %3 Byte) herunterladen?</p></translation> -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r39096 r39188 1832 1832 } 1833 1833 1834 bool UIMessageCenter::requestUserDownloadExtensionPack(const QString &strExtPackName, const QString &strExtPackVersion, const QString &strVBoxVersion) 1835 { 1836 return message(mainWindowShown(), Info, 1837 tr("<p>You have version %1 of the <b><nobr>%2</nobr></b> installed.</p>" 1838 "<p>You should download and install version %3 of this extension pack from Oracle!</p>") 1839 .arg(strExtPackVersion).arg(strExtPackName).arg(strVBoxVersion), 1840 0, /* Auto-confirm Id */ 1841 QIMessageBox::Ok | QIMessageBox::Default, 1842 0, 1843 0, 1844 tr("Ok", "extension pack")); 1845 } 1846 1834 1847 bool UIMessageCenter::confirmDownloadExtensionPack(const QString &strExtPackName, const QString &strURL, qulonglong uSize) 1835 1848 { -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h
r39096 r39188 311 311 312 312 bool proposeDownloadExtensionPack(const QString &strExtPackName, const QString &strExtPackVersion); 313 bool requestUserDownloadExtensionPack(const QString &strExtPackName, const QString &strExtPackVersion, const QString &strVBoxVersion); 313 314 bool confirmDownloadExtensionPack(const QString &strExtPackName, const QString &strURL, qulonglong uSize); 314 315 bool proposeInstallExtentionPack(const QString &strExtPackName, const QString &strFrom, const QString &strTo); -
trunk/src/VBox/Frontends/VirtualBox/src/net/UIUpdateManager.cpp
r38582 r39188 136 136 137 137 /* Get VirtualBox version: */ 138 VBoxVersion vboxVersion(vboxGlobal().vboxVersionStringNormalized()); 138 QString strVBoxVersion(vboxGlobal().vboxVersionStringNormalized()); 139 VBoxVersion vboxVersion(strVBoxVersion); 139 140 /* Get extension pack version: */ 140 141 QString strExtPackVersion(extPack.GetVersion().remove(VBOX_BUILD_PUBLISHER)); … … 145 146 return; 146 147 147 /* Ask the user about extension pack downloading: */ 148 if (!msgCenter().proposeDownloadExtensionPack(UI_ExtPackName, strExtPackVersion)) 149 return; 148 if (strExtPackVersion.contains("ENTERPRISE")) 149 { 150 /* Inform the user that he should update the extension pack: */ 151 msgCenter().requestUserDownloadExtensionPack(UI_ExtPackName, strExtPackVersion, strVBoxVersion); 152 } 153 else 154 { 155 /* Ask the user about extension pack downloading: */ 156 if (!msgCenter().proposeDownloadExtensionPack(UI_ExtPackName, strExtPackVersion)) 157 return; 158 } 150 159 151 160 /* Run downloader for VirtualBox extension pack: */
Note:
See TracChangeset
for help on using the changeset viewer.