I\'m creating a website with ASP.net MVC 2.0 which uses two different languages (English and Persian). I want to have two different layouts for these languages, English has a le
Not sure if this is what you ar elooking for, but I did this a few years back in VBScript. Not ideal, but it works for me:
Figure out the language:
<%
Dim sLanguage
sLanguage = Request.QueryString("lang")
Dim userLocale
userLocale=Request.ServerVariables("HTTP_ACCEPT_LANGUAGE")
Dim sDomain
sDomain = Request.ServerVariables("HTTP_HOST")
Dim languages
languages = Split(userLocale, ",", -1)
...
Set the style sheet...
<% select case MasterLanguage
case "PORTUGUESE"%>
<%
case "SIMPCHINESE"
%>
<%
I can post more snippets if this is helpful.