Apr 07, 2011, 9:10 PM
[CLOSED] Localization - EventMasks and stuff without ID?
Hello!
I have been reading a bit on Localization, both here and on other places on the net. The first question that I havent found an answer for is:
how do I localize text in the EventMask for example? Stuff that does not have an ID?
Please note that I am not using built-in localization in ASP.NET since I dont want to use actual files for translation - we are using a backend-system that in turn is connected to a db. But basically its our own language-support-methods used.
For example:
I have been reading a bit on Localization, both here and on other places on the net. The first question that I havent found an answer for is:
how do I localize text in the EventMask for example? Stuff that does not have an ID?
<ext:Button ID="Button1" runat="server" Text="Log in" Icon="Accept">
<DirectEvents>
<Click OnEvent="Button1_Click">
<EventMask ShowMask="true" Msg="Logging in..." MinDelay="0" />
</Click>
</DirectEvents>
</ext:Button>
How do I replave "Logging in" in the EventMask depening on language?Please note that I am not using built-in localization in ASP.NET since I dont want to use actual files for translation - we are using a backend-system that in turn is connected to a db. But basically its our own language-support-methods used.
For example:
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
// Getting string "Log_out" in the language the the logged user has chosen
Button1.Text = SRef.main.GetTranslation(this.GetType().BaseType, "Log_out");
}
}
Last edited by Daniil; Apr 09, 2011 at 1:00 PM.
Reason: [CLOSED]