- Timestamp:
- Apr 6, 2010 7:31:59 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionsPool.cpp
r27599 r28020 174 174 void retranslateUi() 175 175 { 176 menu()->setTitle( UIActionsPool::tr("&Machine"));176 menu()->setTitle(QApplication::translate("VBoxConsoleWnd", "&Machine")); 177 177 } 178 178 }; … … 196 196 void retranslateUi() 197 197 { 198 setText(VBoxGlobal::insertKeyToActionText( UIActionsPool::tr("&Fullscreen Mode"), "F"));199 setStatusTip( UIActionsPool::tr("Switch to fullscreen mode"));198 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "&Fullscreen Mode"), "F")); 199 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Switch to fullscreen mode")); 200 200 } 201 201 }; … … 219 219 void retranslateUi() 220 220 { 221 setText(VBoxGlobal::insertKeyToActionText( UIActionsPool::tr("Seam&less Mode"), "L"));222 setStatusTip( UIActionsPool::tr("Switch to seamless desktop integration mode"));221 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "Seam&less Mode"), "L")); 222 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Switch to seamless desktop integration mode")); 223 223 } 224 224 }; … … 242 242 void retranslateUi() 243 243 { 244 setText(VBoxGlobal::insertKeyToActionText( UIActionsPool::tr("Auto-resize &Guest Display"), "G"));245 setStatusTip( UIActionsPool::tr("Automatically resize the guest display when the window is resized (requires Guest Additions)"));244 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "Auto-resize &Guest Display"), "G")); 245 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Automatically resize the guest display when the window is resized (requires Guest Additions)")); 246 246 } 247 247 }; … … 264 264 void retranslateUi() 265 265 { 266 setText(VBoxGlobal::insertKeyToActionText( UIActionsPool::tr("&Adjust Window Size"), "A"));267 setStatusTip( UIActionsPool::tr("Adjust window size and position to best fit the guest display"));266 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "&Adjust Window Size"), "A")); 267 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Adjust window size and position to best fit the guest display")); 268 268 } 269 269 }; … … 308 308 if (!isChecked()) 309 309 { 310 setText(VBoxGlobal::insertKeyToActionText( UIActionsPool::tr("Disable &Mouse Integration"), "I"));311 setStatusTip( UIActionsPool::tr("Temporarily disable host mouse pointer integration"));310 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "Disable &Mouse Integration"), "I")); 311 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Temporarily disable host mouse pointer integration")); 312 312 } 313 313 else 314 314 { 315 setText(VBoxGlobal::insertKeyToActionText( UIActionsPool::tr("Enable &Mouse Integration"), "I"));316 setStatusTip( UIActionsPool::tr("Enable temporarily disabled host mouse pointer integration"));315 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "Enable &Mouse Integration"), "I")); 316 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Enable temporarily disabled host mouse pointer integration")); 317 317 } 318 318 } … … 336 336 void retranslateUi() 337 337 { 338 setText(VBoxGlobal::insertKeyToActionText( UIActionsPool::tr("&Insert Ctrl-Alt-Del"), "Del"));339 setStatusTip( UIActionsPool::tr("Send the Ctrl-Alt-Del sequence to the virtual machine"));338 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "&Insert Ctrl-Alt-Del"), "Del")); 339 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Send the Ctrl-Alt-Del sequence to the virtual machine")); 340 340 } 341 341 }; … … 359 359 void retranslateUi() 360 360 { 361 setText(VBoxGlobal::insertKeyToActionText( UIActionsPool::tr("&Insert Ctrl-Alt-Backspace"), "Backspace"));362 setStatusTip( UIActionsPool::tr("Send the Ctrl-Alt-Backspace sequence to the virtual machine"));361 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "&Insert Ctrl-Alt-Backspace"), "Backspace")); 362 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Send the Ctrl-Alt-Backspace sequence to the virtual machine")); 363 363 } 364 364 }; … … 382 382 void retranslateUi() 383 383 { 384 setText(VBoxGlobal::insertKeyToActionText( UIActionsPool::tr("Take &Snapshot..."), "S"));385 setStatusTip( UIActionsPool::tr("Take a snapshot of the virtual machine"));384 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "Take &Snapshot..."), "S")); 385 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Take a snapshot of the virtual machine")); 386 386 } 387 387 }; … … 404 404 void retranslateUi() 405 405 { 406 setText(VBoxGlobal::insertKeyToActionText( UIActionsPool::tr("Session I&nformation Dialog"), "N"));407 setStatusTip( UIActionsPool::tr("Show Session Information Dialog"));406 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "Session I&nformation Dialog"), "N")); 407 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Show Session Information Dialog")); 408 408 } 409 409 }; … … 428 428 if (!isChecked()) 429 429 { 430 setText(VBoxGlobal::insertKeyToActionText( UIActionsPool::tr("&Pause"), "P"));431 setStatusTip( UIActionsPool::tr("Suspend the execution of the virtual machine"));430 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "&Pause"), "P")); 431 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Suspend the execution of the virtual machine")); 432 432 } 433 433 else 434 434 { 435 setText(VBoxGlobal::insertKeyToActionText( UIActionsPool::tr("R&esume"), "P"));436 setStatusTip( UIActionsPool::tr("Resume the execution of the virtual machine"));435 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "R&esume"), "P")); 436 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Resume the execution of the virtual machine")); 437 437 } 438 438 } … … 456 456 void retranslateUi() 457 457 { 458 setText(VBoxGlobal::insertKeyToActionText( UIActionsPool::tr("&Reset"), "R"));459 setStatusTip( UIActionsPool::tr("Reset the virtual machine"));458 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "&Reset"), "R")); 459 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Reset the virtual machine")); 460 460 } 461 461 }; … … 480 480 #ifdef Q_WS_MAC 481 481 /* Host+H is Hide on the mac */ 482 setText(VBoxGlobal::insertKeyToActionText( UIActionsPool::tr("ACPI Sh&utdown"), "U"));482 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "ACPI Sh&utdown"), "U")); 483 483 #else /* Q_WS_MAC */ 484 setText(VBoxGlobal::insertKeyToActionText( UIActionsPool::tr("ACPI S&hutdown"), "H"));484 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "ACPI S&hutdown"), "H")); 485 485 #endif /* !Q_WS_MAC */ 486 setStatusTip( UIActionsPool::tr("Send the ACPI Power Button press event to the virtual machine"));486 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Send the ACPI Power Button press event to the virtual machine")); 487 487 } 488 488 }; … … 506 506 void retranslateUi() 507 507 { 508 setText(VBoxGlobal::insertKeyToActionText( UIActionsPool::tr("&Close..." ), "Q"));509 setStatusTip( UIActionsPool::tr("Close the virtual machine"));508 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "&Close..." ), "Q")); 509 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Close the virtual machine")); 510 510 } 511 511 }; … … 527 527 void retranslateUi() 528 528 { 529 menu()->setTitle( UIActionsPool::tr("&View"));529 menu()->setTitle(QApplication::translate("VBoxConsoleWnd", "&View")); 530 530 } 531 531 }; … … 547 547 void retranslateUi() 548 548 { 549 menu()->setTitle( UIActionsPool::tr("&Devices"));549 menu()->setTitle(QApplication::translate("VBoxConsoleWnd", "&Devices")); 550 550 } 551 551 }; … … 568 568 void retranslateUi() 569 569 { 570 menu()->setTitle( UIActionsPool::tr("&CD/DVD Devices"));570 menu()->setTitle(QApplication::translate("VBoxConsoleWnd", "&CD/DVD Devices")); 571 571 } 572 572 }; … … 589 589 void retranslateUi() 590 590 { 591 menu()->setTitle( UIActionsPool::tr("&Floppy Devices"));591 menu()->setTitle(QApplication::translate("VBoxConsoleWnd", "&Floppy Devices")); 592 592 } 593 593 }; … … 610 610 void retranslateUi() 611 611 { 612 menu()->setTitle( UIActionsPool::tr("&USB Devices"));612 menu()->setTitle(QApplication::translate("VBoxConsoleWnd", "&USB Devices")); 613 613 } 614 614 }; … … 650 650 void retranslateUi() 651 651 { 652 setText( UIActionsPool::tr("&Network Adapters..."));653 setStatusTip( UIActionsPool::tr("Change the settings of network adapters"));652 setText(QApplication::translate("VBoxConsoleWnd", "&Network Adapters...")); 653 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Change the settings of network adapters")); 654 654 } 655 655 }; … … 691 691 void retranslateUi() 692 692 { 693 setText( UIActionsPool::tr("&Shared Folders..."));694 setStatusTip( UIActionsPool::tr("Create or modify shared folders"));693 setText(QApplication::translate("VBoxConsoleWnd", "&Shared Folders...")); 694 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Create or modify shared folders")); 695 695 } 696 696 }; … … 714 714 void retranslateUi() 715 715 { 716 setText( UIActionsPool::tr("&Remote Display"));717 setStatusTip( UIActionsPool::tr("Enable or disable remote desktop (RDP) connections to this machine"));716 setText(QApplication::translate("VBoxConsoleWnd", "&Remote Display")); 717 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Enable or disable remote desktop (RDP) connections to this machine")); 718 718 } 719 719 }; … … 736 736 void retranslateUi() 737 737 { 738 setText(VBoxGlobal::insertKeyToActionText( UIActionsPool::tr("&Install Guest Additions..."), "D"));739 setStatusTip( UIActionsPool::tr("Mount the Guest Additions installation image"));738 setText(VBoxGlobal::insertKeyToActionText(QApplication::translate("VBoxConsoleWnd", "&Install Guest Additions..."), "D")); 739 setStatusTip(QApplication::translate("VBoxConsoleWnd", "Mount the Guest Additions installation image")); 740 740 } 741 741 }; … … 758 758 void retranslateUi() 759 759 { 760 menu()->setTitle( UIActionsPool::tr("De&bug"));760 menu()->setTitle(QApplication::translate("VBoxConsoleWnd", "De&bug")); 761 761 } 762 762 }; … … 778 778 void retranslateUi() 779 779 { 780 setText( UIActionsPool::tr("&Statistics...", "debug action"));780 setText(QApplication::translate("VBoxConsoleWnd", "&Statistics...", "debug action")); 781 781 } 782 782 }; … … 798 798 void retranslateUi() 799 799 { 800 setText( UIActionsPool::tr("&Command Line...", "debug action"));800 setText(QApplication::translate("VBoxConsoleWnd", "&Command Line...", "debug action")); 801 801 } 802 802 }; … … 818 818 void retranslateUi() 819 819 { 820 setText( UIActionsPool::tr("&Logging...", "debug action"));820 setText(QApplication::translate("VBoxConsoleWnd", "&Logging...", "debug action")); 821 821 } 822 822 }; … … 839 839 void retranslateUi() 840 840 { 841 setText( UIActionsPool::tr("&Help"));841 setText(QApplication::translate("VBoxConsoleWnd", "&Help")); 842 842 } 843 843 }; … … 861 861 { 862 862 setShortcut(QKeySequence::HelpContents); 863 setText( UIActionsPool::tr("&Contents..."));864 setStatusTip( UIActionsPool::tr("Show the online help contents"));863 setText(QApplication::translate("VBoxProblemReporter", "&Contents...")); 864 setStatusTip(QApplication::translate("VBoxProblemReporter", "Show the online help contents")); 865 865 } 866 866 }; … … 883 883 void retranslateUi() 884 884 { 885 setText( UIActionsPool::tr("&VirtualBox Web Site..."));886 setStatusTip( UIActionsPool::tr("Open the browser and go to the VirtualBox product web site"));885 setText(QApplication::translate("VBoxProblemReporter", "&VirtualBox Web Site...")); 886 setStatusTip(QApplication::translate("VBoxProblemReporter", "Open the browser and go to the VirtualBox product web site")); 887 887 } 888 888 }; … … 905 905 void retranslateUi() 906 906 { 907 setText( UIActionsPool::tr("&Reset All Warnings"));908 setStatusTip( UIActionsPool::tr("Go back to showing all suppressed warnings and messages"));907 setText(QApplication::translate("VBoxProblemReporter", "&Reset All Warnings")); 908 setStatusTip(QApplication::translate("VBoxProblemReporter", "Go back to showing all suppressed warnings and messages")); 909 909 } 910 910 }; … … 930 930 void retranslateUi() 931 931 { 932 setText( UIActionsPool::tr("R&egister VirtualBox..."));933 setStatusTip( UIActionsPool::tr("Open VirtualBox registration form"));932 setText(QApplication::translate("VBoxProblemReporter", "R&egister VirtualBox...")); 933 setStatusTip(QApplication::translate("VBoxProblemReporter", "Open VirtualBox registration form")); 934 934 } 935 935 }; … … 954 954 void retranslateUi() 955 955 { 956 setText( UIActionsPool::tr("C&heck for Updates..."));957 setStatusTip( UIActionsPool::tr("Check for a new VirtualBox version"));956 setText(QApplication::translate("VBoxProblemReporter", "C&heck for Updates...")); 957 setStatusTip(QApplication::translate("VBoxProblemReporter", "Check for a new VirtualBox version")); 958 958 } 959 959 }; … … 977 977 void retranslateUi() 978 978 { 979 setText( UIActionsPool::tr("&About VirtualBox..."));980 setStatusTip( UIActionsPool::tr("Show a dialog with product information"));979 setText(QApplication::translate("VBoxProblemReporter", "&About VirtualBox...")); 980 setStatusTip(QApplication::translate("VBoxProblemReporter", "Show a dialog with product information")); 981 981 } 982 982 }; … … 1016 1016 void retranslateUi() 1017 1017 { 1018 setText( UIActionsPool::tr("Dock Icon"));1018 setText(QApplication::translate("VBoxConsoleWnd", "Dock Icon")); 1019 1019 } 1020 1020 }; … … 1036 1036 void retranslateUi() 1037 1037 { 1038 setText( UIActionsPool::tr("Show Monitor Preview"));1038 setText(QApplication::translate("VBoxConsoleWnd", "Show Monitor Preview")); 1039 1039 } 1040 1040 }; … … 1056 1056 void retranslateUi() 1057 1057 { 1058 setText( UIActionsPool::tr("Show Application Icon"));1058 setText(QApplication::translate("VBoxConsoleWnd", "Show Application Icon")); 1059 1059 } 1060 1060 }; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp
r26773 r28020 56 56 const CMachine &machine = m_session.GetMachine(); 57 57 58 QString strToolTip = tr("<p style='white-space:pre'><nobr>Indicates the activity "58 QString strToolTip = QApplication::translate("VBoxConsoleWnd", "<p style='white-space:pre'><nobr>Indicates the activity " 59 59 "of the virtual hard disks:</nobr>%1</p>", "HDD tooltip"); 60 60 … … 81 81 82 82 if (!bAttachmentsPresent) 83 strFullData += tr("<br><nobr><b>No hard disks attached</b></nobr>", "HDD tooltip");83 strFullData += QApplication::translate("VBoxConsoleWnd", "<br><nobr><b>No hard disks attached</b></nobr>", "HDD tooltip"); 84 84 85 85 setToolTip(strToolTip.arg(strFullData)); … … 120 120 const CMachine &machine = m_session.GetMachine(); 121 121 122 QString strToolTip = tr("<p style='white-space:pre'><nobr>Indicates the activity "122 QString strToolTip = QApplication::translate("VBoxConsoleWnd", "<p style='white-space:pre'><nobr>Indicates the activity " 123 123 "of the CD/DVD devices:</nobr>%1</p>", "CD/DVD tooltip"); 124 124 … … 147 147 148 148 if (strFullData.isNull()) 149 strFullData = tr("<br><nobr><b>No CD/DVD devices attached</b></nobr>", "CD/DVD tooltip");149 strFullData = QApplication::translate("VBoxConsoleWnd", "<br><nobr><b>No CD/DVD devices attached</b></nobr>", "CD/DVD tooltip"); 150 150 151 151 setToolTip(strToolTip.arg(strFullData)); … … 186 186 const CMachine &machine = m_session.GetMachine(); 187 187 188 QString tip = tr ("<p style='white-space:pre'><nobr>Indicates the activity "188 QString tip = QApplication::translate("VBoxConsoleWnd", "<p style='white-space:pre'><nobr>Indicates the activity " 189 189 "of the floppy devices:</nobr>%1</p>", "FD tooltip"); 190 190 QString data; … … 212 212 213 213 if (data.isNull()) 214 data = tr ("<br><nobr><b>No floppy devices attached</b></nobr>", "FD tooltip");214 data = QApplication::translate("VBoxConsoleWnd", "<br><nobr><b>No floppy devices attached</b></nobr>", "FD tooltip"); 215 215 216 216 setToolTip (tip.arg (data)); … … 258 258 setState(uCount > 0 ? KDeviceActivity_Idle : KDeviceActivity_Null); 259 259 260 QString strToolTip = tr("<p style='white-space:pre'><nobr>Indicates the activity of the "260 QString strToolTip = QApplication::translate("VBoxConsoleWnd", "<p style='white-space:pre'><nobr>Indicates the activity of the " 261 261 "network interfaces:</nobr>%1</p>", "Network adapters tooltip"); 262 262 QString strFullData; … … 266 266 CNetworkAdapter adapter = machine.GetNetworkAdapter(uSlot); 267 267 if (adapter.GetEnabled()) 268 strFullData += tr("<br><nobr><b>Adapter %1 (%2)</b>: cable %3</nobr>", "Network adapters tooltip")268 strFullData += QApplication::translate("VBoxConsoleWnd", "<br><nobr><b>Adapter %1 (%2)</b>: cable %3</nobr>", "Network adapters tooltip") 269 269 .arg(uSlot + 1) 270 270 .arg(vboxGlobal().toString(adapter.GetAttachmentType())) 271 271 .arg(adapter.GetCableConnected() ? 272 tr("connected", "Network adapters tooltip") :273 tr("disconnected", "Network adapters tooltip"));272 QApplication::translate("VBoxConsoleWnd", "connected", "Network adapters tooltip") : 273 QApplication::translate("VBoxConsoleWnd", "disconnected", "Network adapters tooltip")); 274 274 } 275 275 276 276 if (strFullData.isNull()) 277 strFullData = tr("<br><nobr><b>All network adapters are disabled</b></nobr>", "Network adapters tooltip");277 strFullData = QApplication::translate("VBoxConsoleWnd", "<br><nobr><b>All network adapters are disabled</b></nobr>", "Network adapters tooltip"); 278 278 279 279 setToolTip(strToolTip.arg(strFullData)); … … 313 313 const CMachine &machine = m_session.GetMachine(); 314 314 315 QString strToolTip = tr("<p style='white-space:pre'><nobr>Indicates the activity of "315 QString strToolTip = QApplication::translate("VBoxConsoleWnd", "<p style='white-space:pre'><nobr>Indicates the activity of " 316 316 "the attached USB devices:</nobr>%1</p>", "USB device tooltip"); 317 317 QString strFullData; … … 329 329 } 330 330 if (strFullData.isNull()) 331 strFullData = tr("<br><nobr><b>No USB devices attached</b></nobr>", "USB device tooltip");331 strFullData = QApplication::translate("VBoxConsoleWnd", "<br><nobr><b>No USB devices attached</b></nobr>", "USB device tooltip"); 332 332 } 333 333 else 334 strFullData = tr("<br><nobr><b>USB Controller is disabled</b></nobr>", "USB device tooltip");334 strFullData = QApplication::translate("VBoxConsoleWnd", "<br><nobr><b>USB Controller is disabled</b></nobr>", "USB device tooltip"); 335 335 336 336 setToolTip(strToolTip.arg(strFullData)); … … 371 371 const CConsole &console = m_session.GetConsole(); 372 372 373 QString strToolTip = tr("<p style='white-space:pre'><nobr>Indicates the activity of "373 QString strToolTip = QApplication::translate("VBoxConsoleWnd", "<p style='white-space:pre'><nobr>Indicates the activity of " 374 374 "the machine's shared folders:</nobr>%1</p>", "Shared folders tooltip"); 375 375 … … 407 407 408 408 if (sfs.count() == 0) 409 strFullData = tr("<br><nobr><b>No shared folders</b></nobr>", "Shared folders tooltip");409 strFullData = QApplication::translate("VBoxConsoleWnd", "<br><nobr><b>No shared folders</b></nobr>", "Shared folders tooltip"); 410 410 411 411 setToolTip(strToolTip.arg(strFullData)); … … 449 449 setState(fVRDPEnabled ? 1 : 0); 450 450 451 QString tip = tr("Indicates whether the Remote Display (VRDP Server) "451 QString tip = QApplication::translate("VBoxConsoleWnd", "Indicates whether the Remote Display (VRDP Server) " 452 452 "is enabled (<img src=:/vrdp_16px.png/>) or not " 453 453 "(<img src=:/vrdp_disabled_16px.png/>)."); 454 454 if (vrdpsrv.GetEnabled()) 455 tip += tr ("<hr>The VRDP Server is listening on port %1").arg(vrdpsrv.GetPorts());455 tip += QApplication::translate("VBoxConsoleWnd", "<hr>The VRDP Server is listening on port %1").arg(vrdpsrv.GetPorts()); 456 456 setToolTip(tip); 457 457 } … … 499 499 VBoxGlobal::tr("Disabled", "nested paging"); 500 500 501 QString tip( tr("Indicates the status of the hardware virtualization "501 QString tip(QApplication::translate("VBoxConsoleWnd", "Indicates the status of the hardware virtualization " 502 502 "features used by this virtual machine:" 503 503 "<br><nobr><b>%1:</b> %2</nobr>" … … 509 509 int cpuCount = console.GetMachine().GetCPUCount(); 510 510 if (cpuCount > 1) 511 tip += tr("<br><nobr><b>%1:</b> %2</nobr>", "Virtualization Stuff LED")511 tip += QApplication::translate("VBoxConsoleWnd", "<br><nobr><b>%1:</b> %2</nobr>", "Virtualization Stuff LED") 512 512 .arg(VBoxGlobal::tr("Processor(s)", "details report")).arg(cpuCount); 513 513 … … 543 543 void retranslateUi() 544 544 { 545 setToolTip( tr("Indicates whether the host mouse pointer is captured by the guest OS:<br>"545 setToolTip(QApplication::translate("VBoxConsoleWnd", "Indicates whether the host mouse pointer is captured by the guest OS:<br>" 546 546 "<nobr><img src=:/mouse_disabled_16px.png/> pointer is not captured</nobr><br>" 547 547 "<nobr><img src=:/mouse_16px.png/> pointer is captured</nobr><br>" … … 594 594 void retranslateUi() 595 595 { 596 setToolTip( tr("Indicates whether the keyboard is captured by the guest OS "596 setToolTip(QApplication::translate("VBoxConsoleWnd", "Indicates whether the keyboard is captured by the guest OS " 597 597 "(<img src=:/hostkey_captured_16px.png/>) or not (<img src=:/hostkey_16px.png/>).")); 598 598 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r27678 r28020 136 136 void retranslateUi() 137 137 { 138 setWindowTitle( tr("Network Adapters"));138 setWindowTitle(QApplication::translate("VBoxNetworkDialog", "Network Adapters")); 139 139 } 140 140 … … 210 210 void retranslateUi() 211 211 { 212 setWindowTitle( tr("Shared Folders"));212 setWindowTitle(QApplication::translate("VBoxSFDialog", "Shared Folders")); 213 213 } 214 214 … … 241 241 CSession &m_session; 242 242 }; 243 244 #if 0 // TODO: Rework additions downloader logic!245 class UIAdditionsDownloader : public VBoxDownloaderWgt246 {247 Q_OBJECT;248 249 public:250 251 UIAdditionsDownloader (const QString &aSource, const QString &aTarget, QAction *aAction)252 : VBoxDownloaderWgt (aSource, aTarget)253 , mAction (aAction)254 {255 mAction->setEnabled (false);256 retranslateUi();257 }258 259 void start()260 {261 acknowledgeStart();262 }263 264 protected:265 266 void retranslateUi()267 {268 mCancelButton->setText (tr ("Cancel"));269 mProgressBar->setToolTip (tr ("Downloading the VirtualBox Guest Additions "270 "CD image from <nobr><b>%1</b>...</nobr>")271 .arg (mSource.toString()));272 mCancelButton->setToolTip (tr ("Cancel the VirtualBox Guest "273 "Additions CD image download"));274 }275 276 private slots:277 278 void downloadFinished (bool aError)279 {280 if (aError)281 VBoxDownloaderWgt::downloadFinished (aError);282 else283 {284 QByteArray receivedData (mHttp->readAll());285 /* Serialize the incoming buffer into the .iso image. */286 while (true)287 {288 QFile file (mTarget);289 if (file.open (QIODevice::WriteOnly))290 {291 file.write (receivedData);292 file.close();293 //if (vboxProblem().confirmMountAdditions (mSource.toString(),QDir::toNativeSeparators (mTarget)))294 // vboxGlobal().consoleWnd().installGuestAdditionsFrom (mTarget);295 QTimer::singleShot (0, this, SLOT (suicide()));296 break;297 }298 else299 {300 vboxProblem().message (window(), VBoxProblemReporter::Error,301 tr ("<p>Failed to save the downloaded file as "302 "<nobr><b>%1</b>.</nobr></p>")303 .arg (QDir::toNativeSeparators (mTarget)));304 }305 306 QString target = QIFileDialog::getExistingDirectory (307 QFileInfo (mTarget).absolutePath(), this,308 tr ("Select folder to save Guest Additions image to"), true);309 if (target.isNull())310 QTimer::singleShot (0, this, SLOT (suicide()));311 else312 mTarget = QDir (target).absoluteFilePath (QFileInfo (mTarget).fileName());313 }314 }315 }316 317 void suicide()318 {319 QStatusBar *sb = qobject_cast <QStatusBar*> (parent());320 Assert (sb);321 sb->removeWidget (this);322 mAction->setEnabled (true);323 VBoxDownloaderWgt::suicide();324 }325 326 private:327 328 bool confirmDownload()329 {330 return vboxProblem().confirmDownloadAdditions (mSource.toString(),331 mHttp->lastResponse().contentLength());332 }333 334 void warnAboutError (const QString &aError)335 {336 return vboxProblem().cannotDownloadGuestAdditions (mSource.toString(), aError);337 }338 339 QAction *mAction;340 };341 #endif342 243 343 244 UIMachineLogic* UIMachineLogic::create(QObject *pParent, … … 469 370 { 470 371 QAction *pAction = actions.at(i); 471 pAction->setText( tr("Preview Monitor %1").arg(pAction->data().toInt() + 1));372 pAction->setText(QApplication::translate("VBoxConsoleWnd", "Preview Monitor %1").arg(pAction->data().toInt() + 1)); 472 373 } 473 374 } … … 993 894 994 895 /* Search for the max available filter index. */ 995 QString strNameTemplate = tr("Snapshot %1");896 QString strNameTemplate = QApplication::translate("VBoxConsoleWnd", "Snapshot %1"); 996 897 int iMaxSnapshotIndex = searchMaxSnapshotIndex(machine, machine.GetSnapshot(QString()), strNameTemplate); 997 898 dlg.mLeName->setText(strNameTemplate.arg(++ iMaxSnapshotIndex)); … … 1209 1110 { 1210 1111 case VBoxDefs::MediumType_DVD: 1211 callVMMAction->setText( tr("More CD/DVD Images..."));1212 unmountMediumAction->setText( tr("Unmount CD/DVD Device"));1112 callVMMAction->setText(QApplication::translate("VBoxConsoleWnd", "More CD/DVD Images...")); 1113 unmountMediumAction->setText(QApplication::translate("VBoxConsoleWnd", "Unmount CD/DVD Device")); 1213 1114 unmountMediumAction->setIcon(VBoxGlobal::iconSet(":/cd_unmount_16px.png", 1214 1115 ":/cd_unmount_dis_16px.png")); 1215 1116 break; 1216 1117 case VBoxDefs::MediumType_Floppy: 1217 callVMMAction->setText( tr("More Floppy Images..."));1218 unmountMediumAction->setText( tr("Unmount Floppy Device"));1118 callVMMAction->setText(QApplication::translate("VBoxConsoleWnd", "More Floppy Images...")); 1119 unmountMediumAction->setText(QApplication::translate("VBoxConsoleWnd", "Unmount Floppy Device")); 1219 1120 unmountMediumAction->setIcon(VBoxGlobal::iconSet(":/fd_unmount_16px.png", 1220 1121 ":/fd_unmount_dis_16px.png")); … … 1235 1136 { 1236 1137 case VBoxDefs::MediumType_DVD: 1237 pEmptyMenuAction->setText( tr("No CD/DVD Devices Attached"));1238 pEmptyMenuAction->setToolTip( tr("No CD/DVD devices attached to that VM"));1138 pEmptyMenuAction->setText(QApplication::translate("VBoxConsoleWnd", "No CD/DVD Devices Attached")); 1139 pEmptyMenuAction->setToolTip(QApplication::translate("VBoxConsoleWnd", "No CD/DVD devices attached to that VM")); 1239 1140 break; 1240 1141 case VBoxDefs::MediumType_Floppy: 1241 pEmptyMenuAction->setText( tr("No Floppy Devices Attached"));1242 pEmptyMenuAction->setToolTip( tr("No floppy devices attached to that VM"));1142 pEmptyMenuAction->setText(QApplication::translate("VBoxConsoleWnd", "No Floppy Devices Attached")); 1143 pEmptyMenuAction->setToolTip(QApplication::translate("VBoxConsoleWnd", "No floppy devices attached to that VM")); 1243 1144 break; 1244 1145 default: … … 1344 1245 QAction *pEmptyMenuAction = new QAction(pMenu); 1345 1246 pEmptyMenuAction->setEnabled(false); 1346 pEmptyMenuAction->setText( tr("No USB Devices Connected"));1247 pEmptyMenuAction->setText(QApplication::translate("VBoxConsoleWnd", "No USB Devices Connected")); 1347 1248 pEmptyMenuAction->setIcon(VBoxGlobal::iconSet(":/delete_16px.png", ":/delete_dis_16px.png")); 1348 pEmptyMenuAction->setToolTip( tr("No supported devices connected to the host PC"));1249 pEmptyMenuAction->setToolTip(QApplication::translate("VBoxConsoleWnd", "No supported devices connected to the host PC")); 1349 1250 } 1350 1251 else -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp
r27695 r28020 242 242 243 243 m_pNameHostkey->setToolTip( 244 tr("Shows the currently assigned Host key.<br>"244 QApplication::translate("VBoxConsoleWnd", "Shows the currently assigned Host key.<br>" 245 245 "This key, when pressed alone, toggles the keyboard and mouse " 246 246 "capture state. It can also be used in combination with other keys "
Note:
See TracChangeset
for help on using the changeset viewer.