WebDateControl Xojo Web control

WebDateControl.AddCustomLocalization Method

Adds custom localization data or language.

AddCustomLocalization(
   locale as String,
   localizationData as String)

Parameters

locale
The locale identifier to add.
localizationData
The localization data to add. See the example bellow.

Remarks

This method should only be called from within the SetupCustomLocalization event.

Here is example, note though you do not need to setup English unless you wish to change some setting in it.

Sub SetupCustomLocalization() Handles SetupCustomLocalization
    me.AddCustomLocalization( _
       "en", _
       "{" + _
       "days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']," + EndOfLine + _
       "daysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']," + EndOfLine + _
       "daysMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']," + EndOfLine + _
       "months: ['January','February','March','April','May','June', 'July','August','September','October','November','December']," + EndOfLine + _
       "monthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']," + EndOfLine + _
       "today: 'Today'," + EndOfLine + _
       "clear: 'Clear'," + EndOfLine + _
       "dateFormat: 'mm/dd/yyyy'," + EndOfLine + _
       "timeFormat: 'hh:ii aa'," + EndOfLine + _
       "firstDay: 0" + _
       "}")
End Sub

See Also

WebDateControl Class