DateControl Xojo Plugin

DateControl.CustomizeLocalization Event

Use this event to put custom localization for the OS X drop down calendar. If this event is not used then the calendar is automatically localized using system locale.

CustomizeLocalization(
   shortMonthNames() as String,
   shortDayNames() as String)

Parameters

shortMonthNames()
Empty array of short 3 letter month name, you are supposed to add 12 months to this if your manually localizing.
shortDayNames()
Empty array of short 3 letter day name, you are supposed to add 7 days to this if your manually localizing.

Remarks

To localise then provide the month and day names in the event. If to few are provided the localization for either days or months or both is skipped and it falls back to auto localize mode.



Sub CustomizeLocalization(shortMonthNames() as String, shortDayNames() as String)
    shortDayNames.Append("Sun")
    shortDayNames.Append("Mán")
    shortDayNames.Append("Þri")
    shortDayNames.Append("Mið")
    shortDayNames.Append("Fim")
    shortDayNames.Append("Fös")
    shortDayNames.Append("Lau")
   
   
    shortMonthNames.Append("Jan")
    shortMonthNames.Append("Feb")
    shortMonthNames.Append("Mar")
    shortMonthNames.Append("Apr")
    shortMonthNames.Append("Maí")
    shortMonthNames.Append("Jún")
    shortMonthNames.Append("Júl")
    shortMonthNames.Append("Ágú")
    shortMonthNames.Append("Sep")
    shortMonthNames.Append("Okt")
    shortMonthNames.Append("Nóv")
    shortMonthNames.Append("Des")
   
End Sub





This event has no effect on the Windows drop down calendars since those are native Windows controls.

See Also

DateControl Control