Changeset 82474 in vbox for trunk/src/VBox
- Timestamp:
- Dec 6, 2019 7:55:06 PM (5 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendCOM.cpp
r81422 r82474 702 702 } 703 703 704 /// @todo Internal strings never being translated. 705 /// If that is user-visible string then it is toString() and then each word should be 706 /// translated separately (i.e. "TimedOutKilled" should be "Timed Out Killed"). 707 /// If that is purely internal thing used to tag something or save value to extra-data 708 /// then this is toInternalString() indeed but no QApplication::translate should be used. 704 709 template<> QString toInternalString(const KGuestSessionStatus &enmStatus) 705 710 { … … 720 725 } 721 726 727 /// @todo Internal strings never being translated. 728 /// If that is user-visible string then it is fromString() and then each word should be 729 /// translated separately (i.e. "TimedOutKilled" should be "Timed Out Killed"). 730 /// If that is purely internal thing used to tag something or save value to extra-data 731 /// then this is fromInternalString() indeed but no QApplication::translate should be used. 722 732 template<> KGuestSessionStatus fromInternalString<KGuestSessionStatus>(const QString &strStatus) 723 733 { … … 739 749 } 740 750 751 /// @todo Internal strings never being translated. 752 /// If that is user-visible string then it is toString() and then each word should be 753 /// translated separately (i.e. "TimedOutKilled" should be "Timed Out Killed"). 754 /// If that is purely internal thing used to tag something or save value to extra-data 755 /// then this is toInternalString() indeed but no QApplication::translate should be used. 741 756 template<> QString toInternalString(const KProcessStatus &enmStatus) 742 757 { … … 760 775 } 761 776 777 /// @todo Internal strings never being translated. 778 /// If that is user-visible string then it is fromString() and then each word should be 779 /// translated separately (i.e. "TimedOutKilled" should be "Timed Out Killed"). 780 /// If that is purely internal thing used to tag something or save value to extra-data 781 /// then this is fromInternalString() indeed but no QApplication::translate should be used. 762 782 template<> KProcessStatus fromInternalString<KProcessStatus>(const QString &strStatus) 763 783 { -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICustomFileSystemModel.cpp
r79365 r82474 611 611 m_pRootItem->setData(UICustomFileSystemModel::tr("Owner"), UICustomFileSystemModelColumn_Owner); 612 612 m_pRootItem->setData(UICustomFileSystemModel::tr("Permissions"), UICustomFileSystemModelColumn_Permissions); 613 /// @todo Is this guy really user-readable. If that is so then each word should 614 /// be translated separately (i.e. "LocalPath" should be "Local Path"). 613 615 m_pRootItem->setData(UICustomFileSystemModel::tr("LocalPath"), UICustomFileSystemModelColumn_LocalPath); 614 616 m_pRootItem->setData(UICustomFileSystemModel::tr("Path"), UICustomFileSystemModelColumn_Path); -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerTable.cpp
r81340 r82474 1109 1109 return; 1110 1110 1111 /// @todo Is this guy really user-readable. If that is so then each word should 1112 /// be translated separately (i.e. "NewDirectory" should be "New Directory"). 1111 1113 QString newDirectoryName(UICustomFileSystemModel::tr("NewDirectory")); 1112 1114 … … 1296 1298 pRootItem->setData(UICustomFileSystemModel::tr("Permissions"), UICustomFileSystemModelColumn_Permissions); 1297 1299 } 1300 /// @todo Using \n breaks between words of the same sentence isn't allowed. This isn't easily translateable to other 1301 /// languages. Moreover, using of \n isn't allowed at all. This isn't exactly a cross-platform identifier. 1302 /// You can use only <br> between sentenses of the same paragraph. Most of Qt text is HTML by definition, so 1303 /// it does support <br> tags. 1298 1304 if (m_pWarningLabel) 1299 1305 m_pWarningLabel->setText(UIFileManager::tr("No Guest Session\nPlease use the Session Panel to start \na guest session")); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationRuntime.cpp
r81964 r82474 177 177 void UIRuntimeInfoWidget::retranslateUi() 178 178 { 179 /// @todo These NLS tags have to be reworked the following way: 180 /// Each place which uses plural/gender-neutral verbs like Active, Inactive, Not Available, not set and Not Detected 181 /// should use it directly like tr("Active", "Guest Additions") to make sure translator knows for sure whether this 182 /// verb is related to single or plural form and male/female/neutral sex. There are languages different than English 183 /// which sounds absolutely stupid if you ignore those rules while sequencing nouns and corresponding verbs. 179 184 m_strTableTitle = QApplication::translate("UIVMInformationDialog", "Runtime Attributes"); 180 185 m_strScreenResolutionLabel = QApplication::translate("UIVMInformationDialog", "Screen Resolution"); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.cpp
r81261 r82474 113 113 m_pTabWidget->setTabText(1, tr("&Runtime Information")); 114 114 m_pTabWidget->setTabText(2, tr("Performance &Monitor")); 115 /// @todo Shouldn't that be just "&Guest Control"? 115 116 m_pTabWidget->setTabText(3, tr("Guest Control &Session Information")); 116 117 } -
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp
r81944 r82474 2448 2448 dialog.setWindowTitle(UISoftKeyboard::tr("Provide a file name")); 2449 2449 dialog.setTextValue(currentLayout.name()); 2450 /// @todo Using \n breaks between words of the same sentence isn't allowed. This isn't easily translateable to other 2451 /// languages. Moreover, using of \n isn't allowed at all. This isn't exactly a cross-platform identifier. 2452 /// You can use only <br> between sentenses of the same paragraph. Most of Qt text is HTML by definition, so 2453 /// it does support <br> tags. 2450 2454 dialog.setLabelText(QString("%1 %2").arg(UISoftKeyboard::tr("The file will be saved under:\n")).arg(strHomeFolder)); 2451 2455 if (dialog.exec() == QDialog::Rejected)
Note:
See TracChangeset
for help on using the changeset viewer.