View Full Version : multilingual pages
How to create the site in multilingual font?
If i want to create the site in local language and the data should be disply in that language which i am retriving from database.
:rolleyes:
jeorg
11-23-2002, 02:19 PM
I don't know wich server language you are using
you can store your datas in a database separating what are general datas and local datas in two tables
then you can use a function to display the language
for ASP NET / VB NET :
-----------------------------
Public Class Culture
Public Shared Function DisplayCulture(Optional ByVal ci As String = "en-us") As CultureInfo
Dim CultInfo As CultureInfo
Try
CultInfo = New CultureInfo(ci)
Thread.CurrentThread.CurrentCulture = CultInfo
Catch
CultInfo = New CultureInfo("en-us")
Thread.CurrentThread.CurrentCulture = CultInfo
End Try
End Function
End Class
-----------------------------
then in you global.asax
-----------------------------
Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
session("lang") = "en-us"
Culture.DisplayCulture(Session("lang").ToString)
end Sub
-----------------------------
and you can definite the session as you like , with browser language or if the user presse a flag ect....
then you change the session value
session("lang") = UserLangValue
Thanks for ur reply which u sent for ASP NET / VB NET
My question was basically asked for ASP.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.