summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxji@chromium.org <xji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-11 18:21:12 +0000
committerxji@chromium.org <xji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-11 18:21:12 +0000
commit7637e1af29671808db2701fa7d56068b31837815 (patch)
tree3d6a351d0487934db044ac407589659e8c5fd12c
parent11383e6f1d451d78b317c1b7260f6bc22cdbc7e3 (diff)
downloadchromium_src-7637e1af29671808db2701fa7d56068b31837815.zip
chromium_src-7637e1af29671808db2701fa7d56068b31837815.tar.gz
chromium_src-7637e1af29671808db2701fa7d56068b31837815.tar.bz2
Updated extension docs. Mainly to add i18n.html to navigation side bar,
and updated i18n.html with overview and example. BUG=none TEST=none Review URL: http://codereview.chromium.org/199094 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25989 0039d316-1c4b-4281-b951-d872f2087c98
-rwxr-xr-xchrome/common/extensions/docs/api_index.html1
-rwxr-xr-xchrome/common/extensions/docs/api_other.html1
-rwxr-xr-xchrome/common/extensions/docs/autoupdate.html1
-rwxr-xr-xchrome/common/extensions/docs/background_pages.html1
-rwxr-xr-xchrome/common/extensions/docs/bookmarks.html1
-rwxr-xr-xchrome/common/extensions/docs/content_scripts.html1
-rwxr-xr-xchrome/common/extensions/docs/devguide.html2
-rwxr-xr-xchrome/common/extensions/docs/devtools.html1
-rwxr-xr-xchrome/common/extensions/docs/events.html1
-rwxr-xr-xchrome/common/extensions/docs/extension.html1
-rwxr-xr-xchrome/common/extensions/docs/getstarted.html1
-rwxr-xr-xchrome/common/extensions/docs/i18n.html32
-rwxr-xr-xchrome/common/extensions/docs/index.html1
-rwxr-xr-xchrome/common/extensions/docs/manifest.html1
-rwxr-xr-xchrome/common/extensions/docs/match_patterns.html1
-rwxr-xr-xchrome/common/extensions/docs/npapi.html1
-rwxr-xr-xchrome/common/extensions/docs/overview.html1
-rwxr-xr-xchrome/common/extensions/docs/packaging.html1
-rwxr-xr-xchrome/common/extensions/docs/pageActions.html1
-rwxr-xr-xchrome/common/extensions/docs/static/devguide.html1
-rw-r--r--chrome/common/extensions/docs/static/i18n.html24
-rwxr-xr-xchrome/common/extensions/docs/tabs.html1
-rwxr-xr-xchrome/common/extensions/docs/template/api_template.html1
-rwxr-xr-xchrome/common/extensions/docs/test.html1
-rwxr-xr-xchrome/common/extensions/docs/themes.html1
-rwxr-xr-xchrome/common/extensions/docs/toolstrip.html1
-rwxr-xr-xchrome/common/extensions/docs/tut_debugging.html1
-rwxr-xr-xchrome/common/extensions/docs/tutorials.html1
-rwxr-xr-xchrome/common/extensions/docs/windows.html1
-rwxr-xr-xchrome/common/extensions/docs/xhr.html1
-rw-r--r--chrome/test/data/extensions/samples/i18n/toolstrip.html8
31 files changed, 82 insertions, 11 deletions
diff --git a/chrome/common/extensions/docs/api_index.html b/chrome/common/extensions/docs/api_index.html
index 55e7c0e..69e9a26 100755
--- a/chrome/common/extensions/docs/api_index.html
+++ b/chrome/common/extensions/docs/api_index.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/common/extensions/docs/api_other.html b/chrome/common/extensions/docs/api_other.html
index bbd1c16..a2adbff 100755
--- a/chrome/common/extensions/docs/api_other.html
+++ b/chrome/common/extensions/docs/api_other.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/common/extensions/docs/autoupdate.html b/chrome/common/extensions/docs/autoupdate.html
index 32fd7e8..d268031 100755
--- a/chrome/common/extensions/docs/autoupdate.html
+++ b/chrome/common/extensions/docs/autoupdate.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li class="leftNavSelected">Autoupdate</li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/common/extensions/docs/background_pages.html b/chrome/common/extensions/docs/background_pages.html
index e6d9e9b..a03aa5b 100755
--- a/chrome/common/extensions/docs/background_pages.html
+++ b/chrome/common/extensions/docs/background_pages.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/common/extensions/docs/bookmarks.html b/chrome/common/extensions/docs/bookmarks.html
index 17f34e3..bd8fee36b 100755
--- a/chrome/common/extensions/docs/bookmarks.html
+++ b/chrome/common/extensions/docs/bookmarks.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/common/extensions/docs/content_scripts.html b/chrome/common/extensions/docs/content_scripts.html
index 5df208e..bdc30fa 100755
--- a/chrome/common/extensions/docs/content_scripts.html
+++ b/chrome/common/extensions/docs/content_scripts.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/common/extensions/docs/devguide.html b/chrome/common/extensions/docs/devguide.html
index c5d13cb..87a18f4 100755
--- a/chrome/common/extensions/docs/devguide.html
+++ b/chrome/common/extensions/docs/devguide.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
@@ -214,6 +215,7 @@ but here's what we have, so far:
<li><a href="events.html">Events</a></li>
<li><a href="tabs.html">Tabs</a></li>
<li><a href="windows.html">Windows</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li> Implementing the innards of your extension
diff --git a/chrome/common/extensions/docs/devtools.html b/chrome/common/extensions/docs/devtools.html
index 128714c..bb7d9ca 100755
--- a/chrome/common/extensions/docs/devtools.html
+++ b/chrome/common/extensions/docs/devtools.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/common/extensions/docs/events.html b/chrome/common/extensions/docs/events.html
index b35372b..93cdb09 100755
--- a/chrome/common/extensions/docs/events.html
+++ b/chrome/common/extensions/docs/events.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/common/extensions/docs/extension.html b/chrome/common/extensions/docs/extension.html
index 87015e7..7059c2f 100755
--- a/chrome/common/extensions/docs/extension.html
+++ b/chrome/common/extensions/docs/extension.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/common/extensions/docs/getstarted.html b/chrome/common/extensions/docs/getstarted.html
index 74f0959..d8337e7 100755
--- a/chrome/common/extensions/docs/getstarted.html
+++ b/chrome/common/extensions/docs/getstarted.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/common/extensions/docs/i18n.html b/chrome/common/extensions/docs/i18n.html
index 0ca1468..afb8fb2 100755
--- a/chrome/common/extensions/docs/i18n.html
+++ b/chrome/common/extensions/docs/i18n.html
@@ -14,7 +14,7 @@
</script>
<script type="text/javascript" src="js/api_page_generator.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
- <title>chrome.i18n</title></head><body> <div id="container">
+ <title>i18n</title></head><body> <div id="container">
<!-- SUBTEMPLATES: DO NOT MOVE FROM THIS LOCATION -->
<!-- In particular, sub-templates that recurse, must be used by allowing
jstemplate to make a copy of the template in this section which
@@ -86,7 +86,7 @@
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script>
</div>
<div id="pageTitle">
- <h1>chrome.i18n</h1>
+ <h1>i18n</h1>
</div>
</div> <!-- /pageHeader -->
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li class="leftNavSelected">i18n</li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
@@ -141,7 +142,7 @@
<div id="toc">
<p>Contents</p>
<ol>
- <li jsinstance="*0" style="display: none; ">
+ <li style="display: none; ">
<a>h2Name</a>
<ol>
<li>
@@ -193,7 +194,30 @@
<!-- /TABLE OF CONTENTS -->
<!-- STATIC CONTENT PLACEHOLDER -->
- <div id="static"></div>
+ <div id="static"><div id="pageData-title" class="pageData">i18n</div>
+
+<!-- BEGIN AUTHORED CONTENT -->
+<p id="classSummary">
+Use the <code>chrome.i18n</code> module to manipulate the i18n related browser
+settings, such as the accept languages.
+</p>
+
+<h3 id="overview-examples">Examples</h3>
+
+<p>
+The following code gets accept-languages from the browser and display them as a
+string by separating each accept-language with ','.
+</p>
+
+<pre>function getAcceptLanguages() {
+ chrome.i18n.getAcceptLanguages(function(languageList) {
+ var languages = languageList.join(",");
+ document.getElementById("languageSpan").innerHTML = languages;
+ })
+}
+</pre>
+<!-- END AUTHORED CONTENT -->
+</div>
<!-- API PAGE -->
<div class="apiPage">
diff --git a/chrome/common/extensions/docs/index.html b/chrome/common/extensions/docs/index.html
index e298e1f..4dc3623 100755
--- a/chrome/common/extensions/docs/index.html
+++ b/chrome/common/extensions/docs/index.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/common/extensions/docs/manifest.html b/chrome/common/extensions/docs/manifest.html
index 2d37c36..cdce081 100755
--- a/chrome/common/extensions/docs/manifest.html
+++ b/chrome/common/extensions/docs/manifest.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/common/extensions/docs/match_patterns.html b/chrome/common/extensions/docs/match_patterns.html
index b81571e..45a3bc0 100755
--- a/chrome/common/extensions/docs/match_patterns.html
+++ b/chrome/common/extensions/docs/match_patterns.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/common/extensions/docs/npapi.html b/chrome/common/extensions/docs/npapi.html
index a975087..f399c60 100755
--- a/chrome/common/extensions/docs/npapi.html
+++ b/chrome/common/extensions/docs/npapi.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/common/extensions/docs/overview.html b/chrome/common/extensions/docs/overview.html
index c938b95..33232f0 100755
--- a/chrome/common/extensions/docs/overview.html
+++ b/chrome/common/extensions/docs/overview.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/common/extensions/docs/packaging.html b/chrome/common/extensions/docs/packaging.html
index 6f39730..213b5a9 100755
--- a/chrome/common/extensions/docs/packaging.html
+++ b/chrome/common/extensions/docs/packaging.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li class="leftNavSelected">Packaging</li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/common/extensions/docs/pageActions.html b/chrome/common/extensions/docs/pageActions.html
index b9dd800..26450dc 100755
--- a/chrome/common/extensions/docs/pageActions.html
+++ b/chrome/common/extensions/docs/pageActions.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/common/extensions/docs/static/devguide.html b/chrome/common/extensions/docs/static/devguide.html
index 569fd36..8e4a056 100755
--- a/chrome/common/extensions/docs/static/devguide.html
+++ b/chrome/common/extensions/docs/static/devguide.html
@@ -19,6 +19,7 @@ but here's what we have, so far:
<li><a href="events.html">Events</a></li>
<li><a href="tabs.html">Tabs</a></li>
<li><a href="windows.html">Windows</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li> Implementing the innards of your extension
diff --git a/chrome/common/extensions/docs/static/i18n.html b/chrome/common/extensions/docs/static/i18n.html
new file mode 100644
index 0000000..63fb883
--- /dev/null
+++ b/chrome/common/extensions/docs/static/i18n.html
@@ -0,0 +1,24 @@
+<div id="pageData-title" class="pageData">i18n</div>
+
+<!-- BEGIN AUTHORED CONTENT -->
+<p id="classSummary">
+Use the <code>chrome.i18n</code> module to manipulate the i18n related browser
+settings, such as the accept languages.
+</p>
+
+<h3 id="overview-examples">Examples</h3>
+
+<p>
+The following code gets accept-languages from the browser and display them as a
+string by separating each accept-language with ','.
+</p>
+
+<pre>
+function getAcceptLanguages() {
+ chrome.i18n.getAcceptLanguages(function(languageList) {
+ var languages = languageList.join(",");
+ document.getElementById("languageSpan").innerHTML = languages;
+ })
+}
+</pre>
+<!-- END AUTHORED CONTENT -->
diff --git a/chrome/common/extensions/docs/tabs.html b/chrome/common/extensions/docs/tabs.html
index 8df4213..171f083 100755
--- a/chrome/common/extensions/docs/tabs.html
+++ b/chrome/common/extensions/docs/tabs.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/common/extensions/docs/template/api_template.html b/chrome/common/extensions/docs/template/api_template.html
index 90b92d0..014f616 100755
--- a/chrome/common/extensions/docs/template/api_template.html
+++ b/chrome/common/extensions/docs/template/api_template.html
@@ -97,6 +97,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><A href="autoupdate.html">Autoupdate</a></li>
+ <li><A href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/common/extensions/docs/test.html b/chrome/common/extensions/docs/test.html
index 19af114..24682d7 100755
--- a/chrome/common/extensions/docs/test.html
+++ b/chrome/common/extensions/docs/test.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/common/extensions/docs/themes.html b/chrome/common/extensions/docs/themes.html
index 581e9e0..2bc33d1 100755
--- a/chrome/common/extensions/docs/themes.html
+++ b/chrome/common/extensions/docs/themes.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/common/extensions/docs/toolstrip.html b/chrome/common/extensions/docs/toolstrip.html
index 7ff4173..c26beaa 100755
--- a/chrome/common/extensions/docs/toolstrip.html
+++ b/chrome/common/extensions/docs/toolstrip.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/common/extensions/docs/tut_debugging.html b/chrome/common/extensions/docs/tut_debugging.html
index a8f0e6c..8b9ba9b 100755
--- a/chrome/common/extensions/docs/tut_debugging.html
+++ b/chrome/common/extensions/docs/tut_debugging.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/common/extensions/docs/tutorials.html b/chrome/common/extensions/docs/tutorials.html
index 7c912ca..1514090 100755
--- a/chrome/common/extensions/docs/tutorials.html
+++ b/chrome/common/extensions/docs/tutorials.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><div class="leftNavSelected">Tutorials</div>
diff --git a/chrome/common/extensions/docs/windows.html b/chrome/common/extensions/docs/windows.html
index 98a7672..5dfbcbe 100755
--- a/chrome/common/extensions/docs/windows.html
+++ b/chrome/common/extensions/docs/windows.html
@@ -112,6 +112,7 @@
<li><a href="xhr.html">Cross-Origin XHR</a></li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/common/extensions/docs/xhr.html b/chrome/common/extensions/docs/xhr.html
index 07feea5..a4027c6 100755
--- a/chrome/common/extensions/docs/xhr.html
+++ b/chrome/common/extensions/docs/xhr.html
@@ -112,6 +112,7 @@
<li class="leftNavSelected">Cross-Origin XHR</li>
<li><a href="packaging.html">Packaging</a></li>
<li><a href="autoupdate.html">Autoupdate</a></li>
+ <li><a href="i18n.html">i18n</a></li>
</ul>
</li>
<li><a href="tutorials.html"><div>Tutorials</div></a>
diff --git a/chrome/test/data/extensions/samples/i18n/toolstrip.html b/chrome/test/data/extensions/samples/i18n/toolstrip.html
index 3a11625..677535a 100644
--- a/chrome/test/data/extensions/samples/i18n/toolstrip.html
+++ b/chrome/test/data/extensions/samples/i18n/toolstrip.html
@@ -9,13 +9,7 @@ LICENSE file.
<script>
function getAcceptLanguages() {
chrome.i18n.getAcceptLanguages(function(languageList) {
- var languages = "";
- for (var i = 0; i < languageList.length; i++) {
- if (i == languageList.length - 1)
- languages += languageList[i];
- else
- languages += languageList[i] + ",";
- }
+ var languages = languageList.join(",");
document.getElementById("languageSpan").innerHTML = languages;
})
}