In ASP .Net application, InitializeCulture() method of the Page class will be called by the sub classes generated by the compiler.
But in the .Net application hosted in the SharePoint Server, InitializeCulture() method is not being called by the sub classes generated or by the Compiler. So if you implement InitializeCulture() method in a SharePoint application, make sure you call the InitializeCulture() method from the Constructor of the class.
Example,
namespace SPLibrary {
public class Default : Microsoft.SharePoint.WebPartPages.WebPartPage {
public Default() {
this.InitializeCulture();
}
protected override void InitializeCulture() {
Thread.CurrentThread.CurrentCulture = new CultureInfo("ta-IN");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("ta-IN");
base.InitializeCulture();
}
}