ZF-7814: setLocale() for DateTextBox form element doesn't work
Description
I have installed Dojo locally and bootstrapped it in the following way:
Zend_Dojo::enableView($view);
$view->dojo()->setDjConfig(array(
'parseOnLoad' => true,
'locale' => $language // Set language
))
->setLocalPath($fc->getBaseUrl() . '/js/dojo/dojo.js')
->addStyleSheetModule('dijit.themes.tundra')
->disable(); // Enable only when necessary
If I try to change DateTextBox locale from default ($language in bootstrap) to something else, for example to en, by using setLocale(), nothing happens.
$this->addElement('DateTextBox', 'calendar', array(
'required' => true,
'label' => 'calendar',
'formatLength' => 'short',
'locale' => 'en',
));
Comments
Posted by Rob Allen (rob) on 2012-11-20T20:53:16.000+0000
Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".
Feel free to re-open and provide a patch if you want to fix this issue.