File tree 3 files changed +46
-3
lines changed
3 files changed +46
-3
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+
4
+ < html xmlns ="http://www.w3.org/1999/xhtml " xml:lang ="en " lang ="en ">
5
+
6
+ < head >
7
+ < meta http-equiv ="Content-Type " content ="text/html; charset=utf-8 "/>
8
+ < title > Localize Test</ title >
9
+ < script src ="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js " type ="text/javascript " charset ="utf-8 "> </ script >
10
+ < script src ="../../dist/jquery.localize.min.js " type ="text/javascript " charset ="utf-8 "> </ script >
11
+ </ head >
12
+
13
+ < body >
14
+ < h1 > Test localization...</ h1 >
15
+ < h2 data-localize ="app.name "> Waiting for server response...</ h2 >
16
+ < h3 data-localize ="app.version "> Waiting for server response...</ h3 >
17
+ < p data-localize ="app.description ">
18
+ Waiting for server response...
19
+ </ p >
20
+
21
+ < script type ="text/javascript " charset ="utf-8 ">
22
+ $ ( function ( ) {
23
+ $ . ajax ( {
24
+ method : "GET" ,
25
+ url : "res/ws-response" ,
26
+ data : { lang : "en" } ,
27
+ dataType : "json" ,
28
+ success : function ( data ) {
29
+ $ ( "[data-localize]" ) . localize ( data ) ;
30
+ }
31
+ } ) ;
32
+ } )
33
+ </ script >
34
+ </ body >
35
+
36
+ </ html >
Original file line number Diff line number Diff line change 7
7
< meta http-equiv ="Content-Type " content ="text/html; charset=utf-8 "/>
8
8
< title > Localize Test</ title >
9
9
< script src ="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js " type ="text/javascript " charset ="utf-8 "> </ script >
10
- < script src ="../dist/jquery.localize.min.js " type ="text/javascript " charset ="utf-8 "> </ script >
10
+ < script src ="../../ dist/jquery.localize.min.js " type ="text/javascript " charset ="utf-8 "> </ script >
11
11
</ head >
12
12
13
13
< body >
@@ -20,7 +20,7 @@ <h1>Test localization...</h1>
20
20
</ optgroup >
21
21
</ select >
22
22
< p >
23
- < img src ="ruby_square.gif " alt ="a square ruby " data-localize ="test.ruby_image "/>
23
+ < img src ="../ ruby_square.gif " alt ="a square ruby " data-localize ="test.ruby_image "/>
24
24
Ruby image should be round.
25
25
</ p >
26
26
< p data-localize ="basic "> It failed :(</ p >
@@ -43,7 +43,7 @@ <h1>Test localization...</h1>
43
43
"optgroup" : "optgroup success" ,
44
44
"option" : "option success" ,
45
45
"ruby_image" : {
46
- "src" : "ruby_round.gif" ,
46
+ "src" : "../ ruby_round.gif" ,
47
47
"alt" : "a round ruby" ,
48
48
"title" : "A Round Ruby"
49
49
} ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "app": {
3
+ "name": "MyApp",
4
+ "version": "1.2",
5
+ "description": "App using 'jquery-localize'"
6
+ }
7
+ }
You can’t perform that action at this time.
0 commit comments