Confirmed users
1,016
edits
No edit summary |
No edit summary |
||
| Line 109: | Line 109: | ||
HTML: | HTML: | ||
<html> | <html> | ||
<head> | <head> | ||
| Line 129: | Line 128: | ||
</body> | </body> | ||
</html> | </html> | ||
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. | ||
| Line 142: | Line 141: | ||
<head> | <head> | ||
<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> | ||
'''<script type="text/javascript"> | '''<script type="text/javascript"> | ||
var ctx = document.l10nCtx; | var ctx = document.l10nCtx; | ||
| Line 150: | Line 149: | ||
]; | ]; | ||
</script>''' | </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> | ||
| Line 190: | Line 189: | ||
<head> | <head> | ||
<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="manifest" type="intl/manifest" href="./locales/manifest.json"> | <link rel="manifest" type="intl/manifest" href="./locales/manifest.json"> | ||
<link rel="resource" type="intl/l20n" href="l10n:pontoon:core/editor" | <link rel="resource" type="intl/l20n" href="l10n:pontoon:core/editor" | ||