Hi,
I am trying to develop a custom module for a multi language site that we made in DNN 6.We use a dnn:language control to enable the users to choose their language.
When I switch from one language to another the language of my control doesn't come along.
When I use the following, only the browser language is shown:
<asp:Label ID="Label3" runat="server" Text="Label" ResourceKey="Label1"></asp:Label>
I have the following code in my code-behind file:
CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture;
Label1.Text = Localization.GetString("BitwiseBreedbandCalculatorControl_Page_Load_Hello", LocalResourceFile);
Label2.Text = Localization.GetString("BitwiseBreedbandCalculatorControl_Page_Load_Hello", LocalResourceFile, Thread.CurrentThread.CurrentCulture.Name);
When I run this code, only Label2 where I explicity set the language shows the correct values. So the the value of CurrentCulture is correct, but my Label doesn't seem to use it.
I would like to have this working without having to set the language explicitly for all my controls. Could anyone please help?
Thank you
Bob Groenewoud