Hi everyone,
In DNN 5.0,
I try to make multilanguage (French and English) for my website.
I put some files resource follow the structure in DNN
DesktopModules
ProjectX
LeftNavigation
App_LocalResources
leftnav.ascx.en-us.resx
leftnav.ascx.fr-fr.resx
leftnav.ascx
And I put some code in leftnav.ascx.vb
Dim CurrentCulture as String = "fr-fr"
System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture(CurrentCulture)
System.Threading.Thread.CurrentThread.CurrentUICulture = New System.Globalization.CultureInfo(CurrentCulture)
SlideMenu.Text = Localization.GetString("Hello", Me.LocalResourceFile) 'SlideMenu is a label
But nothing will be displayed because lblText cannot receive any results.
I know Me.LocalResourceFile maybe is not correct. It shows like
I dont know why it adds more /slidemenu at the end of path
What should I do? How can I do to make lblText get the right value.
Sorry, my english is bad.
Thank you,
Best regards,