Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Unified Diff: chrome/browser/resources/print_preview/print_header.js

Issue 590643002: Move Print Preview onto newer i18nTemplate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update new invitations code Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/print_preview/print_header.js
diff --git a/chrome/browser/resources/print_preview/print_header.js b/chrome/browser/resources/print_preview/print_header.js
index 7c0107d81c65bc344ae9de6a335763aa9cabea82..240b5a9b640ab847ef6680e8319a51303e7a3ad9 100644
--- a/chrome/browser/resources/print_preview/print_header.js
+++ b/chrome/browser/resources/print_preview/print_header.js
@@ -149,14 +149,14 @@ cr.define('print_preview', function() {
}
var summaryLabel =
- localStrings.getString('printPreviewSheetsLabelSingular');
- var pagesLabel = localStrings.getString('printPreviewPageLabelPlural');
+ loadTimeData.getString('printPreviewSheetsLabelSingular');
+ var pagesLabel = loadTimeData.getString('printPreviewPageLabelPlural');
var saveToPdf = this.destinationStore_.selectedDestination &&
this.destinationStore_.selectedDestination.id ==
print_preview.Destination.GooglePromotedId.SAVE_AS_PDF;
if (saveToPdf) {
- summaryLabel = localStrings.getString('printPreviewPageLabelSingular');
+ summaryLabel = loadTimeData.getString('printPreviewPageLabelSingular');
}
var numPages = this.printTicketStore_.pageRange.getPageNumberSet().size;
@@ -171,18 +171,18 @@ cr.define('print_preview', function() {
if (numSheets > 1) {
summaryLabel = saveToPdf ? pagesLabel :
- localStrings.getString('printPreviewSheetsLabelPlural');
+ loadTimeData.getString('printPreviewSheetsLabelPlural');
}
var html;
if (numPages != numSheets) {
- html = localStrings.getStringF('printPreviewSummaryFormatLong',
+ html = loadTimeData.getStringF('printPreviewSummaryFormatLong',
'<b>' + numSheets + '</b>',
'<b>' + summaryLabel + '</b>',
numPages,
pagesLabel);
} else {
- html = localStrings.getStringF('printPreviewSummaryFormatShort',
+ html = loadTimeData.getStringF('printPreviewSummaryFormatShort',
'<b>' + numSheets + '</b>',
'<b>' + summaryLabel + '</b>');
}
@@ -203,7 +203,7 @@ cr.define('print_preview', function() {
this.getChildElement('button.print').classList.add('loading');
this.getChildElement('button.cancel').classList.add('loading');
this.getChildElement('.summary').innerHTML =
- localStrings.getString('printing');
+ loadTimeData.getString('printing');
}
cr.dispatchSimpleEvent(this, PrintHeader.EventType.PRINT_BUTTON_CLICK);
},
@@ -229,7 +229,7 @@ cr.define('print_preview', function() {
this.destinationStore_.selectedDestination.id ==
print_preview.Destination.GooglePromotedId.DOCS);
this.getChildElement('button.print').textContent =
- localStrings.getString(isSaveLabel ? 'saveButton' : 'printButton');
+ loadTimeData.getString(isSaveLabel ? 'saveButton' : 'printButton');
if (this.destinationStore_.selectedDestination) {
this.getChildElement('button.print').focus();
}

Powered by Google App Engine
This is Rietveld 408576698