Cross Reference: /yui3/src/intl/tests/manual/intl-widget.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Widget Internationalization Tests</title>
<script type="text/javascript" src="/build/yui/yui.js"></script>
<style type="text/css">
#def, #en, #es {
position:static;
margin-top:1em;
}
</style>
</head>
<body class="yui3-skin-sam">
<script type="text/javascript">
YUI().use("console", function(Y) {
new Y.Console({id:"def", render:true});
Y.log("Default Language");
});
YUI({lang:"en", filter:"raw"}).use("console", function(Y) {
new Y.Console({id:"en", render:true});
Y.log("English");
});
YUI({lang:"es"}).use("console", function(Y) {
var c = new Y.Console({id:"es"});
c.render();
Y.log("EspaƱol");
});
</script>
</body>
</html>