VirtualBox

Ignore:
Timestamp:
Mar 27, 2009 3:13:46 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: tr() update #2 (Global Settings / Network page & VM Settings / Network page).

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

Legend:

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

    r18235 r18404  
    4747
    4848    /* Page getters */
     49    QString name() const { return mName; }
    4950    bool isDhcpClientEnabled() const { return mDhcpClientEnabled; }
    5051    QString interfaceAddress() const { return mInterfaceAddress; }
     
    8182
    8283    /* Host-only Interface */
     84    QString mName;
    8385    bool mDhcpClientEnabled;
    8486    QString mInterfaceAddress;
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGLSettingsNetwork.cpp

    r18393 r18404  
    3434    : QTreeWidgetItem()
    3535    , mChanged (false)
     36    , mName (QString::null)
    3637    , mDhcpClientEnabled (false)
    3738    , mInterfaceAddress (QString::null)
     
    5253    /* Initialization */
    5354    mInterface = aInterface;
     55    mName = mInterface.GetName();
    5456    CDHCPServer dhcp = vboxGlobal().virtualBox().FindDHCPServerByNetworkName (mInterface.GetNetworkName());
    5557    if (dhcp.isNull()) vboxGlobal().virtualBox().CreateDHCPServer (mInterface.GetNetworkName());
    5658    dhcp = vboxGlobal().virtualBox().FindDHCPServerByNetworkName (mInterface.GetNetworkName());
    5759    AssertMsg (!dhcp.isNull(), ("DHCP Server creation failed!\n"));
    58     setText (0, mInterface.GetName());
     60    setText (0, VBoxGLSettingsNetwork::tr ("%1 network", "<adapter name> network").arg (mName));
    5961
    6062    /* Host-only Interface settings */
     
    160162            QHostAddress (mDhcpServerMask).protocol() != QAbstractSocket::IPv4Protocol)
    161163        {
    162             aWarning = VBoxGLSettingsNetwork::tr ("DHCP server mask of <b>%1</b> is wrong").arg (text (0));
     164            aWarning = VBoxGLSettingsNetwork::tr ("DHCP server network mask of <b>%1</b> is wrong").arg (text (0));
    163165            return false;
    164166        }
     
    189191
    190192    /* Host-only Interface information */
    191     buffer = hdr.arg (VBoxGLSettingsNetwork::tr ("Host Interface"))
     193    buffer = hdr.arg (VBoxGLSettingsNetwork::tr ("Adapter"))
    192194                .arg (mDhcpClientEnabled ? VBoxGLSettingsNetwork::tr ("Automatically configured", "interface")
    193195                                         : VBoxGLSettingsNetwork::tr ("Manually configured", "interface"));
     
    200202                    .arg (mInterfaceAddress.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "address")
    201203                                                      : mInterfaceAddress) +
    202                  sub.arg (VBoxGLSettingsNetwork::tr ("IPv4 Mask"))
     204                 sub.arg (VBoxGLSettingsNetwork::tr ("IPv4 Network Mask"))
    203205                    .arg (mInterfaceMask.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "mask")
    204206                                                   : mInterfaceMask);
     
    210212                        .arg (mInterfaceAddress6.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "address")
    211213                                                           : mInterfaceAddress6) +
    212                      sub.arg (VBoxGLSettingsNetwork::tr ("IPv6 Mask Length"))
     214                     sub.arg (VBoxGLSettingsNetwork::tr ("IPv6 Network Mask Length"))
    213215                        .arg (mInterfaceMaskLength6.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "length")
    214216                                                              : mInterfaceMaskLength6);
     
    229231                    .arg (mDhcpServerAddress.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "address")
    230232                                                       : mDhcpServerAddress) +
    231                  sub.arg (VBoxGLSettingsNetwork::tr ("Mask"))
     233                 sub.arg (VBoxGLSettingsNetwork::tr ("Network Mask"))
    232234                    .arg (mDhcpServerMask.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "mask")
    233235                                                    : mDhcpServerMask) +
     
    428430    NetworkItem *item = static_cast <NetworkItem*> (mTwInterfaces->currentItem());
    429431    AssertMsg (item, ("Current item should be selected!\n"));
    430     QString name (item->text (0));
     432    QString name (item->name());
    431433
    432434    /* Asking user about deleting selected network interface */
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsNetwork.cpp

    r18381 r18404  
    202202        {
    203203            QString name (mDetails->currentName (type));
    204             info += line.arg (tr ("Interface", "network"))
    205                         .arg (name.isEmpty() ? tr ("Not selected", "interface") : name);
     204            info += line.arg (tr ("Adapter", "network"))
     205                        .arg (name.isEmpty() ? tr ("Not selected", "adapter") : name);
    206206            break;
    207207        }
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsNetworkDetails.cpp

    r18235 r18404  
    167167            if (currentName (aType).isNull())
    168168            {
    169                 aWarning = tr ("no host-only interface is selected");
     169                aWarning = tr ("no host-only adapter is selected");
    170170                return false;
    171171            }
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxGLSettingsNetwork.ui

    r18393 r18404  
    4848    <widget class="QLabel" name="mLbPageName">
    4949     <property name="text">
    50       <string>&amp;Host-only Networks List:</string>
     50      <string>&amp;Host-only Networks:</string>
    5151     </property>
    5252     <property name="buddy">
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxGLSettingsNetworkDetails.ui

    r18235 r18404  
    4444     <widget class="QWidget" name="mTabInterface" >
    4545      <attribute name="title" >
    46        <string>Host-only &amp;Interface</string>
     46       <string>&amp;Adapter</string>
    4747      </attribute>
    4848      <layout class="QGridLayout" >
     
    5050        <widget class="QCheckBox" name="mCbManual" >
    5151         <property name="text" >
    52           <string>&amp;Manual Configuration</string>
     52          <string>Manual &amp;Configuration</string>
    5353         </property>
    5454         <property name="checked" >
     
    5656         </property>
    5757         <property name="toolTip" >
    58           <string>Use manual configuration for this host-only network interface.</string>
     58          <string>Use manual configuration for this host-only network adapter.</string>
    5959         </property>
    6060        </widget>
     
    6363        <widget class="QLabel" name="mLbIPv4" >
    6464         <property name="text" >
    65           <string>IPv4 &amp;Address:</string>
     65          <string>&amp;IPv4 Address:</string>
    6666         </property>
    6767         <property name="alignment" >
     
    8282         </property>
    8383         <property name="toolTip" >
    84           <string>Displays the host IPv4 address for this interface.</string>
     84          <string>Displays the host IPv4 address for this adapter.</string>
    8585         </property>
    8686        </widget>
     
    8989        <widget class="QLabel" name="mLbNMv4" >
    9090         <property name="text" >
    91           <string>IPv4 Network Ma&amp;sk:</string>
     91          <string>IPv4 Network &amp;Mask:</string>
    9292         </property>
    9393         <property name="alignment" >
     
    108108         </property>
    109109         <property name="toolTip" >
    110           <string>Displays the host IPv4 network mask for this interface.</string>
     110          <string>Displays the host IPv4 network mask for this adapter.</string>
    111111         </property>
    112112        </widget>
     
    115115        <widget class="QLabel" name="mLbIPv6" >
    116116         <property name="text" >
    117           <string>IPv6 Add&amp;ress:</string>
     117          <string>I&amp;Pv6 Address:</string>
    118118         </property>
    119119         <property name="alignment" >
     
    134134         </property>
    135135         <property name="toolTip" >
    136           <string>Displays the host IPv6 address for this interface if IPv6 protocol is supported.</string>
     136          <string>Displays the host IPv6 address for this adapter if IPv6 is supported.</string>
    137137         </property>
    138138        </widget>
     
    141141        <widget class="QLabel" name="mLbNMv6" >
    142142         <property name="text" >
    143           <string>IPv6 Network Mask L&amp;ength:</string>
     143          <string>IPv6 Network Mask &amp;Length:</string>
    144144         </property>
    145145         <property name="alignment" >
     
    160160         </property>
    161161         <property name="toolTip" >
    162           <string>Displays the host IPv6 network mask prefix length for this interface if IPv6 protocol is supported.</string>
     162          <string>Displays the host IPv6 network mask prefix length for this adapter if IPv6 is supported.</string>
    163163         </property>
    164164        </widget>
     
    197197        <widget class="QLabel" name="mLbDhcpAddress" >
    198198         <property name="text" >
    199           <string>Server &amp;Address:</string>
     199          <string>Server Add&amp;ress:</string>
    200200         </property>
    201201         <property name="alignment" >
     
    216216         </property>
    217217         <property name="toolTip" >
    218           <string>Displays the address of DHCP server for internal network based on this host-only interface.</string>
     218          <string>Displays the address of the DHCP server servicing the network associated with this host-only adapter.</string>
    219219         </property>
    220220        </widget>
     
    242242         </property>
    243243         <property name="toolTip" >
    244           <string>Displays the network mask of DHCP server for internal network based on this host-only interface.</string>
     244          <string>Displays the network mask of the DHCP server servicing the network associated with this host-only adapter.</string>
    245245         </property>
    246246        </widget>
     
    268268         </property>
    269269         <property name="toolTip" >
    270           <string>Displays the lower address presented by DHCP server for internal network based on this host-only interface.</string>
     270          <string>Displays the lower address bound offered by the DHCP server servicing the network associated with this host-only adapter.</string>
    271271         </property>
    272272        </widget>
     
    294294         </property>
    295295         <property name="toolTip" >
    296           <string>Displays the upper address presented by DHCP server for internal network based on this host-only interface.</string>
     296          <string>Displays the upper address bound offered by the DHCP server servicing the network associated with this host-only adapter.</string>
    297297         </property>
    298298        </widget>
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsNetworkDetails.ui

    r18235 r18404  
    9999    <widget class="QLabel" name="mLbHOI" >
    100100     <property name="text" >
    101       <string>Host-only &amp;Network Interface:</string>
     101      <string>Host-only &amp;Network Adapter:</string>
    102102     </property>
    103103     <property name="alignment" >
     
    118118     </property>
    119119     <property name="toolTip" >
    120       <string>Displays the name of the VirtualBox network interface selected for host-only networking.</string>
     120      <string>Displays the name of the VirtualBox network adapter selected for host-only networking.</string>
    121121     </property>
    122122    </widget>
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