After much mucking about with funny date validation, date field 'format' and 'altFormats' I finally realised that to make life easier I needed an Australian locale file! There wasn't one, but now there is!
The main problem with using the default (US) locale file for Australia is that unless one specifies the long altFormats shown below on each date field, a date entered as (say) 2/3/12 (March 2nd) might be changed onBlur to 3/2/12 (Feb 3rd)!
Attached is an edit of the en_GB file with extra altFormats:
to allow for any combination of leading zeroes or not and 2 or 4 digit years.
The default date field format is:
so as long as that is the one you want (ie equivalent to "dd/mm/yy") you wont need to define a format or altFormat on your date fields. I find that I am tending to use "j/n/y" --> "d/m/yy" for data entry which you could set in the config of the locale file if you wish. See:
To use: for ExtJS 4.x:
Unzip the attached Ext4 file into [your ext install folder]/locale/ext-lang-en_AU.js
For ExtJS 3.x:
Unzip the attached Ext3 file into [your ext install folder]/src/locale/ext-lang-en_AU.js
(NOTE: I have NOT tested the Ext3 file yet)
In your HTML include it after the "standard" ext includes and before your app code.
Please let me know via this post if there are any problems.
PS: I haven't looked at dynamic localisation yet. I think there are some posts on that but at least you will have a relevant file!
PPS: It was very tempting to change the OK,Cancel,Yes,No buttons to Cheers mate, Bugger off, You ripper! and No way!... ;-)