Groups | Blog | Home
all groups > dotnet internationalization > august 2005 >

dotnet internationalization : 2005 beta 2 localization issue


Grégoire Poncet
8/23/2005 12:00:00 AM
Hi,

I made a complete webshop application that I have to multilanguage-enable.
The Web application is based on a master page and user controls where I
putted a DropDownList control filled with the languages that I want to be
available.
I understood that because of that I have to use the Explicit Localization.
So I created a App_GlobalResources folder and putted my resx files in it.
Then I set up in the CodeFile of my pages (in the Page_Load event) the
Thread.currentThread.currentCulture and
Thread.currentThread.currentUICulture to the Culture depending of the value
of the selected item in the DropDownList Control.

And .... nothing...

Any point that I might miss ?


Greg P.

achimru NO[at]SPAM online.microsoft.com (
9/1/2005 7:15:17 PM
Hi Grégoire,
setting the thread's CurrentCulture and CurrentUICulture in the Page_Load
event is too late in the page lifecycle. You can add the method
InitializeCulture() in which you can change these settings. How this is
done is shown in the ASP.NET localization Quickstart:
http://beta.asp.net/QUICKSTART/aspnet/doc/localization/localization.aspx
(see the sample at the bottom of this page).

Achim Ruopp

This posting is provided "AS IS" with no warranties, and confers no rights.
AddThis Social Bookmark Button