PDA

View Full Version : [CLOSED] Dateparse error for french translation



senacle
18 Mar 2010, 1:51 AM
Hello,


Ext version tested:

Ext 3.2 beta


Adapter used:

ext


css used:

only default ext-all.css
custom css (include details)




Browser versions tested against:

IE7
FF3.6 (firebug 1.5.3 installed)
Chrome 4


Operating System:

WinXP Pro


Description:


In the ext-lang file, there's this section



if(Ext.form.DateField){
Ext.apply(Ext.form.DateField.prototype, {
disabledDaysText : "Disabled",
disabledDatesText : "Disabled",
minText : "The date in this field must be after {0}",
maxText : "The date in this field must be before {0}",
invalidText : "{0} is not a valid date - it must be in the format {1}",
format : "m/d/y",
altFormats : "m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d"
});
}


The french translation :



if(Ext.form.DateField){
Ext.apply(Ext.form.DateField.prototype, {
disabledDaysText : "Désactivé",
disabledDatesText : "Désactivé",
minText : "La date de ce champ doit être postérieure au {0}",
maxText : "La date de ce champ doit être antérieure au {0}",
invalidText : "{0} n'est pas une date valide - elle doit être au format : {1}",
format : "d/m/y",
altFormats : "d/m/Y|d-m-y|d-m-Y|d/m|d-m|dm|dmy|dmY|d|Y-m-d"
});
}


There's this bug in ext-all-debug.js (ligne 58912)



Date.parseDate(value + (" " + this.initTime), format + (" " + this.initTimeFormat)) is undefined

When i set

format : "d/m/Y",
there's no bug.

No bug in Extjs3.1.1

Jamie Avins
18 Mar 2010, 7:59 AM
What version are you using? Please try to follow the bug guidelines at: http://www.extjs.com/forum/showthread.php?t=71015

senacle
18 Mar 2010, 11:23 PM
OOPs ! I forgot to specify at least the ext version.

I've updated my first post.

Jamie Avins
19 Mar 2010, 8:22 AM
The beta had a specific bug which affected all date parsing that has been fixed. You shouldn't be seeing this any longer in svn.