Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6561893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:38:38+00:00 2026-05-25T13:38:38+00:00

To make my GWT application internationalizable, I created a message interface as follows: @DefaultLocale(fr)

  • 0

To make my GWT application internationalizable, I created a message interface as follows:

@DefaultLocale("fr")
@Generate(format =
   { "com.google.gwt.i18n.rebind.format.PropertiesFormat" }, fileName = "Messages", locales =
   { "fr", "en" })
public interface MessageResources extends Messages
{

   public static final MessageResources MR = GWT.create(MessageResources.class);

   @DefaultMessage("Identifiant")
   public String login();

   @DefaultMessage("Mot de passe")
   public String password();
}

Then I configured my project to support the English and French as follow:

<inherits name='com.google.gwt.i18n.I18N' />
    <extend-property name="locale" values="fr" />
    <extend-property name="locale" values="en" />

I compiled my project with the option -extra extra, and I copied the two files. properties in the same package as the interface. But when I run my application the parameter ?Locale=en has no effect and the application remains in French!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:38:38+00:00Added an answer on May 25, 2026 at 1:38 pm

    The properties files are read at compile-time, so you have to re-compile (GWT compile) each time you modify them.

    The first compilation with -extra is only a “help” in generating a “skeleton” properties file; you could have written it by yourself (provided you know what to put in there).

    Oh, and BTW, it’s locale=en, not Locale=en (lowercase L)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use a ClientBundle in my GWT application to make multiple images
We have RoR application and we are planning to make js interface(extjs or closure)
I am trying to make GWT application work in a portlet. Portlet is a
I have an application that uses gwt-dnd to make boxes draggable, but when there
Is it possible to make a gwt rpc blocking? i.e. the application blocks until
I wonder how can I make a cross domain request from a gwt application
I am attempting to create a Google Web Toolkit (GWT) application that also uses
I need to make my GWT application be an OpenID consumer and it looks
I am using the latest Eclipse, and GWT Designer, to make a swing application
I have a web application that I developed with the Google Web Toolkit (GWT),

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.