Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: [4.1.1 GA] startDay is not localized for DateField

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    1,018

    Default [4.1.1 GA] startDay is not localized for DateField

    REQUIRED INFORMATION

    Ext version tested:

    • Ext 4.1.1 GA

    Browser versions tested against:
    • Any

    Description:
    • The startDay config option is not localized for DateField. It is localized for DatePicker well, but DateField configures its DatePicker according its own startDay config. So, it stays the default 0.

    Code:
    createPicker: function() {
        var me = this,
            format = Ext.String.format;
    
        return new Ext.picker.Date({
            ...
            startDay: me.startDay,
            ...
        });
    }
    • Could you also suggest a good way to override locales? Something like this
      Code:
      Ext.onReady(function() {
          Ext.locale.es.form.field.Date.override({
              startDay: 1
          });
      });
      but without the "Ext.locale is undefined" JavaScript error

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,254

    Default

    Not quite sure what you're getting at.

    field.Date has a startDay config, which it passes to createPicker.

    Are you saying it's not in the locale file?
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    1,018

    Default

    Yes.

    I just expect it should be localized the same way as DatePicker is.

  4. #4
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,254

    Default

    In that case it's something that we're aware of. Locale files are, in general, out of date, we have it on our list to address.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  5. #5
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    1,018

    Default

    Quote Originally Posted by evant View Post
    In that case it's something that we're aware of.
    Do you mean exactly DateField startDay? Or on the whole?

    Would not you like to put it in the tracking system to don't forget?

  6. #6
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,254

    Default

    On the whole. We have a ticket open to review the localization process.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  7. #7
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    1,018

    Default

    Ok, thanks, Evan!

    I am just afraid you will forget about these minor issues

    Is there any time frame? At least, a release it is slated for.

  8. #8
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    1,018

    Default

    Hi Evan,

    The issue stayed in 4.1.2. Could you clarify is there any time frame for this issue?

  9. #9
    Sencha User
    Join Date
    Sep 2011
    Posts
    4

    Default

    In myp orject I have the same problem with locale. DateField calendar starts in Sunday instead of Monday in spanish locale (es-es).

    Is there any time frame to apply a correction to this bug?

  10. #10
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    1,018

    Default

    The issue stays in ExtJS 4.2.1 GA.

    I am using the following fix for now.
    Code:
    Ext.form.field.Date.override({
        initComponent: function () {
            if (!Ext.isDefined(this.initialConfig.startDay)) {
                this.startDay = Ext.picker.Date.prototype.startDay;
            }
    
            this.callParent();
        }
    });
    Object.NET
    Frameworks and Tools for .NET Developers
    --------------------------------------------------
    Ext.NET - Ext JS for ASP.NET - Examples | Twitter
    Bridge.NET - Write C#. Run JavaScript! - Live | Twitter
    --------------------------------------------------

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •