summaryrefslogtreecommitdiffstats
path: root/chrome/common/jstemplate_builder.cc
diff options
context:
space:
mode:
authorarv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-17 20:53:12 +0000
committerarv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-17 20:53:12 +0000
commitc9869d09775d613ba4d8772868b0924e5e9bd189 (patch)
tree1dc59625c61c99b5bb730ca7f3b0ab5598f6c37d /chrome/common/jstemplate_builder.cc
parentf9f152b2873ba3cf8f2db2fb77b261cb243503f6 (diff)
downloadchromium_src-c9869d09775d613ba4d8772868b0924e5e9bd189.zip
chromium_src-c9869d09775d613ba4d8772868b0924e5e9bd189.tar.gz
chromium_src-c9869d09775d613ba4d8772868b0924e5e9bd189.tar.bz2
Fix issue where the i18n template logic was not applied to the document element.
TBR=glen@chromium.org BUG=16965 TEST=Start with --lang=he and makes sure UI is in RTL mode Review URL: http://codereview.chromium.org/159026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20997 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/jstemplate_builder.cc')
-rw-r--r--chrome/common/jstemplate_builder.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/common/jstemplate_builder.cc b/chrome/common/jstemplate_builder.cc
index b47fed1..bb3a78f 100644
--- a/chrome/common/jstemplate_builder.cc
+++ b/chrome/common/jstemplate_builder.cc
@@ -108,7 +108,7 @@ void AppendI18nTemplateSourceHtml(std::string* output) {
void AppendI18nTemplateProcessHtml(std::string* output) {
output->append("<script>");
- output->append("i18nTemplate.process(document.documentElement, ");
+ output->append("i18nTemplate.process(document, ");
output->append("templateData);");
output->append("</script>");
}