VirtualBox

Changeset 82474 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 6, 2019 7:55:06 PM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: Few NLS related todos around whole the GUI.

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  
    702702}
    703703
     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.
    704709template<> QString toInternalString(const KGuestSessionStatus &enmStatus)
    705710{
     
    720725}
    721726
     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.
    722732template<> KGuestSessionStatus fromInternalString<KGuestSessionStatus>(const QString &strStatus)
    723733{
     
    739749}
    740750
     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.
    741756template<> QString toInternalString(const KProcessStatus &enmStatus)
    742757{
     
    760775}
    761776
     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.
    762782template<> KProcessStatus fromInternalString<KProcessStatus>(const QString &strStatus)
    763783{
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICustomFileSystemModel.cpp

    r79365 r82474  
    611611    m_pRootItem->setData(UICustomFileSystemModel::tr("Owner"), UICustomFileSystemModelColumn_Owner);
    612612    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").
    613615    m_pRootItem->setData(UICustomFileSystemModel::tr("LocalPath"), UICustomFileSystemModelColumn_LocalPath);
    614616    m_pRootItem->setData(UICustomFileSystemModel::tr("Path"), UICustomFileSystemModelColumn_Path);
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerTable.cpp

    r81340 r82474  
    11091109        return;
    11101110
     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").
    11111113    QString newDirectoryName(UICustomFileSystemModel::tr("NewDirectory"));
    11121114
     
    12961298        pRootItem->setData(UICustomFileSystemModel::tr("Permissions"), UICustomFileSystemModelColumn_Permissions);
    12971299    }
     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.
    12981304    if (m_pWarningLabel)
    12991305        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  
    177177void UIRuntimeInfoWidget::retranslateUi()
    178178{
     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.
    179184    m_strTableTitle = QApplication::translate("UIVMInformationDialog", "Runtime Attributes");
    180185    m_strScreenResolutionLabel = QApplication::translate("UIVMInformationDialog", "Screen Resolution");
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.cpp

    r81261 r82474  
    113113    m_pTabWidget->setTabText(1, tr("&Runtime Information"));
    114114    m_pTabWidget->setTabText(2, tr("Performance &Monitor"));
     115    /// @todo Shouldn't that be just "&Guest Control"?
    115116    m_pTabWidget->setTabText(3, tr("Guest Control &Session Information"));
    116117}
  • trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp

    r81944 r82474  
    24482448    dialog.setWindowTitle(UISoftKeyboard::tr("Provide a file name"));
    24492449    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.
    24502454    dialog.setLabelText(QString("%1 %2").arg(UISoftKeyboard::tr("The file will be saved under:\n")).arg(strHomeFolder));
    24512455    if (dialog.exec() == QDialog::Rejected)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette