views:

68

answers:

2

i used .properties files to manage the language in java code. but how to change the language manually, i mean when the user want to change the language. in other word what google and facebook did to manage this ?

+1  A: 

Basically, you need to set the Locale that matches your users selection. There are some issues that you need to be aware of, but it should be fairly straight forward. There are a couple guides to get you started here, and here

Epcylon
+1  A: 

You might want to look at storing your UI texts in resource bundles, then offer your users a choice of locales that are known to the application and reload the UI for the user from the bundle loaded using the locale chosen.

rsp