VirtualBox

Changeset 96487 in vbox


Ignore:
Timestamp:
Aug 25, 2022 11:37:31 AM (2 years ago)
Author:
vboxsync
Message:

FE/Qt: VirtualBox Manager / Chooser pane: Missed machine-items state translation for on language change.

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

Legend:

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

    r96407 r96487  
    211211            /* Determine VM states: */
    212212            m_enmMachineState = KCloudMachineState_Stopped;
    213             m_strMachineStateName = gpConverter->toString(m_enmMachineState);
    214213            switch (m_enmFakeCloudItemState)
    215214            {
     
    250249            /* Determine VM states: */
    251250            m_enmMachineState = m_fAccessible ? m_comCloudMachine.GetState() : KCloudMachineState_Stopped;
    252             m_strMachineStateName = gpConverter->toString(m_enmMachineState);
    253251            m_machineStateIcon = gpConverter->toIcon(m_enmMachineState);
    254252
     
    351349        if (itemType() == UIVirtualMachineItemType_CloudFake)
    352350        {
    353             /* Update machine/state name: */
     351            /* Update fake machine state name: */
    354352            switch (m_enmFakeCloudItemState)
    355353            {
     
    369367        else
    370368        {
     369            /* Update real machine state name: */
     370            m_strMachineStateName = gpConverter->toString(m_enmMachineState);
     371
    371372            /* Update tool-tip: */
    372373            m_strToolTipText = QString("<nobr><b>%1</b></nobr><br>"
     
    379380    else
    380381    {
     382        /* We have our own translation for Null states: */
     383        m_strMachineStateName = tr("Inaccessible", "VM");
     384
    381385        /* Update tool-tip: */
    382386        m_strToolTipText = tr("<nobr><b>%1</b></nobr><br>"
     
    384388                              "Inaccessible VM tooltip (name)")
    385389                              .arg(m_strName);
    386 
    387         /* We have our own translation for Null states: */
    388         m_strMachineStateName = tr("Inaccessible", "VM");
    389390    }
    390391}
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItemLocal.cpp

    r96407 r96487  
    9494        /* Determine VM states: */
    9595        m_enmMachineState = m_comMachine.GetState();
    96         m_strMachineStateName = gpConverter->toString(m_enmMachineState);
    9796        m_machineStateIcon = gpConverter->toIcon(m_enmMachineState);
    9897        m_enmSessionState = m_comMachine.GetSessionState();
    99         m_strSessionStateName = gpConverter->toString(m_enmSessionState);
    10098
    10199        /* Determine configuration access level: */
     
    281279    if (m_fAccessible)
    282280    {
     281        /* Just use the usual translation for valid states: */
     282        m_strMachineStateName = gpConverter->toString(m_enmMachineState);
     283        m_strSessionStateName = gpConverter->toString(m_enmSessionState);
     284
    283285        /* Update tool-tip: */
    284286        m_strToolTipText = QString("<b>%1</b>").arg(m_strName);
     
    297299    else
    298300    {
     301        /* We have our own translation for Null states: */
     302        m_strMachineStateName = tr("Inaccessible");
     303        m_strSessionStateName = tr("Inaccessible");
     304
    299305        /* Update tool-tip: */
    300306        m_strToolTipText = tr("<nobr><b>%1</b><br></nobr>"
     
    303309                              .arg(m_strSettingsFile)
    304310                              .arg(strDateTime);
    305 
    306         /* We have our own translation for Null states: */
    307         m_strMachineStateName = tr("Inaccessible");
    308         m_strSessionStateName = tr("Inaccessible");
    309     }
    310 }
     311    }
     312}
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