Revision: 1612
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1612&view=rev
Author:   cimorrison
Date:     2010-11-18 10:02:40 +0000 (Thu, 18 Nov 2010)

Log Message:
-----------
Fixed a bug which meant that datepicker wasn't setting the correct regional 
setting if the $default_language_tokens was of the form xx-yy, eg "zh-cn";

Modified Paths:
--------------
    mrbs/trunk/web/Themes/default/header.inc

Modified: mrbs/trunk/web/Themes/default/header.inc
===================================================================
--- mrbs/trunk/web/Themes/default/header.inc    2010-11-17 20:47:03 UTC (rev 
1611)
+++ mrbs/trunk/web/Themes/default/header.inc    2010-11-18 10:02:40 UTC (rev 
1612)
@@ -99,7 +99,7 @@
   // changing is disabled, we fall back to a browser specified locale if the 
locale
   // in the config file is not available in datepicker.
   
-  $default_lang = strtolower($default_language_tokens);
+  $default_lang = locale_format($default_language_tokens, '-');
   
   echo "$.datepicker.setDefaults($.datepicker.regional['$default_lang']);\n";
   $datepicker_langs = $langs;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to