Page 3 of 7 FirstFirst 12345 ... LastLast
Results 21 to 30 of 62

Thread: How to translate Ext GWT's messages?

  1. #21
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572

    Default

    smill, its all in the link I provided. You can also place that locale property inside the HTML which will set the default for the GWT application.

  2. #22
    Ext User
    Join Date
    Jul 2008
    Posts
    33

    Default

    Quote Originally Posted by gslender View Post
    smill, its all in the link I provided. You can also place that locale property inside the HTML which will set the default for the GWT application.
    Thanks for your help, but I don't get it. German is the default language so I don't need to make use of the "?locale=XX" part. Unfortunately GXT is still working in english. When I add the "?locale=de" part to the url I get GXT working in german. My gxt.xml looks like

    Code:
    <module>
        <!-- Inherit the GWT stuff -->
        <inherits name="com.google.gwt.user.User" />
        <inherits name="com.google.gwt.i18n.I18N" />
    
        <!-- Add GXT support -->
        <inherits name="com.extjs.gxt.ui.GXT"/>
    
         <!-- Locale -->
        <extend-property name="locale" values="de"/>
        <extend-property name="locale" values="en"/>
        
        <!-- Entry point -->
        <entry-point class="..."/>
    </module>
    As I understood the text from your link I need to declare a default locale but I can't find how this works. I also tried to declare the locales within the HTML file but this doesn't work too.

    So what can I do?
    Thanks again!

  3. #23
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572

    Default

    as you didn't post your html file I can't say what you did wrong

    here is a snippet of a working html file that does work for me
    Code:
    <html>
    	<head>
          <meta name="gwt:property" content="locale=en_AU">
          <meta http-equiv="Content-Author" content="Grant Slender" />
    		<!--include the ext gwt styles-->
          <link rel="stylesheet" type="text/css" href="css/ext-all.css" />		
    	</head>

  4. #24
    Ext User
    Join Date
    Jul 2008
    Posts
    33

    Default

    Ah, now I know what you mean. I've to add the line to my HTML too. I thought I can add locale support by adding it in my gwt.xml OR in the HTML file.
    I added the line you mentioned and it worked!

    Thanks a lot for your patient help!

  5. #25
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572

    Default

    the line in the gwt.xml ensures GWT compiles a version of the app with locale support for the locales you defined - otherwise it only compiles a version for the default locale (which I think is en_US)

  6. #26

    Default Portuguese translation

    Here is the translations for pt_PT (and also for just pt).

    These were made from the pt_BR provided earlier. They have minor modifications (only the nuances from Portuguese to Brazilian).

    Another thing corrected was the fact that the MyMessages_pt.properties was NOT in UTF-8 and therefore all accentuations were being displayed incorrectly.

    Both files (pt_PT and pt) are now in UTF-8 and showing words correctly.

    Please be so kind as to include them in the next release of GXT (so that we don't have to manually insert them in the jar file...)
    Attached Files Attached Files

  7. #27

    Default Danish translation

    I have translated it into Danish (in utf-8).
    I hope it will be useful.

    Regards.

    Helge
    Attached Files Attached Files

  8. #28
    Sencha User darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242

    Default

    I have added and updated the translations for da, pt, and pt_PT. Thanks for the files.

  9. #29

    Default czech translation

    Czech translation

    cs
    UTF-8
    Attached Files Attached Files

  10. #30

    Default Russian translation

    Russian translation, ru
    UTF-8 coding
    Attached Files Attached Files

Page 3 of 7 FirstFirst 12345 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •