~jocave/checkbox/hybrid-amd-gpu-mods

« back to all changes in this revision

Viewing changes to checkbox-touch/checkbox-touch.qml

  • Committer: Po-Hsu Lin
  • Date: 2016-05-18 07:21:38 UTC
  • mto: This revision was merged to the branch mainline in revision 4358.
  • Revision ID: po-hsu.lin@canonical.com-20160518072138-dbtj02ahad32g3zb
cbt: Make i18n string easier to translate.

Remove extra space and typo correction.
Regroup string with arg(), to make it more complete to translator.

Show diffs side-by-side

added added

removed removed

Lines of Context:
281
281
        onRerunLast: app.resumeSession(true, processNextTest)
282
282
        onContinueSession: app.resumeSession(false, processNextTest)
283
283
        resumeText: i18n.tr("Checkbox session got suspended.\nDo you want \
284
 
 to rerun last test, continue to the next test, or start a new session?")
 
284
to rerun last test, continue to the next test, or start a new session?")
285
285
        onRestartSession: {
286
286
            pageStack.clear();
287
287
            pageStack.push(welcomePage);
435
435
    function createPage(url, test) {
436
436
        var pageComponent = Qt.createComponent(Qt.resolvedUrl(url));
437
437
        if (pageComponent.status == Component.Error) {
438
 
            var msg = i18n.tr("Could not create component '") + url + "'\n" + pageComponent.errorString();
 
438
            var msg = i18n.tr("Could not create component '%1'\n").arg(url) + pageComponent.errorString();
439
439
            console.error(msg);
440
440
            ErrorLogic.showError(mainView, msg, Qt.quit, i18n.tr("Quit"));
441
441
        } else {
573
573
                    }
574
574
                    CbtDialogLogic.showDialog(
575
575
                        resultsPage,
576
 
                        i18n.tr("Report has been submited.\n" + s),
 
576
                        i18n.tr("Report has been submitted.\n" + s),
577
577
                        [{"text": i18n.tr("OK"), "color": UbuntuColors.green}]);
578
578
                },
579
579
                function(error) {