Articles in this section
Category / Section

How to localize the default strings in WinForms ScheduleControl?

4 mins read

Localization for Schedule

In order to localize the default strings that is displayed in the ScheduleGrid i.e Events, Week Starting, From, to etc, the DisplayStrings static property of ScheduleGrid class can be used. DisplayStrings property is an array string property having default strings in its collection.

C#

//Localization for ScheduleGrid
ScheduleGrid.DisplayStrings[0] = "no closing delimiter error";
ScheduleGrid.DisplayStrings[1] = "(ninguna)";
ScheduleGrid.DisplayStrings[2] = "Semana comenzando ";
ScheduleGrid.DisplayStrings[3] = "Comenzando ";
ScheduleGrid.DisplayStrings[4] = "Haga doble clic para agregar todo el evento del día";
ScheduleGrid.DisplayStrings[5] = "A";
ScheduleGrid.DisplayStrings[6] = "De";
ScheduleGrid.DisplayStrings[7] = "¿Quitar esta cita?";
ScheduleGrid.DisplayStrings[8] = "Eliminar cita";
ScheduleGrid.DisplayStrings[9] = "&Nuevo artículo";
ScheduleGrid.DisplayStrings[10] = "New &All Day item";
ScheduleGrid.DisplayStrings[11] = "Nuevo y todo el día";
ScheduleGrid.DisplayStrings[12] = "Eliminar elemento";
ScheduleGrid.DisplayStrings[13] = "Día";
ScheduleGrid.DisplayStrings[14] = "Semana de trabajo";
ScheduleGrid.DisplayStrings[15] = "Semana";
ScheduleGrid.DisplayStrings[16] = "Mes";
ScheduleGrid.DisplayStrings[17] = "Haz clic para cambiar a la vista Día";
ScheduleGrid.DisplayStrings[18] = "Haga clic para más citas";
ScheduleGrid.DisplayStrings[19] = "¿Eliminar este elemento?";
ScheduleGrid.DisplayStrings[20] = "¿Eliminar todas las apariciones de esta cita recurrente?";
ScheduleGrid.DisplayStrings[21] = "Cita recurrente";
ScheduleGrid.DisplayStrings[22] = "¿Eliminar esta cita de intervalo?";
ScheduleGrid.DisplayStrings[23] = "Cita de duración";
ScheduleGrid.DisplayStrings[24] = "¿Quieres guardar tus cambios?";
ScheduleGrid.DisplayStrings[25] = "Programador";
ScheduleGrid.DisplayStrings[26] = "La fecha de finalización que ingresó se produce antes de la fecha de inicio.";
ScheduleGrid.DisplayStrings[27] = "Ingrese la hora de inicio válida";
ScheduleGrid.DisplayStrings[28] = "Ingrese la hora de finalización válida";
ScheduleGrid.DisplayStrings[29] = "Eventos";

VB

'Localization for ScheduleGrid
ScheduleGrid.DisplayStrings(0) = "no closing delimiter error"
ScheduleGrid.DisplayStrings(1) = "(ninguna)"
ScheduleGrid.DisplayStrings(2) = "Semana comenzando "
ScheduleGrid.DisplayStrings(3) = "Comenzando "
ScheduleGrid.DisplayStrings(4) = "Haga doble clic para agregar todo el evento del día"
ScheduleGrid.DisplayStrings(5) = "A"
ScheduleGrid.DisplayStrings(6) = "De"
ScheduleGrid.DisplayStrings(7) = "¿Quitar esta cita?"
ScheduleGrid.DisplayStrings(8) = "Eliminar cita"
ScheduleGrid.DisplayStrings(9) = "&Nuevo artículo"
ScheduleGrid.DisplayStrings(10) = "New &All Day item"
ScheduleGrid.DisplayStrings(11) = "Nuevo y todo el día"
ScheduleGrid.DisplayStrings(12) = "Eliminar elemento"
ScheduleGrid.DisplayStrings(13) = "Día"
ScheduleGrid.DisplayStrings(14) = "Semana de trabajo"
ScheduleGrid.DisplayStrings(15) = "Semana"
ScheduleGrid.DisplayStrings(16) = "Mes"
ScheduleGrid.DisplayStrings(17) = "Haz clic para cambiar a la vista Día"
ScheduleGrid.DisplayStrings(18) = "Haga clic para más citas"
ScheduleGrid.DisplayStrings(19) = "¿Eliminar este elemento?"
ScheduleGrid.DisplayStrings(20) = "¿Eliminar todas las apariciones de esta cita recurrente?"
ScheduleGrid.DisplayStrings(21) = "Cita recurrente"
ScheduleGrid.DisplayStrings(22) = "¿Eliminar esta cita de intervalo?"
ScheduleGrid.DisplayStrings(23) = "Cita de duración"
ScheduleGrid.DisplayStrings(24) = "¿Quieres guardar tus cambios?"
ScheduleGrid.DisplayStrings(25) = "Programador"
ScheduleGrid.DisplayStrings(26) = "La fecha de finalización que ingresó se produce antes de la fecha de inicio."
ScheduleGrid.DisplayStrings(27) = "Ingrese la hora de inicio válida"
ScheduleGrid.DisplayStrings(28) = "Ingrese la hora de finalización válida"
ScheduleGrid.DisplayStrings(29) = "Eventos"

 

