search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Problem with localization

Asked by Alex
10 years ago.

I'm trying to register new localization, but nothing happens. Everything is empty.

var localeMy = new DayPilot.Locale('my', {
dayNames:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],
dayNamesShort:['Su','Mo','Tu','We','Th','Fr','Sa'],
monthNames:['January','February','March','April','May','June','July','August','September','October','November','December',''],
timePattern:'hh:mm:tt',
datePattern:'MM/dd/yyyy',
dateTimePattern:'MM/dd/yyyy h:mm:tt',
timeFormat:'Clock24Hours'
});

dp.locale.register(localeMy);

Answer posted by Dan Letecky [DayPilot]
10 years ago.

Alex,

You need to register it using DayPilot.Locale.register() method:

DayPilot.Locale.register(localeMy);

The .register() method must be invoked on DayPilot.Locale object directly (not on an instance created using new ...).

See also:
http://api.daypilot.org/daypilot-locale-register/

Comment posted by Alex
10 years ago.

thank you much. it works.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.