I have added 3 additional languages (fr, es-mx, de) to English in my company's website, and they're all working fine. I followed the MSDN walkthrough on creating localization.
I'm using Visual Studio 2010 / VB / dot-net 4.0 and I already have in my top line on all of my pages, this:
<%@ Page Title="USS Products & Services" Language="VB" MasterPageFile="~/products/products.Master" AutoEventWireup="false"
CodeFile="default.aspx.vb" Inherits="default" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>
I have 4 global resource (.resx) files in my global_apps directory. But what if I don't want just the browser alone to detect their language? I want to give them the option of choosing their own language.
How do I give the client the option between 4 flags -- 1 for each language -- and let them choose? Or maybe a rollover sitemap type of effect, where they can mouse over a language and choose it? Any help would be appreciated! Thanks!
Try this simple method: I've defined the languages in a dropdownlist and have a button select
Now Code:
Update: Sorry I forgot the override keyword. Now included it should work.
By the way, you're using VB, sorry I'vent seen this. The equivalent code is: