root/trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/es_ES/localeSettings.xsl

Revision 2837 (checked in by bleibson, 6 months ago)

o add Jasig licensing info to header of source files
o in some cases, remove RPI copyright info.

Line 
1 <!--
2     Licensed to Jasig under one or more contributor license
3     agreements. See the NOTICE file distributed with this work
4     for additional information regarding copyright ownership.
5     Jasig licenses this file to you under the Apache License,
6     Version 2.0 (the "License"); you may not use this file
7     except in compliance with the License. You may obtain a
8     copy of the License at:
9    
10     http://www.apache.org/licenses/LICENSE-2.0
11    
12     Unless required by applicable law or agreed to in writing,
13     software distributed under the License is distributed on
14     an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15     KIND, either express or implied. See the License for the
16     specific language governing permissions and limitations
17     under the License.
18 -->
19 <xsl:stylesheet
20   version="1.0"
21   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
22   xmlns="http://www.w3.org/1999/xhtml">
23
24   <!-- LOCALE SETTINGS -->
25   <!-- This currently provides only a template for the default theme's
26        javascript calendar widget, but could provide layout templates
27        for locale specific date rendering as well. -->
28
29   <xsl:template name="jsCalendarLocale">
30     <!--
31       Set the locale settings for the YUI javascript calendar widget
32       used in the default bedeworkTheme.
33      
34       Leave commented out to use default settings (English, US).
35      
36       For more information about customizing the widget's locale, see
37       http://developer.yahoo.com/yui/calendar/
38     -->
39     <script type="text/javascript">
40       function setJsCalendarLocale() {
41         // SPANISH:
42         // Correct formats for locale: dd.mm.yyyy, dd.mm, mm.yyyy
43         YAHOO.bw.jsNavCal.cfg.setProperty("DATE_FIELD_DELIMITER", ".");
44         YAHOO.bw.jsNavCal.cfg.setProperty("MDY_DAY_POSITION", 1);
45         YAHOO.bw.jsNavCal.cfg.setProperty("MDY_MONTH_POSITION", 2);
46         YAHOO.bw.jsNavCal.cfg.setProperty("MDY_YEAR_POSITION", 3);
47          
48         YAHOO.bw.jsNavCal.cfg.setProperty("MD_DAY_POSITION", 1);
49         YAHOO.bw.jsNavCal.cfg.setProperty("MD_MONTH_POSITION", 2);
50
51         // Date labels for locale
52         YAHOO.bw.jsNavCal.cfg.setProperty("MONTHS_SHORT",   ["ene", "feb", "mar", "abr", "may", "jun", "jul", "ago", "set", "oct", "nov", "dic"]);
53         YAHOO.bw.jsNavCal.cfg.setProperty("MONTHS_LONG",    ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre"]);
54         YAHOO.bw.jsNavCal.cfg.setProperty("WEEKDAYS_1CHAR", ["D", "L", "M", "K", "J", "V", "S"]);
55         YAHOO.bw.jsNavCal.cfg.setProperty("WEEKDAYS_SHORT", ["do", "lu", "ma", "mi", "ju", "vi", "sá"]);
56         YAHOO.bw.jsNavCal.cfg.setProperty("WEEKDAYS_MEDIUM",["Dom", "Lun", "Mar", "Miér", "Jue", "Viér", "Sáb"]);
57         YAHOO.bw.jsNavCal.cfg.setProperty("WEEKDAYS_LONG",  ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"]);
58       }
59      </script>
60   </xsl:template>
61 </xsl:stylesheet>
Note: See TracBrowser for help on using the browser.