Last post Jun 04, 2008 07:49 PM by AndrewSeven
Apr 17, 2008 08:03 AM|k_nitin_r|LINK
I've been planning localization for my web pages to provide multilingual support and have investigated explicit globalization, which works fine. However, I've been unable to get implicit localization working - even the implicit localization generated by
the IDE doesn't seem to work.
I've added the Culture and UICulture attributes to the Page class:
This is the meta attribute added to the button:
<asp:Button ID="Button2" runat="server" Text="Localize Me" meta:resourcekey="Button2" />
This is the setting I've added to the web.config file:
<globalization culture="auto" uiCulture="auto" enableClientBasedCulture="true" />
Under App_LocalResources, I've got a Default.aspx.en-us.resx file with Button2.Text set to "English Button 1". I've tried the same with other languages too .
For this sample I'm trying to build, I'm using Visual Web Developer 2008 (ASP.NET 3.5) and am running the project directly from the IDE (I'm not using IIS).
Any help appreciated.
Jun 04, 2008 07:49 PM|AndrewSeven|LINK
The auto setting relies on the browser sending an http header for accept-languages.
Which languages is your browser set to accept?