VirtualBox

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


Ignore:
Timestamp:
Sep 27, 2017 2:12:20 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: A bit of NLS fixes for UIErrorString class (s.a. r117578).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIErrorString.cpp

    r68435 r68888  
    124124    return QString("<table bgcolor=#EEEEEE border=0 cellspacing=5 cellpadding=0 width=100%>"
    125125                   "<tr><td>%1</td><td><tt>%2</tt></td></tr></table>")
    126                    .arg(QObject::tr("Result&nbsp;Code: ", "error info"))
     126                   .arg(QApplication::translate("UIErrorString", "Result&nbsp;Code: ", "error info"))
    127127                   .arg(formatRCFull(comProgress.GetResultCode()))
    128128                   .prepend("<!--EOM-->") /* move to details */;
     
    195195        {
    196196            strFormatted += QString("<tr><td>%1</td><td><tt>%2</tt></td></tr>")
    197                 .arg(QObject::tr("Result&nbsp;Code: ", "error info"))
     197                .arg(QApplication::translate("UIErrorString", "Result&nbsp;Code: ", "error info"))
    198198                .arg(formatRCFull(comInfo.resultCode()));
    199199        }
     
    201201        if (fHaveComponent)
    202202            strFormatted += QString("<tr><td>%1</td><td>%2</td></tr>")
    203                 .arg(QObject::tr("Component: ", "error info"), comInfo.component());
     203                .arg(QApplication::translate("UIErrorString", "Component: ", "error info"), comInfo.component());
    204204
    205205        if (fHaveInterfaceID)
     
    209209                s = comInfo.interfaceName() + ' ' + s;
    210210            strFormatted += QString("<tr><td>%1</td><td>%2</td></tr>")
    211                 .arg(QObject::tr("Interface: ", "error info"), s);
     211                .arg(QApplication::translate("UIErrorString", "Interface: ", "error info"), s);
    212212        }
    213213
     
    218218                s = comInfo.calleeName() + ' ' + s;
    219219            strFormatted += QString("<tr><td>%1</td><td>%2</td></tr>")
    220                 .arg(QObject::tr("Callee: ", "error info"), s);
     220                .arg(QApplication::translate("UIErrorString", "Callee: ", "error info"), s);
    221221        }
    222222    }
     
    226226    {
    227227        strFormatted += QString("<tr><td>%1</td><td><tt>%2</tt></td></tr>")
    228             .arg(QObject::tr("Callee&nbsp;RC: ", "error info"))
     228            .arg(QApplication::translate("UIErrorString", "Callee&nbsp;RC: ", "error info"))
    229229            .arg(formatRCFull(wrapperRC));
    230230    }
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