I believe you can set it with:
- Code: Select all
widget:lang=fr
for example.
But thanks for raising this. This is a bug as it should default to the current language. I have made this change in SVN. Here is the diff to fix this issue:
- Code: Select all
Index: Dataface/FormTool/calendar.php
===================================================================
--- Dataface/FormTool/calendar.php (revision 2370)
+++ Dataface/FormTool/calendar.php (revision 2371)
@@ -11,6 +11,9 @@
*/
$widget =& $field['widget'];
+ if ( !@$widget['lang'] ){
+ $widget['lang'] = Dataface_Application::getInstance()->_conf['lang'];
+ }
$factory =& Dataface_FormTool::factory();
$el =& $factory->addElement('calendar', $formFieldName, $widget['label']);
$el->setProperties($widget);
Best regards
Steve