VirtualBox

Changeset 105827 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Aug 22, 2024 5:27:39 PM (7 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164541
Message:

FE/Qt: A bit of similar NLS fixes around the GUI.

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

Legend:

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

    r104586 r105827  
    241241
    242242private:
    243 
    244     /** Holds full error template in "Context description: Error description" form. */
    245     QString m_strErrorTemplate;
    246243
    247244    /** Holds the last cached error of the reply. */
     
    760757    , m_pThread(0)
    761758{
    762     /* Prepare full error template: */
    763     m_strErrorTemplate = tr("%1: %2", "Context description: Error description");
    764 
    765759    /* Create and run reply thread: */
    766760    m_pThread = new UINetworkReplyPrivateThread(type, url, strTarget, requestHeaders);
     
    787781    {
    788782        case UINetworkReply::NoError:                     break;
    789         case UINetworkReply::RemoteHostClosedError:       return m_strErrorTemplate.arg(m_pThread->context(), tr("Unable to initialize HTTP library"));
    790         case UINetworkReply::UrlNotFoundError:            return m_strErrorTemplate.arg(m_pThread->context(), tr("Url not found on the server"));
    791         case UINetworkReply::HostNotFoundError:           return m_strErrorTemplate.arg(m_pThread->context(), tr("Host not found"));
    792         case UINetworkReply::ContentAccessDenied:         return m_strErrorTemplate.arg(m_pThread->context(), tr("Content access denied"));
    793         case UINetworkReply::ProtocolFailure:             return m_strErrorTemplate.arg(m_pThread->context(), tr("Protocol failure"));
    794         case UINetworkReply::ConnectionRefusedError:      return m_strErrorTemplate.arg(m_pThread->context(), tr("Connection refused"));
    795         case UINetworkReply::SslHandshakeFailedError:     return m_strErrorTemplate.arg(m_pThread->context(), tr("SSL authentication failed"));
    796         case UINetworkReply::AuthenticationRequiredError: return m_strErrorTemplate.arg(m_pThread->context(), tr("Wrong SSL certificate format"));
    797         case UINetworkReply::ContentReSendError:          return m_strErrorTemplate.arg(m_pThread->context(), tr("Content moved"));
    798         case UINetworkReply::ProxyNotFoundError:          return m_strErrorTemplate.arg(m_pThread->context(), tr("Proxy not found"));
    799         default:                                          return m_strErrorTemplate.arg(m_pThread->context(), tr("Unknown reason"));
     783        case UINetworkReply::RemoteHostClosedError:       return QString("%1: %2").arg(m_pThread->context(), tr("Unable to initialize HTTP library"));
     784        case UINetworkReply::UrlNotFoundError:            return QString("%1: %2").arg(m_pThread->context(), tr("Url not found on the server"));
     785        case UINetworkReply::HostNotFoundError:           return QString("%1: %2").arg(m_pThread->context(), tr("Host not found"));
     786        case UINetworkReply::ContentAccessDenied:         return QString("%1: %2").arg(m_pThread->context(), tr("Content access denied"));
     787        case UINetworkReply::ProtocolFailure:             return QString("%1: %2").arg(m_pThread->context(), tr("Protocol failure"));
     788        case UINetworkReply::ConnectionRefusedError:      return QString("%1: %2").arg(m_pThread->context(), tr("Connection refused"));
     789        case UINetworkReply::SslHandshakeFailedError:     return QString("%1: %2").arg(m_pThread->context(), tr("SSL authentication failed"));
     790        case UINetworkReply::AuthenticationRequiredError: return QString("%1: %2").arg(m_pThread->context(), tr("Wrong SSL certificate format"));
     791        case UINetworkReply::ContentReSendError:          return QString("%1: %2").arg(m_pThread->context(), tr("Content moved"));
     792        case UINetworkReply::ProxyNotFoundError:          return QString("%1: %2").arg(m_pThread->context(), tr("Proxy not found"));
     793        default:                                          return QString("%1: %2").arg(m_pThread->context(), tr("Unknown reason"));
    800794    }
    801795    /* Return null-string by default: */
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceEditorWidget.cpp

    r105550 r105827  
    288288    {
    289289        case ApplianceModelItemType_VirtualSystem:
    290             return tr("%1", "col.1 text")
    291                      .arg(data(ApplianceViewSection_Description, Qt::DisplayRole).toString());
     290            return data(ApplianceViewSection_Description, Qt::DisplayRole).toString();
    292291        case ApplianceModelItemType_VirtualHardware:
    293             return tr("%1: %2", "col.1 text: col.2 text")
    294                      .arg(data(ApplianceViewSection_Description, Qt::DisplayRole).toString())
    295                      .arg(data(ApplianceViewSection_ConfigValue, Qt::DisplayRole).toString());
     292            return QString("%1: %2")
     293                           .arg(data(ApplianceViewSection_Description, Qt::DisplayRole).toString())
     294                           .arg(data(ApplianceViewSection_ConfigValue, Qt::DisplayRole).toString());
    296295        default:
    297296            break;
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/graphics/UIGraphicsTextPane.cpp

    r104585 r105827  
    9999        /* Return the description: */
    100100        if (enmTextRole == QAccessible::Description)
    101             return UIGraphicsTextPane::tr("%1: %2", "'key: value', like 'Name: MyVM'").arg(line()->string1(), line()->string2());
     101            return QString("%1: %2").arg(line()->string1(), line()->string2());
    102102
    103103        /* Null-string by default: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMSummaryPage.cpp

    r105826 r105827  
    181181{
    182182    return   m_data.isValid()
    183            ? UIWizardNewVMSummaryPage::tr("%1: %2", "col.1 text: col.2 text").arg(m_strText, m_data.toString())
    184            : UIWizardNewVMSummaryPage::tr("%1", "col.1 text").arg(m_strText);
     183           ? QString("%1: %2").arg(m_strText, m_data.toString())
     184           : m_strText;
    185185}
    186186
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