I am testing the new version of the scheduler with a trial version. I would like to translate the Scheduler to german. With the file schedule.locale.de.js all menus are translated correctly. Unfortunately the date formatting does not work with the PresetManager. If someone has a hint?
Support Forum
Hi!
There are few date formats used for PresetManager
For example
PresetManager : {
hourAndDay : {
topDateFormat : 'ddd MM/DD',
middleDateFormat : 'LST',
displayDateFormat : 'll LST'
}
},
Please check these docs
https://www.bryntum.com/docs/scheduler/#Scheduler/preset/PresetManager#localizing-view-presets
Hi ocl,
I have modified our demo https://www.bryntum.com/examples/scheduler/localization/ changing the file Scheduler/examples/localization/locales/custom.locale.De.js
the PresetManager.hourAndDay
config like this:
PresetManager : {
...
hourAndDay : {
topDateFormat : 'dd MM.DD',
middleDateFormat : 'LST',
displayDateFormat : 'll LST'
},
...
},
And it worked fine:
Please, on your project, run on your console (chrome dev tools) this command and make sure the result is your locale ("De"):
scheduler.localeManager.locale.localeName; // output "De"
Also check if your new date format are on scheduler.localeManager.locale.PresetManager.hourAndDay
:
scheduler.localeManager.locale.PresetManager.hourAndDay;
// output:
// {topDateFormat: "dd MM.DD", middleDateFormat: "LST", displayDateFormat: "ll LST"}
If it is not applying the locale, please share your code showing how are you applying the De
locale. I checked your locale file but we need to know how you are applying and/or calling/adding it to your app.
Thank you.
Best regards,
Fabio
Hi ocl,
Could you please share your solution? We need to see how and where do you apply your localization and presets.
Meanwhile please check my response here about generic data formatting, may be helpful for you too: viewtopic.php?f=52&t=15379&p=77340&hilit=DateTimeFormat#p77340
All best,
Alex
All the best,
Alex
For testing purposes I have modified the code. The scripts are loaded directly in the Index.html. This should set the localization directly.
With ExtJs the scheduler is created. The LocalManager is set correctly
Unfortunately I cannot share this solution. With Bryntum Scheduler 2.0.0 it worked.I try to update the scheduler with the trial version