Note:

The following is the definition for DisplayStrings array. You can specify the array index for default strings that has to be localized or changed.

C#

public static string[] DisplayStrings = new string[]
{
      "no closing delimiter error",
      "(none)",
      "Week starting ",
      "Starting ",
      " Double Click to Add All Day Event",
      "To ",
      "From ",
      "Remove this appointment?",
      "Remove Appointment",
      "&New Item",
      "New &All Day item",
      "&Edit Item",
      "De&lete Item",
      "&Day",
      "&Work Week",
      "Wee&k",
      "&Month",
      "Click to switch to Day view",
      "Click for more Appoinments.",
      "Remove this item?",
      "Remove all occurrences of this recurring appointment?",
      "Recurring Appointment",
      "Remove this span appointment?",
      "Span Appointment",
      "Do you want to save your changes?",
      "Scheduler",
      "The end date you entered occurs before the start date",
      "Enter valid start time",
      "Enter valid end time",
      " Events"
};

VB

Public Shared DisplayStrings() As String = 
{
      "no closing delimiter error",
      "(none)",
      "Week starting ",
      "Starting ",
      " Double Click to Add All Day Event",
      "To ",
      "From ",
      "Remove this appointment?",
      "Remove Appointment",
      "&New Item",
      "New &All Day item",
      "&Edit Item",
      "De&lete Item",
      "&Day",
      "&Work Week",
      "Wee&k",
      "&Month",
      "Click to switch to Day view",
      "Click for more Appoinments.",
      "Remove this item?",
      "Remove all occurrences of this recurring appointment?",
      "Recurring Appointment",
      "Remove this span appointment?",
      "Span Appointment",
      "Do you want to save your changes?",
      "Scheduler",
      "The end date you entered occurs before the start date",
      "Enter valid start time",
      "Enter valid end time",
      " Events"
}

To localize the Appointment form i.e. Subject, Location etc., the DisplayStrings static property of AppointmentForm class can be used.

C#

//Localization for AppointmentForm. 
AppointmentForm.DisplayStrings[0] = "Tema"; 
AppointmentForm.DisplayStrings[1] = "Ubicación"; 
AppointmentForm.DisplayStrings[2] = "Mostrar el tiempo"; 
AppointmentForm.DisplayStrings[3] = "Recordatorio"; 
AppointmentForm.DisplayStrings[4] = "Evento"; 
AppointmentForm.DisplayStrings[5] = "Hora de inicio"; 
AppointmentForm.DisplayStrings[6] = "Hora de finalización"; 
AppointmentForm.DisplayStrings[7] = "Etiqueta"; 
AppointmentForm.DisplayStrings[9] = "Cancelar";
AppointmentForm.DisplayStrings[10] = "Guardar y cerrar";
AppointmentForm.DisplayStrings[11] = "Introduzca el nombramiento";

VB

'Localization for AppointmentForm. 
AppointmentForm.DisplayStrings(0) = "Tema"
AppointmentForm.DisplayStrings(1) = "Ubicación"
AppointmentForm.DisplayStrings(2) = "Mostrar el tiempo"
AppointmentForm.DisplayStrings(3) = "Recordatorio"
AppointmentForm.DisplayStrings(4) = "Evento"
AppointmentForm.DisplayStrings(5) = "Hora de inicio"
AppointmentForm.DisplayStrings(6) = "Hora de finalización"
AppointmentForm.DisplayStrings(7) = "Etiqueta"
AppointmentForm.DisplayStrings(9) = "Cancelar"
AppointmentForm.DisplayStrings(10) = "Guardar y cerrar"
AppointmentForm.DisplayStrings(11) = "Introduzca el nombramiento"

 

Note:

The following is the definition for DisplayStrings array. You can specify the array index for default strings that has to be localized or changed.

C#

//Default strings for AppointmentForm. 
public static string[] DisplayStrings = new string[]
{
      "Sub&ject:", 
      "&Location:",
      "Sho&w time as:",
      "&Reminder:",  
      "All Day Event",  
      "En&d Time:",  
      "Start Time&:",  
      "La&bel:",  
      "subject",  
      "Cancel",  
      "Save and Close",  
      "Enter Appointment",
      "Delete this appointment that spans more than one day?", 
      "Delete a Span",
      "Delete Span",
      "Edit Recurring",
      "Make Recurring"
};

VB

'Default strings for AppointmentForm. 
Public Shared DisplayStrings() As String = 
{ 
      "Sub&ject:", 
      "&Location:",
      "Sho&w time as:",
      "&Reminder:",
      "All Day Event",
      "En&d Time:",
      "Start Time&:", 
      "La&bel:",
      "subject",
      "Cancel",
      "Save and Close",
      "Enter Appointment",
      "Delete this appointment that spans more than one day?",
      "Delete a Span",
      "Delete Span",
      "Edit Recurring",
      "Make Recurring"
}

The metro appointment form’s default strings can be changed using the DisplayStrings static property of MetroAppointmentForm class.

Screenshot

Show the default setting in schedule

Samples:

C#: Localization

VB: Localization

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied