I would like to customize the ASP.NET AJAX Controls in spanish...
How can this be done, specifically for the CalendarExtender?
Hey,
The calendar extender is part of the AJAXControlToolkit; doesn't it already support spanish? I know it supported several languages (as it creates a bunch of language folders when you import it). If it doesn't support spanish already, I would be shocked by that.
The Ajax toolkit loads a bunch of resource files for many languages but how do I set that property... I have my whole website set to
<globalizationculture="es-ES"uiCulture="es-ES"/>
Obviously in the webconfig but those values seem not to be affecting the calendar's layout at all.
Hi algarrobo,
If you mean this control:
http://asp.net/AJAX/Control-Toolkit/Live/Calendar/Calendar.aspx
It is already localized as brian said. First please make sure you are using the latest ASP.NET AJAX Control Toolkit.
Based on my understanding, you also need to set theEnableScriptGlobalization andEnableScriptLocalization properties of ScriptManager to true.
When theEnableScriptGlobalization property is set totrue, globalized ECMAScript (JavaScript) functions such as theDate.localeFormat method display culture-specific information.
http://www.asp.net/ajax/documentation/live/mref/P_System_Web_UI_ScriptManager_EnableScriptGlobalization.aspx
While theEnableScriptLocalization property is used by ScriptManager object to retrieve script files for the current culture.
http://www.asp.net/AJAX/Documentation/Live/mref/P_System_Web_UI_ScriptManager_EnableScriptLocalization.aspx
0 comments:
Post a Comment