[CLOSED] Localization - EventMasks and stuff without ID?

  1. #1

    [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?

    <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]
  2. #2
    Hi,

    Please use
    this.Button1.DirectEvents.Click.EventMask.Msg = "Some Message";

Similar Threads

  1. [CLOSED] Ext.NET + MVC 3 + Localization
    By jlosi in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 18, 2011, 8:20 PM
  2. Replies: 0
    Last Post: Mar 25, 2011, 3:12 PM
  3. [CLOSED] IE6 - layout - Stuff flying arround
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 35
    Last Post: Feb 24, 2011, 12:12 PM
  4. EventMasks stopped working
    By EzaBlade in forum 1.x Help
    Replies: 5
    Last Post: Mar 24, 2009, 6:21 PM
  5. Replies: 1
    Last Post: Oct 13, 2008, 12:42 PM

Tags for this Thread

Posting Permissions