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

Side by Side Diff: chrome/test/data/extensions/samples/i18n/toolstrip.html

Issue 174116: chrome.i18n API (accept languages part 1) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/data/extensions/samples/i18n/manifest.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 <!--
2 Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
3 source code is governed by a BSD-style license that can be found in the
4 LICENSE file.
5 -->
6
7 <html>
8 <head>
9 <script>
10 function getAcceptLanguages() {
11 chrome.i18n.getAcceptLanguages(function(languageList) {
12 var languages = "";
13 for (var i = 0; i < languageList.length; i++) {
14 if (i == languageList.length - 1)
15 languages += languageList[i];
16 else
17 languages += languageList[i] + ",";
18 }
19 document.getElementById("languageSpan").innerHTML = languages;
20 })
21 }
22 </script>
23 </head>
24 <body>
25 <div class="toolstrip-button" onclick="getAcceptLanguages();">
26 <span id="languageSpan">GetAcceptLanguage</span>
27 </div>
28 </body>
29 </html>
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/samples/i18n/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698