summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/static/i18n.html
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 /chrome/common/extensions/docs/static/i18n.html
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
Diffstat (limited to 'chrome/common/extensions/docs/static/i18n.html')
-rw-r--r--chrome/common/extensions/docs/static/i18n.html24
1 files changed, 24 insertions, 0 deletions
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 -->