Development

#3548 ([PATCH] input_date_tag dosn't support sub culture option)

You must first sign up to be able to contribute.

Ticket #3548 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

[PATCH] input_date_tag dosn't support sub culture option

Reported by: rickysu Assigned to: FabianLange
Priority: minor Milestone: 1.1.0 RC2
Component: helpers Version: 1.1.0 RC1
Keywords: Cc:
Qualification: Unreviewed

Description

hi, When I use input_date_tag helper,I fond a problem. input_date_tag only support cultures like 'en,zh,etc...'. enen if my cultures is set to 'zh_TW' and put a 'calendar-zh_TW.js' into 'lang' folder.But it will use 'zh' not 'zh_tw'. so,I wrote a patch to solve this problem. :D

Attachments

FormHelper.php.patch (1.2 kB) - added by rickysu on 05/15/08 11:19:55.
Patch to solve culture problem

Change History

05/15/08 11:19:55 changed by rickysu

  • attachment FormHelper.php.patch added.

Patch to solve culture problem

05/15/08 22:47:43 changed by FabianLange

i am slightly worried about bc for 1.0 i guess for 1.1 this can be handled

06/08/08 18:00:27 changed by fabien

  • owner changed from fabien to FabianLange.

Fabian, I think we can safely commit this for 1.1.

06/09/08 09:33:30 changed by FabianLange

  • status changed from new to closed.
  • resolution set to fixed.

(In [9473]) added support to read sublocale calendar files. fixes #3548

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.