VirtualBox

Ignore:
Timestamp:
Mar 27, 2009 11:10:51 AM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: tr() update #1 (Global Settings / Network page).

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

Legend:

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

    r18325 r18381  
    126126             QHostAddress (mInterfaceAddress).protocol() != QAbstractSocket::IPv4Protocol))
    127127        {
    128             aWarning = QTreeWidget::tr ("host IPv4 address of <b>%1</b> is wrong").arg (text (0));
     128            aWarning = VBoxGLSettingsNetwork::tr ("host IPv4 address of <b>%1</b> is wrong").arg (text (0));
    129129            return false;
    130130        }
     
    133133             QHostAddress (mInterfaceMask).protocol() != QAbstractSocket::IPv4Protocol))
    134134        {
    135             aWarning = QTreeWidget::tr ("host IPv4 network mask of <b>%1</b> is wrong").arg (text (0));
     135            aWarning = VBoxGLSettingsNetwork::tr ("host IPv4 network mask of <b>%1</b> is wrong").arg (text (0));
    136136            return false;
    137137        }
     
    142142                 QHostAddress (mInterfaceAddress6).protocol() != QAbstractSocket::IPv6Protocol))
    143143            {
    144                 aWarning = QTreeWidget::tr ("host IPv6 address of <b>%1</b> is wrong").arg (text (0));
     144                aWarning = VBoxGLSettingsNetwork::tr ("host IPv6 address of <b>%1</b> is wrong").arg (text (0));
    145145                return false;
    146146            }
     
    154154            QHostAddress (mDhcpServerAddress).protocol() != QAbstractSocket::IPv4Protocol)
    155155        {
    156             aWarning = QTreeWidget::tr ("DHCP server address of <b>%1</b> is wrong").arg (text (0));
     156            aWarning = VBoxGLSettingsNetwork::tr ("DHCP server address of <b>%1</b> is wrong").arg (text (0));
    157157            return false;
    158158        }
     
    160160            QHostAddress (mDhcpServerMask).protocol() != QAbstractSocket::IPv4Protocol)
    161161        {
    162             aWarning = QTreeWidget::tr ("DHCP server mask of <b>%1</b> is wrong").arg (text (0));
     162            aWarning = VBoxGLSettingsNetwork::tr ("DHCP server mask of <b>%1</b> is wrong").arg (text (0));
    163163            return false;
    164164        }
     
    166166            QHostAddress (mDhcpLowerAddress).protocol() != QAbstractSocket::IPv4Protocol)
    167167        {
    168             aWarning = QTreeWidget::tr ("DHCP lower address bound of <b>%1</b> is wrong").arg (text (0));
     168            aWarning = VBoxGLSettingsNetwork::tr ("DHCP lower address bound of <b>%1</b> is wrong").arg (text (0));
    169169            return false;
    170170        }
     
    172172            QHostAddress (mDhcpUpperAddress).protocol() != QAbstractSocket::IPv4Protocol)
    173173        {
    174             aWarning = QTreeWidget::tr ("DHCP upper address bound of <b>%1</b> is wrong").arg (text (0));
     174            aWarning = VBoxGLSettingsNetwork::tr ("DHCP upper address bound of <b>%1</b> is wrong").arg (text (0));
    175175            return false;
    176176        }
     
    189189
    190190    /* Host-only Interface information */
    191     buffer = hdr.arg (QTreeWidget::tr ("Host Interface"))
    192                 .arg (mDhcpClientEnabled ? QTreeWidget::tr ("Automatically configured", "interface")
    193                                          : QTreeWidget::tr ("Manually configured", "interface"));
     191    buffer = hdr.arg (VBoxGLSettingsNetwork::tr ("Host Interface"))
     192                .arg (mDhcpClientEnabled ? VBoxGLSettingsNetwork::tr ("Automatically configured", "interface")
     193                                         : VBoxGLSettingsNetwork::tr ("Manually configured", "interface"));
    194194    data += buffer;
    195195    tip += buffer;
     
    197197    if (!mDhcpClientEnabled)
    198198    {
    199         buffer = sub.arg (QTreeWidget::tr ("IPv4 Address"))
    200                     .arg (mInterfaceAddress.isEmpty() ? QTreeWidget::tr ("Not set", "address")
     199        buffer = sub.arg (VBoxGLSettingsNetwork::tr ("IPv4 Address"))
     200                    .arg (mInterfaceAddress.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "address")
    201201                                                      : mInterfaceAddress) +
    202                  sub.arg (QTreeWidget::tr ("IPv4 Mask"))
    203                     .arg (mInterfaceMask.isEmpty() ? QTreeWidget::tr ("Not set", "mask")
     202                 sub.arg (VBoxGLSettingsNetwork::tr ("IPv4 Mask"))
     203                    .arg (mInterfaceMask.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "mask")
    204204                                                   : mInterfaceMask);
    205205        tip += buffer;
     
    207207        if (mIpv6Supported)
    208208        {
    209             buffer = sub.arg (QTreeWidget::tr ("IPv6 Address"))
    210                         .arg (mInterfaceAddress6.isEmpty() ? QTreeWidget::tr ("Not set", "address")
     209            buffer = sub.arg (VBoxGLSettingsNetwork::tr ("IPv6 Address"))
     210                        .arg (mInterfaceAddress6.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "address")
    211211                                                           : mInterfaceAddress6) +
    212                      sub.arg (QTreeWidget::tr ("IPv6 Mask Length"))
    213                         .arg (mInterfaceMaskLength6.isEmpty() ? QTreeWidget::tr ("Not set", "length")
     212                     sub.arg (VBoxGLSettingsNetwork::tr ("IPv6 Mask Length"))
     213                        .arg (mInterfaceMaskLength6.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "length")
    214214                                                              : mInterfaceMaskLength6);
    215215            tip += buffer;
     
    218218
    219219    /* DHCP Server information */
    220     buffer = hdr.arg (QTreeWidget::tr ("DHCP Server"))
    221                 .arg (mDhcpServerEnabled ? QTreeWidget::tr ("Enabled", "server")
    222                                          : QTreeWidget::tr ("Disabled", "server"));
     220    buffer = hdr.arg (VBoxGLSettingsNetwork::tr ("DHCP Server"))
     221                .arg (mDhcpServerEnabled ? VBoxGLSettingsNetwork::tr ("Enabled", "server")
     222                                         : VBoxGLSettingsNetwork::tr ("Disabled", "server"));
    223223    data += buffer;
    224224    tip += buffer;
     
    226226    if (mDhcpServerEnabled)
    227227    {
    228         buffer = sub.arg (QTreeWidget::tr ("Address"))
    229                     .arg (mDhcpServerAddress.isEmpty() ? QTreeWidget::tr ("Not set", "address")
     228        buffer = sub.arg (VBoxGLSettingsNetwork::tr ("Address"))
     229                    .arg (mDhcpServerAddress.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "address")
    230230                                                       : mDhcpServerAddress) +
    231                  sub.arg (QTreeWidget::tr ("Mask"))
    232                     .arg (mDhcpServerMask.isEmpty() ? QTreeWidget::tr ("Not set", "mask")
     231                 sub.arg (VBoxGLSettingsNetwork::tr ("Mask"))
     232                    .arg (mDhcpServerMask.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "mask")
    233233                                                    : mDhcpServerMask) +
    234                  sub.arg (QTreeWidget::tr ("Lower Bound"))
    235                     .arg (mDhcpLowerAddress.isEmpty() ? QTreeWidget::tr ("Not set", "bound")
     234                 sub.arg (VBoxGLSettingsNetwork::tr ("Lower Bound"))
     235                    .arg (mDhcpLowerAddress.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "bound")
    236236                                                      : mDhcpLowerAddress) +
    237                  sub.arg (QTreeWidget::tr ("Upper Bound"))
    238                     .arg (mDhcpUpperAddress.isEmpty() ? QTreeWidget::tr ("Not set", "bound")
     237                 sub.arg (VBoxGLSettingsNetwork::tr ("Upper Bound"))
     238                    .arg (mDhcpUpperAddress.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "bound")
    239239                                                      : mDhcpUpperAddress);
    240240        tip += buffer;
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsNetwork.cpp

    r18235 r18381  
    189189            QString name (mDetails->currentName (type));
    190190            info += line.arg (tr ("Adapter", "network"))
    191                         .arg (name.isEmpty() ? tr ("not selected", "adapter") : name);
     191                        .arg (name.isEmpty() ? tr ("Not selected", "adapter") : name);
    192192            break;
    193193        }
     
    196196            QString name (mDetails->currentName (type));
    197197            info += line.arg (tr ("Network", "internal"))
    198                         .arg (name.isEmpty() ? tr ("not selected", "network") : name);
     198                        .arg (name.isEmpty() ? tr ("Not selected", "network") : name);
    199199            break;
    200200        }
     
    203203            QString name (mDetails->currentName (type));
    204204            info += line.arg (tr ("Interface", "network"))
    205                         .arg (name.isEmpty() ? tr ("not selected", "interface") : name);
     205                        .arg (name.isEmpty() ? tr ("Not selected", "interface") : name);
    206206            break;
    207207        }
     
    214214    QString macAddress (mDetails->property ("MAC_Address").toString());
    215215    info += line.arg (tr ("MAC Address"))
    216                 .arg (macAddress.isEmpty() ? tr ("not selected", "address") : macAddress);
     216                .arg (macAddress.isEmpty() ? tr ("Not selected", "address") : macAddress);
    217217    bool cableConnected (mDetails->property ("Cable_Connected").toBool());
    218218    info += line.arg (tr ("Cable"))
    219                 .arg (cableConnected ? tr ("connected", "cable") : tr ("not connected", "cable"));
     219                .arg (cableConnected ? tr ("Connected", "cable") : tr ("Not connected", "cable"));
    220220#endif
    221221
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