VirtualBox

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


Ignore:
Timestamp:
May 8, 2008 10:20:46 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
30636
Message:

FE/Qt: NLS fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMInformationDlg.ui.h

    r8673 r8698  
    483483        QString addInfo = console.GetGuest().GetAdditionsVersion();
    484484        uint addVersion = addInfo.toUInt();
    485         QString addVerisonStr = !addInfo.isNull() ? QString ("%1.%2")
    486             .arg (RT_HIWORD (addVersion)).arg (RT_LOWORD (addVersion)) :
    487             tr ("Not detected", "information dialog (guest additions version)");
     485        QString addVerisonStr = !addInfo.isNull() ?
     486            tr ("Version %1.%2", "guest additions")
     487                .arg (RT_HIWORD (addVersion)).arg (RT_LOWORD (addVersion)) :
     488            tr ("Not Detected", "guest additions");
    488489
    489490        result += hdrRow.arg ("state_running_16px.png").arg (tr ("Runtime Attributes"));
    490491        result += bdyRow.arg (tr ("Screen Resolution")).arg (resolution) +
    491492                  bdyRow.arg (VBoxGlobal::tr ("VT-x/AMD-V", "details report")).arg (virt);
    492         result += bdyRow.arg (tr ("Additions Version")).arg (addVerisonStr);
     493        result += bdyRow.arg (tr ("Guest Additions")).arg (addVerisonStr);
    493494        result += paragraph;
    494495    }
     
    520521
    521522    /* Network Adapters Statistics. */
    522     result += hdrRow.arg ("nw_16px.png")
    523         .arg (tr ("Network Adapter Statistics"));
    524     result += formatAdapter (VBoxGlobal::tr ("Adapter %1",
    525         "details report (network)").arg (1), 0, 16, 17);
    526     result += interline;
    527     result += formatAdapter (VBoxGlobal::tr ("Adapter %1",
    528         "details report (network)").arg (2), 1, 18, 19);
    529     result += interline;
    530     result += formatAdapter (VBoxGlobal::tr ("Adapter %1",
    531         "details report (network)").arg (3), 2, 20, 21);
    532     result += interline;
    533     result += formatAdapter (VBoxGlobal::tr ("Adapter %1",
    534         "details report (network)").arg (4), 3, 22, 23);
     523    {
     524        result += hdrRow.arg ("nw_16px.png")
     525            .arg (tr ("Network Adapter Statistics"));
     526        ulong count = vboxGlobal().virtualBox()
     527            .GetSystemProperties().GetNetworkAdapterCount();
     528        for (ulong slot = 0; slot < count; ++ slot)
     529        {
     530            result += formatAdapter (
     531                VBoxGlobal::tr ("Adapter %1", "details report (network)")
     532                .arg (slot), slot, 16 + slot * 2, 17 + slot * 2);
     533            if (slot < count - 1)
     534                result += interline;
     535        }
     536    }
    535537
    536538    /* Show full composed page. */
     
    557559    }
    558560    else
    559         result += composeArticle (tr ("Not attached", "information dialog (hard disk)"), -1, -1);
     561        result += composeArticle (tr ("Not Attached", "hard disk"), -1, -1);
    560562    return result;
    561563}
     
    576578    result += na.GetEnabled() ?
    577579        composeArticle ("B", aStart, aFinish) :
    578         composeArticle (tr ("Disabled", "information dialog (network adapter)"), -1, -1);
     580        composeArticle (tr ("Disabled", "network adapter"), -1, -1);
    579581    return result;
    580582}
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