diff options
-rw-r--r-- | chrome/browser/dom_ui/print_ui.cc | 7 | ||||
-rw-r--r-- | chrome/browser/resources/print_tab.html | 4 |
2 files changed, 5 insertions, 6 deletions
diff --git a/chrome/browser/dom_ui/print_ui.cc b/chrome/browser/dom_ui/print_ui.cc index 82b2396..574abda 100644 --- a/chrome/browser/dom_ui/print_ui.cc +++ b/chrome/browser/dom_ui/print_ui.cc @@ -46,8 +46,7 @@ void PrintUIHTMLSource::StartDataRequest(const std::string& path, int request_id) { // Setup a dictionary so that the html page could read the values. DictionaryValue localized_strings; - localized_strings.SetString(L"title", - l10n_util::GetString(IDS_PRINT)); + localized_strings.SetString(L"title", l10n_util::GetString(IDS_PRINT)); SetFontAndTextDirection(&localized_strings); @@ -55,8 +54,8 @@ void PrintUIHTMLSource::StartDataRequest(const std::string& path, static const StringPiece print_html( ResourceBundle::GetSharedInstance().GetRawDataResource( IDR_PRINT_TAB_HTML)); - const std::string full_html = jstemplate_builder::GetTemplateHtml( - print_html, &localized_strings, "t"); + const std::string full_html = jstemplate_builder::GetI18nTemplateHtml( + print_html, &localized_strings); // Load the print html page into the tab contents. scoped_refptr<RefCountedBytes> html_bytes(new RefCountedBytes); diff --git a/chrome/browser/resources/print_tab.html b/chrome/browser/resources/print_tab.html index 3b6ca46..8c74d2f 100644 --- a/chrome/browser/resources/print_tab.html +++ b/chrome/browser/resources/print_tab.html @@ -1,8 +1,8 @@ <!DOCTYPE html> -<html id="t" > +<html i18n-values="dir:textdirection"> <head> <meta charset="utf-8"> - <title jscontent="title"></title> + <title i18n-content="title"></title> <link rel="stylesheet" href="print_tab.css"> </head> <body> |