VirtualBox

Changeset 30210 in vbox


Ignore:
Timestamp:
Jun 15, 2010 4:24:38 PM (14 years ago)
Author:
vboxsync
Message:

Frontends/VirtualBox: clean up size suffix translations, all should refer to VBoxGlobal

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

Legend:

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

    r29484 r30210  
    217217                            }
    218218                        case KVirtualSystemDescriptionType_OS: v = vboxGlobal().vmGuestOSTypeDescription (mConfigValue); break;
    219                         case KVirtualSystemDescriptionType_Memory: v = mConfigValue + " " + VBoxApplianceEditorWgt::tr ("MB", "size suffix MBytes=1024 KBytes"); break;
     219                        case KVirtualSystemDescriptionType_Memory: v = mConfigValue + " " + VBoxGlobal::tr ("MB", "size suffix MBytes=1024 KBytes"); break;
    220220                        case KVirtualSystemDescriptionType_SoundCard: v = vboxGlobal().toString (static_cast<KAudioControllerType> (mConfigValue.toInt())); break;
    221221                        case KVirtualSystemDescriptionType_NetworkAdapter: v = vboxGlobal().toString (static_cast<KNetworkAdapterType> (mConfigValue.toInt())); break;
     
    397397                    QSpinBox *e = new QSpinBox (aParent);
    398398                    e->setRange (VBoxApplianceEditorWgt::minGuestRAM(), VBoxApplianceEditorWgt::maxGuestRAM());
    399                     e->setSuffix (" " + VBoxApplianceEditorWgt::tr ("MB", "size suffix MBytes=1024 KBytes"));
     399                    e->setSuffix (" " + VBoxGlobal::tr ("MB", "size suffix MBytes=1024 KBytes"));
    400400                    editor = e;
    401401                    break;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UINewVMWzd.cpp

    r30192 r30210  
    283283
    284284    /* Translate minimum & maximum 'ram' field values */
    285     m_pRamMin->setText(QString("%1 %2").arg(m_pRamSlider->minRAM()).arg(tr("MB", "size suffix MBytes=1024 KBytes")));
    286     m_pRamMax->setText(QString("%1 %2").arg(m_pRamSlider->maxRAM()).arg(tr("MB", "size suffix MBytes=1024 KBytes")));
     285    m_pRamMin->setText(QString("%1 %2").arg(m_pRamSlider->minRAM()).arg(VBoxGlobal::tr("MB", "size suffix MBytes=1024 KBytes")));
     286    m_pRamMax->setText(QString("%1 %2").arg(m_pRamSlider->maxRAM()).arg(VBoxGlobal::tr("MB", "size suffix MBytes=1024 KBytes")));
    287287}
    288288
     
    590590    .arg(tr("Name", "summary"), name)
    591591    .arg(tr("OS Type", "summary"), type)
    592     .arg(tr("Base Memory", "summary"), ram, tr("MB", "size suffix MBytes=1024KBytes"))
     592    .arg(tr("Base Memory", "summary"), ram, VBoxGlobal::tr("MB", "size suffix MBytes=1024KBytes"))
    593593    ;
    594594    /* Feat summary to 3 lines */
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