L20n/HTML: Difference between revisions

Jump to navigation Jump to search
11 bytes added ,  8 September 2012
no edit summary
No edit summary
No edit summary
Line 109: Line 109:


HTML:
HTML:
<pre>
  <html>
  <html>
   <head>
   <head>
     '''<meta http-equiv="Content-Language" Content="en-US, de">'''
     '''<meta http-equiv="Content-Language" Content="en-US, de">'''
     <script type="text/javascript;version=1.8" src="./js/l20n-xml.min.js"></script>
     <script type="text/javascript;version=1.8" src="./js/l20n-xml.min.js"></script>
 
     <link rel="resource" type="intl/l20n" '''href="./locales/main-\{\{ locale }}.lol"''' />
     <link rel="resource" type="intl/l20n" '''href="./locales/main-{{ locale }}.lol"''' />
   </head>
   </head>
   <body>
   <body>
Line 128: Line 129:
   </body>
   </body>
  </html>
  </html>
 
</pre>
Now, the l20n framework will take the locales available for the document and sort them according to the user preference. In result the best locale out of the available ones will be picked and loaded.
Now, the l20n framework will take the locales available for the document and sort them according to the user preference. In result the best locale out of the available ones will be picked and loaded.


Confirmed users
1,016

edits

Navigation menu