Hi Dave
It's a bit complicated to explain, but i will do my best.
1 step
- DesktopPortalBanner.ascx
Add 2 or more imagebuttons with the flags you want to implement
2 step
- Configuration.cs
Make abstract the Configuration class
Make abstract the SaveSiteSettings() Method
Remove static method GetSiteSettings() (This method will be necessary later)
Make many classes as the languages as you want.
- for a Portuguese language example:
Make a class that inherits Configuration
public Class ConfigurationPor : Configuration
this class as two methods
1- public static GetSiteSettings()
2- public override SaveSiteSettings()
this class points for an individual xml (PortalCfgPor.xml) each Configuration points to individual XML Config File
3- Step
Inside the if in GetSiteSettings and inside the if in SaveSiteSettings add the code:
HttpContext.Current.Cache.Insert("PortalLang","por");
this is because you need the lang setting to know the lang you use
4- Step
- DesktopPortalBanner.ascx
Method ClickEvent on the flag
add the folow lines of code to do enter in a different language
Cache.Remove("SiteSettings");
ConfigurationFra.GetSiteSettings();
Response.Redirect(Request.RawUrl);
If you are getting it i will continue...
this is not all...
João Martins