Changeset 3131

Show
Ignore:
Timestamp:
01/13/11 14:27:05
Author:
johnsa
Message:

web clients:
- internationalize date and time pickers
- remove dojo libraries

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/webuser/webapp/resources/demoskins/de_DE/localeSettings.xsl

    r3129 r3131  
    2525  <!-- A place for javascript strings and locale specific javascript overrides --> 
    2626 
     27  <!-- Set up the datepicker defaults --> 
     28  <!-- For futher configuration, see http://docs.jquery.com/UI/Datepicker --> 
     29  <xsl:template name="jqueryDatepickerDefaults"> 
     30     
     31    <!-- pull in the localization strings and defaults. --> 
     32    <script type="text/javascript" src="/bedework-common/javascript/jquery/lang-datepicker/jquery.ui.datepicker-de.js">&#160;</script> 
     33 
     34    <!-- Bedework datepicker defaults.  You can include further overrides to regionalization here. --> 
     35    <script type="text/javascript"> 
     36      <xsl:comment> 
     37      $.datepicker.setDefaults({ 
     38        constrainInput: true, 
     39        dateFormat: "yy-mm-dd", 
     40        showOn: "both", 
     41        buttonImage: "<xsl:value-of select='$resourcesRoot'/>/images/calIcon.gif", 
     42        buttonImageOnly: true, 
     43        gotoCurrent: true, 
     44        duration: "" 
     45      }); 
     46      </xsl:comment> 
     47    </script> 
     48     
     49  </xsl:template> 
     50     
     51  <!-- declare the JavaScript scheduling strings --> 
    2752  <xsl:template name="bedeworkSchedulingStrings"> 
    2853    <script type="text/javascript"> 
  • trunk/deployment/webuser/webapp/resources/demoskins/de_DE/strings.xsl

    r3129 r3131  
    451451  <xsl:variable name="bwStr-Cloc-CloseClock">Uhr schliessenk</xsl:variable> 
    452452   
    453  
     453  <!-- xsl:template name="newclock" --> 
     454  <xsl:variable name="bwStr-Cloc-Hour">Stunde</xsl:variable> 
     455  <xsl:variable name="bwStr-Cloc-Minute">Minute</xsl:variable> 
     456  <xsl:variable name="bwStr-Cloc-AM">am</xsl:variable> 
     457  <xsl:variable name="bwStr-Cloc-PM">pm</xsl:variable> 
     458   
    454459  <!-- xsl:template name="attendees" --> 
    455460  <xsl:variable name="bwStr-Atnd-Continue">weiter</xsl:variable> 
  • trunk/deployment/webuser/webapp/resources/demoskins/default/localeSettings.xsl

    r3068 r3131  
    2424  <!-- LOCALE SETTINGS --> 
    2525  <!-- A place for javascript strings and locale specific javascript overrides --> 
     26 
     27  <!-- Set up the datepicker defaults --> 
     28  <!-- For futher configuration, see http://docs.jquery.com/UI/Datepicker --> 
     29  <xsl:template name="jqueryDatepickerDefaults"> 
     30     
     31    <!-- pull in the localization strings and defaults. --> 
     32    <!--   
     33      U.S. English is the default, so there is no string file for U.S. English.  
     34      This code is here for consistency and clarity across localeSettings files. 
     35    <script type="text/javascript" src="/bedework-common/javascript/jquery/lang-datepicker/jquery.ui.datepicker-en.js">&#160;</script> 
     36    --> 
     37 
     38    <!-- Bedework datepicker defaults.  You can include further overrides to regionalization here. --> 
     39    <script type="text/javascript"> 
     40      <xsl:comment> 
     41      $.datepicker.setDefaults({ 
     42        constrainInput: true, 
     43        dateFormat: "yy-mm-dd", 
     44        showOn: "both", 
     45        buttonImage: "<xsl:value-of select='$resourcesRoot'/>/images/calIcon.gif", 
     46        buttonImageOnly: true, 
     47        gotoCurrent: true, 
     48        duration: "" 
     49      }); 
     50      </xsl:comment> 
     51    </script> 
     52     
     53  </xsl:template> 
    2654 
    2755  <xsl:template name="bedeworkSchedulingStrings"> 
  • trunk/deployment/webuser/webapp/resources/demoskins/default/strings.xsl

    r3127 r3131  
    451451  <xsl:variable name="bwStr-Cloc-CloseClock">close clock</xsl:variable> 
    452452   
     453  <!-- xsl:template name="newclock" --> 
     454  <xsl:variable name="bwStr-Cloc-Hour">Hour</xsl:variable> 
     455  <xsl:variable name="bwStr-Cloc-Minute">Minute</xsl:variable> 
     456  <xsl:variable name="bwStr-Cloc-AM">am</xsl:variable> 
     457  <xsl:variable name="bwStr-Cloc-PM">pm</xsl:variable> 
    453458 
    454459  <!-- xsl:template name="attendees" --> 
  • trunk/deployment/webuser/webapp/resources/demoskins/es_ES/localeSettings.xsl

    r3127 r3131  
    2424  <!-- LOCALE SETTINGS --> 
    2525  <!-- A place for javascript strings and locale specific javascript overrides --> 
     26 
     27  <!-- Set up the datepicker defaults --> 
     28  <!-- For futher configuration, see http://docs.jquery.com/UI/Datepicker --> 
     29  <xsl:template name="jqueryDatepickerDefaults"> 
     30     
     31    <!-- pull in the localization strings and defaults. --> 
     32    <script type="text/javascript" src="/bedework-common/javascript/jquery/lang-datepicker/jquery.ui.datepicker-es.js">&#160;</script> 
     33 
     34    <!-- Bedework datepicker defaults.  You can include further overrides to regionalization here. --> 
     35    <script type="text/javascript"> 
     36      <xsl:comment> 
     37      $.datepicker.setDefaults({ 
     38        constrainInput: true, 
     39        dateFormat: "yy-mm-dd", 
     40        showOn: "both", 
     41        buttonImage: "<xsl:value-of select='$resourcesRoot'/>/images/calIcon.gif", 
     42        buttonImageOnly: true, 
     43        gotoCurrent: true, 
     44        duration: "" 
     45      }); 
     46      </xsl:comment> 
     47    </script> 
     48     
     49  </xsl:template> 
    2650 
    2751  <xsl:template name="bedeworkSchedulingStrings"> 
  • trunk/deployment/webuser/webapp/resources/demoskins/es_ES/strings.xsl

    r3127 r3131  
    450450  <xsl:variable name="bwStr-Cloc-Close">cerrar</xsl:variable> 
    451451  <xsl:variable name="bwStr-Cloc-CloseClock">close clock</xsl:variable> 
     452   
     453  <!-- xsl:template name="newclock" --> 
     454  <xsl:variable name="bwStr-Cloc-Hour">Hora</xsl:variable> 
     455  <xsl:variable name="bwStr-Cloc-Minute">Minuto</xsl:variable> 
     456  <xsl:variable name="bwStr-Cloc-AM">am</xsl:variable> 
     457  <xsl:variable name="bwStr-Cloc-PM">pm</xsl:variable> 
    452458 
    453459  <!-- xsl:template name="attendees" --> 
  • trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/head.xsl

    r3068 r3131  
    9797          <link rel="stylesheet" href="{$resourcesRoot}/css/dynCalendarWidget.css"/> 
    9898        </xsl:when> 
    99         <xsl:otherwise>         
     99        <xsl:otherwise>       
     100         
     101          <!-- include the localized jQuery datepicker defaults --> 
     102          <xsl:call-template name="jqueryDatepickerDefaults"/> 
     103         
     104          <!-- now setup date and time pickers -->   
    100105          <script type="text/javascript"> 
    101106            <xsl:comment> 
    102             $.datepicker.setDefaults({ 
    103               constrainInput: true, 
    104               dateFormat: "yy-mm-dd", 
    105               showOn: "both", 
    106               buttonImage: "<xsl:value-of select='$resourcesRoot'/>/images/calIcon.gif", 
    107               buttonImageOnly: true, 
    108               gotoCurrent: true, 
    109               duration: "" 
    110             }); 
    111  
    112107            function bwSetupDatePickers() { 
    113108              // startdate 
     
    123118                hourIds: ["eventStartDateHour","eventStartDateSchedHour"], 
    124119                minuteIds: ["eventStartDateMinute","eventStartDateSchedMinute"], 
    125                 ampmIds: ["eventStartDateAmpm","eventStartDateSchedAmpm"] 
     120                ampmIds: ["eventStartDateAmpm","eventStartDateSchedAmpm"], 
     121                hourLabel: "<xsl:value-of select="$bwStr-Cloc-Hour"/>", 
     122                minuteLabel: "<xsl:value-of select="$bwStr-Cloc-Minute"/>", 
     123                                              amLabel: "<xsl:value-of select="$bwStr-Cloc-AM"/>", 
     124                                              pmLabel: "<xsl:value-of select="$bwStr-Cloc-PM"/>" 
    126125              }); 
    127126 
     
    138137                hourIds: ["eventEndDateHour"], 
    139138                minuteIds: ["eventEndDateMinute"], 
    140                 ampmIds: ["eventEndDateAmpm"] 
     139                ampmIds: ["eventEndDateAmpm"], 
     140                hourLabel: "<xsl:value-of select="$bwStr-Cloc-Hour"/>", 
     141                minuteLabel: "<xsl:value-of select="$bwStr-Cloc-Minute"/>", 
     142                amLabel: "<xsl:value-of select="$bwStr-Cloc-AM"/>", 
     143                pmLabel: "<xsl:value-of select="$bwStr-Cloc-PM"/>" 
    141144              }); 
    142145               
     
    169172                attachToId: "rdateTimeFields", 
    170173                hourIds: ["eventRdateHour"], 
    171                 minuteIds: ["eventRdateMinute"] 
     174                minuteIds: ["eventRdateMinute"], 
     175                hourLabel: "<xsl:value-of select="$bwStr-Cloc-Hour"/>", 
     176                minuteLabel: "<xsl:value-of select="$bwStr-Cloc-Minute"/>", 
     177                amLabel: "<xsl:value-of select="$bwStr-Cloc-AM"/>", 
     178                pmLabel: "<xsl:value-of select="$bwStr-Cloc-PM"/>" 
    172179              }); 
    173180               
     
    184191                hourIds: ["eventStartDateSchedHour","eventStartDateHour"], 
    185192                minuteIds: ["eventStartDateSchedMinute","eventStartDateMinute"], 
    186                 ampmIds: ["eventStartDateSchedAmpm","eventStartDateAmpm"] 
     193                ampmIds: ["eventStartDateSchedAmpm","eventStartDateAmpm"], 
     194                hourLabel: "<xsl:value-of select="$bwStr-Cloc-Hour"/>", 
     195                minuteLabel: "<xsl:value-of select="$bwStr-Cloc-Minute"/>", 
     196                amLabel: "<xsl:value-of select="$bwStr-Cloc-AM"/>", 
     197                pmLabel: "<xsl:value-of select="$bwStr-Cloc-PM"/>" 
    187198              }); 
    188199            }