I made a sample application to test and learn the use of internationalization in Asp.Net. I generate the application, using resources files and I load all the "strings" to be displayed from the specified culture resource. for example: Dim rm
As ResourceManager =
New ResourceManager("Menu.Sample",
GetType(Menu.Sample).Assembly)
Label1.Text = rm.GetString("Label1")
I have a manager into a Base Class that manages the current culture for the specified user:
Dim sCul
As
String = HttpContext.Current.Session("cul")
' carga los datos de la cultura desde la session
If sCul <> ""
Then
Dim cul As
String = HttpContext.Current.Session("cul")
Dim culture As CultureInfo =
New CultureInfo(cul)
System.Threading.Thread.CurrentThread.CurrentUICulture = culture
System.Threading.Thread.CurrentThread.CurrentCulture = culture
End If
Now application is running OK.
But I want to add new languages, I mean new resource files.
I create a new resource file but I don't know how can I agregate to the existing ones. The resources files have the .resx extentions. I use the Regres and I generate the .resources files. But I must generate a .dll file.
Any suggestions ?
El Bruno
PD: My final website folder is like this
Menu
- bin
- en-US
Menu.resources.dll
- es-ES
Menu.resources.dll
Menu.dll
Menu.pdb
Sorry for my poor English.
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.