added locale picker to home page. setting locale value in the selector on page load
[Evergreen.git] / Open-ILS / web / opac / skin / default / xml / common / fonts.xml
1 <div id='fonts_div'>
2
3         <div id='text_size_div' style='position:absolute; top: 2px; right: 6px;'>
4                 <span style='vertical-align: top;'>&common.textsize.title;</span>
5                 <span style='vertical-align: top;'><a href="javascript:void(0);" onclick="setFontSize('regular');"> &common.textsize.regular; </a></span>
6                 <span style='vertical-align: top;'> &common.textsize.separator; </span>
7                 <span style='vertical-align: top;'><a href="javascript:void(0);" onclick="setFontSize('large');"> &common.textsize.large; </a></span>
8                 <span style='vertical-align: top;'>&nbsp;<span style="font-weight:bold;">|</span>&nbsp;</span>
9                 <span style='vertical-align: top;'>&common.language;</span>
10                 <span id='translation_switch' dojoType="dijit.form.FilteringSelect" store="openils.I18N.localeStore"
11                     searchAttr="label" required="false" value='<!--#echo var="locale"-->'>
12                         <script type="dojo/label" event="onChange">
13                                 if (this.getValue()) {
14                                         location.href = location.href.replace( /opac\/[^\/]+\/skin/, 'opac/' + this.getValue() + '/skin');
15                                 }
16                         </script>
17                 </span>
18         </div>
19         
20 </div>