VirtualBox

Ignore:
Timestamp:
May 7, 2008 3:28:49 PM (17 years ago)
Author:
vboxsync
Message:
  1. Reusing some tr() from VBoxGlobal context in Session Information Dialog.
  2. Adding comments to some tr() to make them more transparent for translators.
  3. Adding Guest Additions Version info into Session Information Dialog.
File:
1 edited

Legend:

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

    r8490 r8667  
    479479            resolution += QString ("x%1").arg (bpp);
    480480        QString virt = console.GetDebugger().GetHWVirtExEnabled() ?
    481             tr ("Enabled") : tr ("Disabled");
     481            VBoxGlobal::tr ("Enabled", "details report (VT-x/AMD-V)") :
     482            VBoxGlobal::tr ("Disabled", "details report (VT-x/AMD-V)");
     483        QString addInfo = console.GetGuest().GetAdditionsVersion();
     484        uint addVersion = addInfo.toUInt();
     485        QString addVerisonStr = QString ("%1.%2")
     486            .arg (RT_HIWORD (addVersion)).arg (RT_LOWORD (addVersion));
    482487
    483488        result += hdrRow.arg ("state_running_16px.png").arg (tr ("Runtime Attributes"));
    484489        result += bdyRow.arg (tr ("Screen Resolution")).arg (resolution) +
    485                   bdyRow.arg (tr ("Hardware Virtualization")).arg (virt);
     490                  bdyRow.arg (VBoxGlobal::tr ("VT-x/AMD-V", "details report")).arg (virt);
     491        result += bdyRow.arg (tr ("Additions Version")).arg (addVerisonStr);
    486492        result += paragraph;
    487493    }
     
    513519
    514520    /* Network Adapters Statistics. */
    515     result += hdrRow.arg ("nw_16px.png").arg (tr ("Network Adapter Statistics"));
    516     result += formatAdapter (tr ("Adapter 1"), 0, 16, 17);
     521    result += hdrRow.arg ("nw_16px.png")
     522        .arg (tr ("Network Adapter Statistics"));
     523    result += formatAdapter (VBoxGlobal::tr ("Adapter %1",
     524        "details report (network)").arg (1), 0, 16, 17);
    517525    result += interline;
    518     result += formatAdapter (tr ("Adapter 2"), 1, 18, 19);
     526    result += formatAdapter (VBoxGlobal::tr ("Adapter %1",
     527        "details report (network)").arg (2), 1, 18, 19);
    519528    result += interline;
    520     result += formatAdapter (tr ("Adapter 3"), 2, 20, 21);
     529    result += formatAdapter (VBoxGlobal::tr ("Adapter %1",
     530        "details report (network)").arg (3), 2, 20, 21);
    521531    result += interline;
    522     result += formatAdapter (tr ("Adapter 4"), 3, 22, 23);
     532    result += formatAdapter (VBoxGlobal::tr ("Adapter %1",
     533        "details report (network)").arg (4), 3, 22, 23);
    523534
    524535    /* Show full composed page. */
     
    545556    }
    546557    else
    547         result += composeArticle (tr ("Not attached"), -1, -1);
     558        result += composeArticle (tr ("Not attached", "information dialog (hard disk)"), -1, -1);
    548559    return result;
    549560}
     
    564575    result += na.GetEnabled() ?
    565576        composeArticle ("B", aStart, aFinish) :
    566         composeArticle (tr ("Disabled"), -1, -1);
     577        composeArticle (tr ("Disabled", "information dialog (network adapter)"), -1, -1);
    567578    return result;
    568579}
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