File tree 3 files changed +31
-0
lines changed
3 files changed +31
-0
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 ="../../build/jquery.localize.js " type ="text/javascript " charset ="utf-8 "> </ script >
11
+ </ head >
12
+
13
+ < body >
14
+ < h1 > Test localization...</ h1 >
15
+ < p data-localize ="header_message "> Header failed to load.</ p >
16
+ < p data-localize ="footer_message "> Footer failed to load.</ p >
17
+ < script type ="text/javascript " charset ="utf-8 ">
18
+ $ ( function ( ) {
19
+ var opts = { language : "en" , pathPrefix : "../lang" } ;
20
+ $ ( "[data-localize]" )
21
+ . localize ( "header" , opts )
22
+ . localize ( "footer" , opts ) ;
23
+ } ) ;
24
+ </ script >
25
+ </ body >
26
+
27
+ </ html >
Original file line number Diff line number Diff line change
1
+ { "footer_message" : " Footer message loaded" }
2
+
Original file line number Diff line number Diff line change
1
+ { "header_message" : " Header message loaded" }
2
+
You can’t perform that action at this time.
0 commit comments