B
Bruno Alexandre
Hi Guys,
I'm driving crazy here with Localization issue, this is what I have now:
masterpage.master - with some asp:linkbutton like this:
<asp:LinkButton PostBackUrl="~/login/Default.aspx" ID="lnkLogout"
runat="server" Text="<%$ Resources:language, menu_logout %>" />
Default.aspx - with some labels and Dropdowns for Login propose and in
the top of the page:
<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="Default.aspx.vb" Inherits="login_Default" Culture="auto:en-US"
UICulture="auto" %>
in Default.aspx.vb one of other thinks is:
Protected Overrides Sub InitializeCulture()
Dim lang As String = Request("ddLanguage")
If lang IsNot Nothing Or lang <> "" Then
Thread.CurrentThread.CurrentUICulture = New CultureInfo(lang)
Thread.CurrentThread.CurrentCulture =
CultureInfo.CreateSpecificCulture(lang)
End If
End Sub
and it works FINE!
but the language choose in this DEFAULT.ASPX file is not the same in the
other pages of the website, it only overrides the CultureInfo in this
DEFAULT.ASPX file...
How can I choose a language in the Default.aspx and have THAT language
across HOLE Webpage?
I'm USING GlobalResources and a Resource called Language.resx with
several for other languages like:
Language.pt.resx
Language.fr.resx
Language.da.resx
etc...
Anyone Know how can I manage this?
I already watch this HOW TO...
but this example is just for one page (even using globalResources)
Thanks in Advance.
Bruno Alexandre
"a Portuguese in København, Danmark"
I'm driving crazy here with Localization issue, this is what I have now:
masterpage.master - with some asp:linkbutton like this:
<asp:LinkButton PostBackUrl="~/login/Default.aspx" ID="lnkLogout"
runat="server" Text="<%$ Resources:language, menu_logout %>" />
Default.aspx - with some labels and Dropdowns for Login propose and in
the top of the page:
<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="Default.aspx.vb" Inherits="login_Default" Culture="auto:en-US"
UICulture="auto" %>
in Default.aspx.vb one of other thinks is:
Protected Overrides Sub InitializeCulture()
Dim lang As String = Request("ddLanguage")
If lang IsNot Nothing Or lang <> "" Then
Thread.CurrentThread.CurrentUICulture = New CultureInfo(lang)
Thread.CurrentThread.CurrentCulture =
CultureInfo.CreateSpecificCulture(lang)
End If
End Sub
and it works FINE!
but the language choose in this DEFAULT.ASPX file is not the same in the
other pages of the website, it only overrides the CultureInfo in this
DEFAULT.ASPX file...
How can I choose a language in the Default.aspx and have THAT language
across HOLE Webpage?
I'm USING GlobalResources and a Resource called Language.resx with
several for other languages like:
Language.pt.resx
Language.fr.resx
Language.da.resx
etc...
Anyone Know how can I manage this?
I already watch this HOW TO...
http://msdn.microsoft.com/asp.net/learning/learn/newtodevelopment/default.aspxASP.NET HOW DO I Video Series: Localization
but this example is just for one page (even using globalResources)
Thanks in Advance.
Bruno Alexandre
"a Portuguese in København, Danmark"