I followed the Scott Hanselman tutorial on Javascript globalization validation. This is a great tutorial that made me understand a topic that I am a little unfamiliar with. The only problem is that it is a little outdated because the link that it provided to files like jquery.glob.fr.js is invalid. But jquery redirects to an improved version.
That's fine, but they just don't do what they promise. I tried to find tutorials and information about this, but the only help on the Internet is the ReadMe file. They claim that it is =>
Globalize.culture( "fr" ); console.log( Globalize.culture().name ) // "fr" Globalize.culture( "fr-FR" ); console.log( Globalize.culture().name ) // "fr-FR"
But when I try, my alertbox returns en instead of nl-BE
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script> <script src="../../Scripts/globalize.culture.nl.js" type="text/javascript"></script> <script src="../../Scripts/globalize.culture.nl-BE.js" type="text/javascript"></script> <script src="../../Scripts/modernizr-1.7.js" type="text/javascript"></script> <script src="../../Scripts/globalize.js" type="text/javascript"></script> @Html.MetaAcceptLanguage() <script type="text/javascript"> $(document).ready(function () { </script>
At first I tried Globalize.culture (data), it did not work, so I tried nl-BE, as indicated in the documentation. No difference.
How do I change the culture to nl-BE instead of en?
javascript jquery asp.net-mvc asp.net-mvc-3 globalization
BBQ Jul 19 '11 at 15:49 2011-07-19 15:49
source share