So far, I was under the impression that ASP.NET web forms localization works by overriding Page.InitializeCulture
and setting Page.Culture
and/or Page.UICulture
according to some user choice. In fact, the documentation of Page.InitializeCulture even says so:
The InitializeCulture method contains no coding logic. Control developers extending the functionality of the Page class can override the InitializeCulture method to initialize the Culture and UICulture information for the page.
However, following the link to Culture
or UICulture
yields the following warning:
This API supports the product infrastructure and is not intended to be used directly from your code.
Is the warning rubbish or am I on the wrong track and localization should be done in some other way?