VirtualBox

Ignore:
Timestamp:
Jul 9, 2024 3:09:33 PM (10 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
163888
Message:

FE/Qt: NLS stuff: Make sure indicator pool tags are properly distributed across existing contexts; Sync generator code as well.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDetailsGenerator.cpp

    r105241 r105242  
    13611361            /* Append adapter data: */
    13621362            strInfo += e_strTableRow1
    1363                 .arg(QApplication::translate("UIIndicatorsPool", "Adapter %1 (%2)", "Network tooltip")
     1363                .arg(QApplication::translate("UIIndicatorNetwork", "Adapter %1 (%2)")
    13641364                        .arg(uSlot + 1).arg(gpConverter->toString(comAdapter.GetAttachmentType())));
    13651365            if (!strGuestIp.isEmpty())
    13661366                strInfo += e_strTableRow3
    1367                     .arg(QApplication::translate("UIIndicatorsPool", "IP", "Network tooltip"), strGuestIp);
     1367                    .arg(QApplication::translate("UIIndicatorNetwork", "IP"), strGuestIp);
    13681368            strInfo += e_strTableRow3
    1369                 .arg(QApplication::translate("UIIndicatorsPool", "Cable", "Network tooltip"))
     1369                .arg(QApplication::translate("UIIndicatorNetwork", "Cable"))
    13701370                .arg(fCableConnected ?
    1371                      QApplication::translate("UIIndicatorsPool", "Connected", "cable (Network tooltip)") :
    1372                      QApplication::translate("UIIndicatorsPool", "Disconnected", "cable (Network tooltip)"));
     1371                     QApplication::translate("UIIndicatorNetwork", "Connected", "cable") :
     1372                     QApplication::translate("UIIndicatorNetwork", "Disconnected", "cable"));
    13731373        }
    13741374    }
     
    13931393        if (strInfo.isNull())
    13941394            strInfo = e_strTableRow1
    1395                 .arg(QApplication::translate("UIIndicatorsPool", "No USB devices attached", "USB tooltip"));
     1395                .arg(QApplication::translate("UIIndicatorUSB", "No USB devices attached"));
    13961396    }
    13971397}
     
    14211421    if (!fFoldersPresent)
    14221422        strInfo = e_strTableRow1
    1423             .arg(QApplication::translate("UIIndicatorsPool", "No shared folders", "Shared folders tooltip"));
     1423            .arg(QApplication::translate("UIIndicatorSharedFolders", "No shared folders"));
    14241424}
    14251425
     
    14341434    const QString strVRAMSize = QApplication::translate("UICommon", "<nobr>%1 MB</nobr>", "details report").arg(uVRAMSize);
    14351435    strInfo += e_strTableRow2
    1436         .arg(QApplication::translate("UIIndicatorsPool", "Video memory", "Display tooltip"), strVRAMSize);
     1436        .arg(QApplication::translate("UIIndicatorDisplay", "Video memory"), strVRAMSize);
    14371437
    14381438    /* Monitor Count: */
     
    14421442        const QString strMonitorCount = QString::number(uMonitorCount);
    14431443        strInfo += e_strTableRow2
    1444             .arg(QApplication::translate("UIIndicatorsPool", "Screens", "Display tooltip"), strMonitorCount);
     1444            .arg(QApplication::translate("UIIndicatorDisplay", "Screens"), strMonitorCount);
    14451445    }
    14461446
     
    14531453            : QApplication::translate("UICommon", "Disabled", "details report (3D Acceleration)");
    14541454        strInfo += e_strTableRow2
    1455             .arg(QApplication::translate("UIIndicatorsPool", "3D acceleration", "Display tooltip"), strAcceleration3D);
     1455            .arg(QApplication::translate("UIIndicatorDisplay", "3D acceleration"), strAcceleration3D);
    14561456    }
    14571457}
     
    14731473        QString strToolTip;
    14741474        if (fVideoEnabled && fAudioEnabled)
    1475             strToolTip = QApplication::translate("UIIndicatorsPool", "Video/audio recording file", "Recording tooltip");
     1475            strToolTip = QApplication::translate("UIIndicatorRecording", "Video/audio recording file");
    14761476        else if (fAudioEnabled)
    1477             strToolTip = QApplication::translate("UIIndicatorsPool", "Audio recording file", "Recording tooltip");
     1477            strToolTip = QApplication::translate("UIIndicatorRecording", "Audio recording file");
    14781478        else if (fVideoEnabled)
    1479             strToolTip = QApplication::translate("UIIndicatorsPool", "Video recording file", "Recording tooltip");
     1479            strToolTip = QApplication::translate("UIIndicatorRecording", "Video recording file");
    14801480        strInfo += e_strTableRow2
    14811481            .arg(strToolTip)
     
    14861486    {
    14871487        strInfo += e_strTableRow1
    1488             .arg(QApplication::translate("UIIndicatorsPool", "Recording disabled", "Recording tooltip"));
     1488            .arg(QApplication::translate("UIIndicatorRecording", "Recording disabled"));
    14891489    }
    14901490}
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp

    r105233 r105242  
    2727
    2828/* Qt includes: */
    29 #include <QApplication>
    3029#include <QAccessibleWidget>
    3130#include <QHBoxLayout>
     
    10401039    virtual void updateAppearance() RT_OVERRIDE
    10411040    {
    1042         const QString strToolTip = QApplication::translate("UIIndicatorsPool",
    1043                                                            "Indicates whether the host mouse pointer is "
    1044                                                            "captured by the guest OS:%1", "Mouse tooltip");
     1041        const QString strToolTip = tr("Indicates whether the host mouse pointer is "
     1042                                      "captured by the guest OS:%1", "Mouse tooltip");
    10451043        QString strFullData;
    10461044        strFullData += s_strTableRow3
    10471045            .arg(QString("<img src=:/mouse_disabled_16px.png/>"))
    1048             .arg(QApplication::translate("UIIndicatorsPool", "pointer is not captured", "Mouse tooltip"));
     1046            .arg(tr("pointer is not captured", "Mouse tooltip"));
    10491047        strFullData += s_strTableRow3
    10501048            .arg(QString("<img src=:/mouse_16px.png/>"))
    1051             .arg(QApplication::translate("UIIndicatorsPool", "pointer is captured", "Mouse tooltip"));
     1049            .arg(tr("pointer is captured", "Mouse tooltip"));
    10521050        strFullData += s_strTableRow3
    10531051            .arg(QString("<img src=:/mouse_seamless_16px.png/>"))
    1054             .arg(QApplication::translate("UIIndicatorsPool", "mouse integration (MI) is On", "Mouse tooltip"));
     1052            .arg(tr("mouse integration (MI) is On", "Mouse tooltip"));
    10551053        strFullData += s_strTableRow3
    10561054            .arg(QString("<img src=:/mouse_can_seamless_16px.png/>"))
    1057             .arg(QApplication::translate("UIIndicatorsPool", "MI is Off, pointer is captured", "Mouse tooltip"));
     1055            .arg(tr("MI is Off, pointer is captured", "Mouse tooltip"));
    10581056        strFullData += s_strTableRow3
    10591057            .arg(QString("<img src=:/mouse_can_seamless_uncaptured_16px.png/>"))
    1060             .arg(QApplication::translate("UIIndicatorsPool", "MI is Off, pointer is not captured", "Mouse tooltip"));
     1058            .arg(tr("MI is Off, pointer is not captured", "Mouse tooltip"));
    10611059        strFullData = s_strTable.arg(strFullData);
    1062         strFullData += QApplication::translate("UIIndicatorsPool",
    1063                                                "Note that the mouse integration feature requires Guest "
    1064                                                "Additions to be installed in the guest OS.", "Mouse tooltip");
     1060        strFullData += tr("Note that the mouse integration feature requires Guest "
     1061                          "Additions to be installed in the guest OS.", "Mouse tooltip");
    10651062
    10661063        /* Update tool-tip: */
     
    11221119    virtual void updateAppearance() RT_OVERRIDE
    11231120    {
    1124         const QString strToolTip = QApplication::translate("UIIndicatorsPool",
    1125                                                            "Indicates whether the host keyboard is "
    1126                                                            "captured by the guest OS:%1", "Keyboard tooltip");
     1121        const QString strToolTip = tr("Indicates whether the host keyboard is "
     1122                                      "captured by the guest OS:%1", "Keyboard tooltip");
    11271123        QString strFullData;
    11281124        strFullData += s_strTableRow3
    11291125            .arg(QString("<img src=:/hostkey_16px.png/>"))
    1130             .arg(QApplication::translate("UIIndicatorsPool", "keyboard is not captured", "Keyboard tooltip"));
     1126            .arg(tr("keyboard is not captured", "Keyboard tooltip"));
    11311127        strFullData += s_strTableRow3
    11321128            .arg(QString("<img src=:/hostkey_captured_16px.png/>"))
    1133             .arg(QApplication::translate("UIIndicatorsPool", "keyboard is captured", "Keyboard tooltip"));
     1129            .arg(tr("keyboard is captured", "Keyboard tooltip"));
    11341130        strFullData = s_strTable.arg(strFullData);
    11351131
     
    11761172    void sltRetranslateUI()
    11771173    {
    1178         setToolTip(QApplication::translate("UIMachineWindowNormal",
    1179                                            "Shows the currently assigned Host key.<br>"
    1180                                            "This key, when pressed alone, toggles the keyboard and mouse "
    1181                                            "capture state. It can also be used in combination with other keys "
    1182                                            "to quickly perform actions from the main menu."));
     1174        setToolTip(tr("Shows the currently assigned Host key.<br>"
     1175                      "This key, when pressed alone, toggles the keyboard and mouse "
     1176                      "capture state. It can also be used in combination with other keys "
     1177                      "to quickly perform actions from the main menu."));
    11831178    }
    11841179};
Note: See TracChangeset for help on using the changeset viewer.

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