Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Problem with i18n

    hello,

    I intend to use local PT in SmartGwt, but I'm not getting.

    I'm using the latest SmartGwt and GWT in netbeans 6.8.

    In the html file I have these lines:
    Code:
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta name="gwt:property" content="locale=pt">

    In the xml file I have:
    Code:
    <inherits name="com.google.gwt.user.User"/>
    <inherits name="com.google.gwt.xml.XML" />
    <inherits name="com.google.gwt.core.Core"/>
    <inherits name="com.google.gwt.user.History"/>
    <inherits name="com.google.gwt.i18n.I18N"/>
    <inherits name="com.smartgwt.SmartGwtNoScript"/>
    <inherits name="com.smartclient.theme.enterprise.Enterprise"/>	
    	
    <entry-point class="org.test.client.
    
    <extend-property name="locale" values="pt"/>

    when I run this code:
    Code:
    SC.ask("Teste", result, new BooleanCallback() {
    
             public void execute(Boolean value) {
                    label.setText(result);
             }
    } );
    appears in English Yes/No instead of Sim/Não.

    I tried to put in the url "?Locale=pt" and continues in English.


    Can anyone help?

    thanks

    #2
    Try "?locale=pt"

    Comment


      #3
      thanks for the reply.

      I tested this: http://192.168.36.128:8080/index.html?locale=pt
      continues in English.

      Using my messages, they are translated. The smartgwt is always that continues in English.

      Any suggestions?

      Comment


        #4
        It works
        I was testing with just SC.ask.
        Now added new Canvas().Draw(), and the text appears already translated.

        Thanks

        Comment

        Working...
        X