1

After having found this site and this post I made this fiddle. If Ext.Date.monthNames is defined (for german translation) it is not possible to select march, october or december... The actual month is selected instead (may for example today). If it is not defined, it is possible to select those months... Amazing...

Does someone have any suggestion?
(tested on Chromium 50.0... 64bit)

Community
  • 1
  • 1
Michel
  • 571
  • 1
  • 4
  • 19
  • It appears that the problem is solved with the latest version of ExtJS (6.0.2)... But I use version 5.1 GPL and 6.0.2 has no GPL release – Michel May 13 '16 at 00:04
  • I have tried to reproduce in your fiddle (ExtJS 5.1.0), and managed to select März 2016. I just had to doubleclick "Mär" and "März 2016" was written in the box. Not sure what the problem is. – Alexander May 13 '16 at 07:10

2 Answers2

1

I know the solution to this problem. You are not overriding the monthNumbers property of Ext.Date object. So in order to change the months name to German months names do this:

Ext.Date.monthNames = ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'];

Ext.Date.monthNumbers = {Januar: 0, Jan: 0, Februar: 1, Feb: 1, März: 2, Mär: 2, April: 3, Apr: 3, Mai: 4, Mai: 4 , Juni: 5, Jun: 5, Juli: 6, Jul: 6, August: 7, Aug: 7, September: 8, Sep: 8, Oktober: 9, Okt: 9, November: 10, Nov: 10, Dezember: 11, Dez: 11};

And that's it, your fiddle will be working as intended(I have tested it).

This sencha forum link could be useful.

Abdul Rehman Yawar Khan
  • 1,088
  • 3
  • 17
  • 40
-1

There is nothing need to add month name the default name already here sencha doc

RaviPatidar
  • 1,438
  • 1
  • 18
  • 29