VirtualBox

Changeset 56106 in vbox


Ignore:
Timestamp:
May 27, 2015 3:47:23 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
100631
Message:

FE/Qt: VM settings: System page: NLS consistency fix.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.cpp

    r54912 r56106  
    444444
    445445    /* Retranslate the memory slider legend: */
    446     m_pLabelMemoryMin->setText(tr("<qt>%1&nbsp;MB</qt>").arg(m_pSliderMemorySize->minRAM()));
    447     m_pLabelMemoryMax->setText(tr("<qt>%1&nbsp;MB</qt>").arg(m_pSliderMemorySize->maxRAM()));
     446    m_pEditorMemorySize->setSuffix(QString(" %1").arg(tr("MB")));
     447    m_pLabelMemoryMin->setText(tr("%1 MB").arg(m_pSliderMemorySize->minRAM()));
     448    m_pLabelMemoryMax->setText(tr("%1 MB").arg(m_pSliderMemorySize->maxRAM()));
    448449
    449450    /* Retranslate the cpu slider legend: */
    450     m_pLabelCPUMin->setText(tr("<qt>%1&nbsp;CPU</qt>", "%1 is 1 for now").arg(m_uMinGuestCPU));
    451     m_pLabelCPUMax->setText(tr("<qt>%1&nbsp;CPUs</qt>", "%1 is host cpu count * 2 for now").arg(m_uMaxGuestCPU));
     451    m_pLabelCPUMin->setText(tr("%1 CPU", "%1 is 1 for now").arg(m_uMinGuestCPU));
     452    m_pLabelCPUMax->setText(tr("%1 CPUs", "%1 is host cpu count * 2 for now").arg(m_uMaxGuestCPU));
    452453
    453454    /* Retranslate the cpu cap slider legend: */
    454     m_pLabelCPUExecCapMin->setText(tr("<qt>%1%</qt>", "Min CPU execution cap in %").arg(m_uMinGuestCPUExecCap));
    455     m_pLabelCPUExecCapMax->setText(tr("<qt>%1%</qt>", "Max CPU execution cap in %").arg(m_uMaxGuestCPUExecCap));
     455    m_pLabelCPUExecCapMin->setText(tr("%1%", "Min CPU execution cap in %").arg(m_uMinGuestCPUExecCap));
     456    m_pLabelCPUExecCapMax->setText(tr("%1%", "Max CPU execution cap in %").arg(m_uMaxGuestCPUExecCap));
    456457
    457458    /* Retranslate combo-boxes: */
     
    470471    m_pLabelMemoryMin->setEnabled(isMachineOffline());
    471472    m_pLabelMemoryMax->setEnabled(isMachineOffline());
    472     m_pLabelMemoryUnits->setEnabled(isMachineOffline());
    473473    m_pSliderMemorySize->setEnabled(isMachineOffline());
    474474    m_pEditorMemorySize->setEnabled(isMachineOffline());
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.ui

    r51989 r56106  
    8888       </item>
    8989       <item row="0" column="3">
    90         <layout class="QHBoxLayout">
    91          <item>
    92           <widget class="QSpinBox" name="m_pEditorMemorySize">
    93            <property name="whatsThis">
    94             <string>Controls the amount of memory provided to the virtual machine. If you assign too much, the machine might not start.</string>
    95            </property>
    96           </widget>
    97          </item>
    98          <item>
    99           <widget class="QLabel" name="m_pLabelMemoryUnits">
    100            <property name="text">
    101             <string>MB</string>
    102            </property>
    103           </widget>
    104          </item>
    105         </layout>
     90        <widget class="QSpinBox" name="m_pEditorMemorySize">
     91         <property name="whatsThis">
     92          <string>Controls the amount of memory provided to the virtual machine. If you assign too much, the machine might not start.</string>
     93         </property>
     94        </widget>
    10695       </item>
    10796       <item row="2" column="0">
     
    344333        <widget class="QCheckBox" name="m_pCheckBoxUseUTC" >
    345334         <property name="whatsThis" >
    346           <string>If checked, the RTC device will report the time in UTC, otherwise in local (host) time. Unix usually expects the hardware clock to be set to UTC.</string>
     335          <string>When checked, the RTC device will report the time in UTC, otherwise in local (host) time. Unix usually expects the hardware clock to be set to UTC.</string>
    347336         </property>
    348337         <property name="text" >
     
    502491         <property name="whatsThis">
    503492          <string>Limits the amount of time that each virtual CPU is allowed to run for. Each virtual CPU will be allowed to use up to this percentage of the processing time available on one physical CPU. The execution cap can be disabled by setting it to 100%. Setting the cap too low can make the machine feel slow to respond.</string>
     493         </property>
     494         <property name="suffix">
     495          <string>%</string>
    504496         </property>
    505497        </widget>
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