[CLOSED] How to set Ext.Net in Spanish ?

  1. #1

    [CLOSED] How to set Ext.Net in Spanish ?

    Hi, I need to show to the user all the texts in spanish (column filters, error messages, and more..)

    I try add the following line to the web.config file

    <extnet theme="Default" initScriptMode="Linked" locale="es-ES" />
    and in the page's ResourceManager

    @(x.ResourceManager().Locale("es-ES"))
    but neither of those two work.


    any idea ?
    Last edited by Daniil; Oct 09, 2015 at 11:10 AM. Reason: [CLOSED]
  2. #2
    Hi @keeper,

    You set a Locale correctly. Most likely you've encountered to something that is not localized. That happens. In this case there should be a way to localize it manually.

    For example, an AllowBlank error message is localized. In the test case bellow please move a mouse over the TextField. The error message in Spanish appears for me.

    Example
    @{
        var X = Html.X();
    }
    
    <!DOCTYPE html>
    <html>
    <head>
        <title>Ext.Net.MVC v3 Example</title>
    </head>
    <body>
        @X.ResourceManager().Locale("es-ES")
    
        @(X.TextField().AllowBlank(false)
            .Listeners(events => events.AfterRender.Handler = "this.validate();")
        )
    </body>
    </html>
    Please provide your test case to reproduce not localized text.

Similar Threads

  1. Ext.Net-VS 2010 (Spanish): restart app
    By krlos02 in forum 1.x Help
    Replies: 3
    Last Post: Aug 16, 2011, 9:16 PM
  2. Replies: 1
    Last Post: Dec 20, 2010, 5:43 AM
  3. Replies: 8
    Last Post: Nov 28, 2008, 1:36 PM

Tags for this Thread

Posting Permissions