Changeset 3133

Show
Ignore:
Timestamp:
01/13/11 15:14:34
Author:
johnsa
Message:

personal client: prepare scheduling tab for internationalization

Files:

Legend:

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

    r3131 r3133  
    4949  </xsl:template> 
    5050     
    51   <!-- declare the JavaScript scheduling strings --> 
     51  <!-- Declare the JavaScript scheduling strings. --> 
     52  <!-- These are for display and can be translated. --> 
    5253  <xsl:template name="bedeworkSchedulingStrings"> 
    5354    <script type="text/javascript"> 
    54       var bwAttendeeRoleChair = "CHAIR"; 
    55                         var bwAttendeeRoleRequired = "REQ-PARTICIPANT"; 
    56                         var bwAttendeeRoleOptional = "OPT-PARTICIPANT"; 
    57                         var bwAttendeeRoleNonParticipant = "NON-PARTICIPANT"; 
    58                         var bwAttendeeStatusNeedsAction = "NEEDS-ACTION"; 
    59                         var bwAttendeeStatusAccepted = "ACCEPTED"; 
    60                         var bwAttendeeStatusDeclined = "DECLINED"; 
    61                         var bwAttendeeStatusTentative = "TENTATIVE"; 
    62                         var bwAttendeeStatusDelegated = "DELEGATED"; 
    63                         var bwAttendeeStatusCompleted = "COMPLETED"; 
    64                         var bwAttendeeStatusInProcess = "IN-PROCESS"; 
    65                         var bwAttendeeTypePerson = "person"; 
    66                         var bwAttendeeTypeLocation = "location"; 
    67                         var bwAttendeeTypeResource = "resource"; 
    68                          
    69                         // display strings for the values above 
    70                         // should be put with other internationalized strings 
    71                         // can be translated 
    7255                        var bwAttendeeDispRoleChair = "chair"; 
    7356                        var bwAttendeeDispRoleRequired = "required participant"; 
     
    8568                        var bwAttendeeDispTypeResource = "resource"; 
    8669                         
     70                        var bwAttendeeDispGridAllAttendees = "Alle Teilnehmer"; 
     71                         
    8772                        var bwFreeBusyDispTypeBusy = "BUSY"; 
    8873                        var bwFreeBusyDispTypeTentative = "TENTATIVE"; 
     
    9984                        var bwOptParticipantDisp = "optional"; 
    10085                        var bwChairDisp = "chair"; 
    101                         var bwNonParticipant = "non-participant"; 
    102                         var bwNeedsAction = "needs action"; 
    103                         var bwAccepted = "accepted"; 
    104                         var bwDeclined = "declined"; 
    105                         var bwTentative = "tentative"; 
    106                         var bwDelegated = "delegated"; 
    10786                         
    10887                        var bwErrorAttendees = "Error: attendees not returned"; 
     
    11089    </script> 
    11190  </xsl:template> 
     91   
     92  <!-- Declare the JavaScript access control strings. --> 
     93  <!-- These are for display and can be translated. --> 
     94  <xsl:template name="bedeworkAccessStrings"> 
     95    <script type="text/javascript"> 
     96    </script> 
     97  </xsl:template> 
     98   
    11299</xsl:stylesheet> 
  • trunk/deployment/webuser/webapp/resources/demoskins/de_DE/strings.xsl

    r3131 r3133  
    332332  <xsl:variable name="bwStr-AEEF-AddCategory">Kategorie hinzuf&#252;gen</xsl:variable> 
    333333  <xsl:variable name="bwStr-AEEF-SelectTimezone">Zeitzone aussuchen...</xsl:variable> 
     334  <xsl:variable name="bwStr-AEEF-PickPrevious">&#171; W&#228;hlen Zurück</xsl:variable> 
     335  <xsl:variable name="bwStr-AEEF-PickNext">W&#228;hlen Weiter &#187;</xsl:variable> 
     336  <xsl:variable name="bwStr-AEEF-Options">Optionen &#x25BC;</xsl:variable> 
     337  <xsl:variable name="bwStr-AEEF-24Hours">24 Stunden</xsl:variable> 
    334338 
    335339  <!-- Details tab (3153)--> 
  • trunk/deployment/webuser/webapp/resources/demoskins/default/localeSettings.xsl

    r3131 r3133  
    5252     
    5353  </xsl:template> 
    54  
     54   
     55  <!-- Declare the JavaScript scheduling strings. --> 
     56  <!-- These are for display and can be translated. --> 
    5557  <xsl:template name="bedeworkSchedulingStrings"> 
    5658    <script type="text/javascript"> 
    57       var bwAttendeeRoleChair = "CHAIR"; 
    58                         var bwAttendeeRoleRequired = "REQ-PARTICIPANT"; 
    59                         var bwAttendeeRoleOptional = "OPT-PARTICIPANT"; 
    60                         var bwAttendeeRoleNonParticipant = "NON-PARTICIPANT"; 
    61                         var bwAttendeeStatusNeedsAction = "NEEDS-ACTION"; 
    62                         var bwAttendeeStatusAccepted = "ACCEPTED"; 
    63                         var bwAttendeeStatusDeclined = "DECLINED"; 
    64                         var bwAttendeeStatusTentative = "TENTATIVE"; 
    65                         var bwAttendeeStatusDelegated = "DELEGATED"; 
    66                         var bwAttendeeStatusCompleted = "COMPLETED"; 
    67                         var bwAttendeeStatusInProcess = "IN-PROCESS"; 
    68                         var bwAttendeeTypePerson = "person"; 
    69                         var bwAttendeeTypeLocation = "location"; 
    70                         var bwAttendeeTypeResource = "resource"; 
    71                          
    72                         // display strings for the values above 
    73                         // should be put with other internationalized strings 
    74                         // can be translated 
    7559                        var bwAttendeeDispRoleChair = "chair"; 
    7660                        var bwAttendeeDispRoleRequired = "required participant"; 
     
    8771                        var bwAttendeeDispTypeLocation = "location"; 
    8872                        var bwAttendeeDispTypeResource = "resource"; 
     73       
     74      var bwAttendeeDispGridAllAttendees = "All Attendees"; 
    8975                         
    9076                        var bwFreeBusyDispTypeBusy = "BUSY"; 
     
    10288                        var bwOptParticipantDisp = "optional"; 
    10389                        var bwChairDisp = "chair"; 
    104                         var bwNonParticipant = "non-participant"; 
    105                         var bwNeedsAction = "needs action"; 
    106                         var bwAccepted = "accepted"; 
    107                         var bwDeclined = "declined"; 
    108                         var bwTentative = "tentative"; 
    109                         var bwDelegated = "delegated"; 
    11090                         
    11191                        var bwErrorAttendees = "Error: attendees not returned"; 
     
    11393    </script> 
    11494  </xsl:template> 
     95   
     96  <!-- Declare the JavaScript access control strings. --> 
     97  <!-- These are for display and can be translated. --> 
     98  <xsl:template name="bedeworkAccessStrings"> 
     99    <!-- U.S. English strings are the default; this template must remain, but no translations are needed. --> 
     100  </xsl:template> 
     101   
    115102</xsl:stylesheet> 
  • trunk/deployment/webuser/webapp/resources/demoskins/default/strings.xsl

    r3131 r3133  
    332332  <xsl:variable name="bwStr-AEEF-AddCategory">add category</xsl:variable> 
    333333  <xsl:variable name="bwStr-AEEF-SelectTimezone">select timezone...</xsl:variable> 
     334  <xsl:variable name="bwStr-AEEF-PickPrevious">&#171; Pick Previous</xsl:variable> 
     335  <xsl:variable name="bwStr-AEEF-PickNext">Pick Next &#187;</xsl:variable> 
     336  <xsl:variable name="bwStr-AEEF-Options">Options &#x25BC;</xsl:variable> 
     337  <xsl:variable name="bwStr-AEEF-24Hours">24 Hours</xsl:variable> 
    334338 
    335339  <!-- Details tab (3153)--> 
  • trunk/deployment/webuser/webapp/resources/demoskins/es_ES/localeSettings.xsl

    r3131 r3133  
    4848     
    4949  </xsl:template> 
    50  
     50   
     51  <!-- Declare the JavaScript scheduling strings. --> 
     52  <!-- These are for display and can be translated. --> 
    5153  <xsl:template name="bedeworkSchedulingStrings"> 
    5254    <script type="text/javascript"> 
    53       var bwAttendeeRoleChair = "CHAIR"; 
    54                         var bwAttendeeRoleRequired = "REQ-PARTICIPANT"; 
    55                         var bwAttendeeRoleOptional = "OPT-PARTICIPANT"; 
    56                         var bwAttendeeRoleNonParticipant = "NON-PARTICIPANT"; 
    57                         var bwAttendeeStatusNeedsAction = "NEEDS-ACTION"; 
    58                         var bwAttendeeStatusAccepted = "ACCEPTED"; 
    59                         var bwAttendeeStatusDeclined = "DECLINED"; 
    60                         var bwAttendeeStatusTentative = "TENTATIVE"; 
    61                         var bwAttendeeStatusDelegated = "DELEGATED"; 
    62                         var bwAttendeeStatusCompleted = "COMPLETED"; 
    63                         var bwAttendeeStatusInProcess = "IN-PROCESS"; 
    64                         var bwAttendeeTypePerson = "person"; 
    65                         var bwAttendeeTypeLocation = "location"; 
    66                         var bwAttendeeTypeResource = "resource"; 
    67                          
    68                         // display strings for the values above 
    69                         // should be put with other internationalized strings 
    70                         // can be translated 
    7155                        var bwAttendeeDispRoleChair = "chair"; 
    7256                        var bwAttendeeDispRoleRequired = "required participant"; 
     
    8367                        var bwAttendeeDispTypeLocation = "location"; 
    8468                        var bwAttendeeDispTypeResource = "resource"; 
     69       
     70      var bwAttendeeDispGridAllAttendees = "Todos los asistentes"; 
    8571                         
    8672                        var bwFreeBusyDispTypeBusy = "BUSY"; 
     
    9884                        var bwOptParticipantDisp = "optional"; 
    9985                        var bwChairDisp = "chair"; 
    100                         var bwNonParticipant = "non-participant"; 
    101                         var bwNeedsAction = "needs action"; 
    102                         var bwAccepted = "accepted"; 
    103                         var bwDeclined = "declined"; 
    104                         var bwTentative = "tentative"; 
    105                         var bwDelegated = "delegated"; 
    10686                         
    10787                        var bwErrorAttendees = "Error: attendees not returned"; 
     
    10989    </script> 
    11090  </xsl:template> 
     91   
     92  <!-- Declare the JavaScript access control strings. --> 
     93  <!-- These are for display and can be translated. --> 
     94  <xsl:template name="bedeworkAccessStrings"> 
     95    <script type="text/javascript"> 
     96    </script> 
     97  </xsl:template> 
     98   
    11199</xsl:stylesheet> 
  • trunk/deployment/webuser/webapp/resources/demoskins/es_ES/strings.xsl

    r3131 r3133  
    332332  <xsl:variable name="bwStr-AEEF-AddCategory">añadir categoría</xsl:variable> 
    333333  <xsl:variable name="bwStr-AEEF-SelectTimezone">seleccionar zona horaria...</xsl:variable> 
     334  <xsl:variable name="bwStr-AEEF-PickPrevious">&#171; Seleccione Anterior</xsl:variable> 
     335  <xsl:variable name="bwStr-AEEF-PickNext">Selección de la Siguiente &#187;</xsl:variable> 
     336  <xsl:variable name="bwStr-AEEF-Options">Opciones &#x25BC;</xsl:variable> 
     337  <xsl:variable name="bwStr-AEEF-24Hours">24 Horas</xsl:variable> 
    334338 
    335339  <!-- Details tab (3153)--> 
  • trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/eventForm.xsl

    r3064 r3133  
    14171417                <tr> 
    14181418                  <td> 
    1419                     <input type="button" id="bwPickPrevious" onclick="bwGrid.pickPrevious();" value="&#171; Pick Previous"/> 
     1419                    <input type="button" id="bwPickPrevious" onclick="bwGrid.pickPrevious();" value="{$bwStr-AEEF-PickPrevious}"/> 
    14201420                  </td> 
    14211421                  <td> 
    1422                     <input type="button" id="bwPickNext" onclick="bwGrid.pickNext();" value="Pick Next &#187;"/> 
     1422                    <input type="button" id="bwPickNext" onclick="bwGrid.pickNext();" value="{$bwStr-AEEF-PickNext}"/> 
    14231423                  </td> 
    14241424                  <td class="dateLabel"> 
     
    14641464                    <ul id="bwSchedOptionsContainer"> 
    14651465                      <li> 
    1466                                     <input type="button" id="bwSchedOptions" value="Options &#x25BC;"/> 
     1466                                    <input type="button" id="bwSchedOptions" value="{$bwStr-AEEF-Options}"/> 
    14671467                              <ul id="bwFbOptionsMenu"> 
    1468                                 <li id="bwSched24Hours"><span id="bwSched24HoursText">24 Hours</span> <input type="checkbox" id="bwSched24HoursCb"/></li> 
     1468                                <li id="bwSched24Hours"><span id="bwSched24HoursText"><xsl:copy-of select="$bwStr-AEEF-24Hours"/></span> <input type="checkbox" id="bwSched24HoursCb"/></li> 
    14691469                              </ul> 
    14701470                            </li> 
     
    14851485                </xsl:attribute> 
    14861486              </input> 
     1487              <xsl:text> </xsl:text> 
    14871488              <xsl:copy-of select="$bwStr-AEEF-Days"/> 
    14881489              <xsl:text> </xsl:text> 
     
    14961497                  </xsl:attribute> 
    14971498                </input> 
     1499                <xsl:text> </xsl:text> 
    14981500                <xsl:copy-of select="$bwStr-AEEF-Hours"/> 
    14991501                <xsl:text> </xsl:text> 
     
    15061508                  </xsl:attribute> 
    15071509                </input> 
     1510                <xsl:text> </xsl:text> 
    15081511                <xsl:copy-of select="$bwStr-AEEF-Minutes"/> 
    15091512              </span> 
  • trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/javascript/bedeworkScheduling.js

    r3077 r3133  
    2525 * @author Arlen Johnson       johnsa - rpi.edu 
    2626 *  
    27  * All strings used in this file are referenced from localeSettings.xsl 
     27 * All strings used for display in this file are referenced from localeSettings.xsl 
    2828 */ 
    2929 
    3030// Constants and RFC-5445 values  
    31 // These should be put some place permanent 
     31// Not for translation 
     32var bwAttendeeRoleChair = "CHAIR"; 
     33var bwAttendeeRoleRequired = "REQ-PARTICIPANT"; 
     34var bwAttendeeRoleOptional = "OPT-PARTICIPANT"; 
     35var bwAttendeeRoleNonParticipant = "NON-PARTICIPANT"; 
     36var bwAttendeeStatusNeedsAction = "NEEDS-ACTION"; 
     37var bwAttendeeStatusAccepted = "ACCEPTED"; 
     38var bwAttendeeStatusDeclined = "DECLINED"; 
     39var bwAttendeeStatusTentative = "TENTATIVE"; 
     40var bwAttendeeStatusDelegated = "DELEGATED"; 
     41var bwAttendeeStatusCompleted = "COMPLETED"; 
     42var bwAttendeeStatusInProcess = "IN-PROCESS"; 
     43var bwAttendeeTypePerson = "person"; 
     44var bwAttendeeTypeLocation = "location"; 
     45var bwAttendeeTypeResource = "resource"; 
     46var bwNonParticipant = "non-participant"; 
     47var bwNeedsAction = "needs action"; 
     48var bwAccepted = "accepted"; 
     49var bwDeclined = "declined"; 
     50var bwTentative = "tentative"; 
     51var bwDelegated = "delegated"; 
    3252 
    3353/* An attendee 
     
    3959 * selected:        Boolean - if attendee is included in picknext selections (checkbox next to attendee in grid)  
    4060 */ 
    41  
    4261var bwAttendee = function(name, uid, role, status, type) { 
    4362  this.name = name; 
     
    637656      fbDisplayTimesRow = fbDisplay.insertRow(fbDisplay.rows.length); 
    638657      $(fbDisplayTimesRow).addClass("allAttendees"); 
    639       $(fbDisplayTimesRow).html('<td class="status"></td><td class="role"></td><td class="name">All Attendees</td><td></td><td class="fbBoundry"></td>'); 
     658      $(fbDisplayTimesRow).html('<td class="status"></td><td class="role"></td><td class="name">' + bwAttendeeDispGridAllAttendees + '</td><td></td><td class="fbBoundry"></td>'); 
    640659      for (var i=0; i < range; i++) { 
    641660        var curDate = new Date(this.startRange);