The Artima Developer Community
Sponsored Link

Java Answers Forum
mix languages in Java

1 reply on 1 page. Most recent reply: May 11, 2002 7:44 PM by Matt Gerrans

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Maysoon

Posts: 64
Nickname: hm
Registered: Mar, 2002

mix languages in Java Posted: May 10, 2002 11:49 PM
Reply to this message Reply
Advertisement
Hello,
How can i write a java program that can include several languages,such that when i press
some button or switch on the GUI of the application program ,the GUI convert it self ,for example,
from english to arabic.
thanks.


Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: mix languages in Java Posted: May 11, 2002 7:44 PM
Reply to this message Reply
This is called localization (or l10n in the corpospeak vernacular).

You'll want to look into java.util.ResourceBundle and its children (eg. PropertyResourceBundle). These allow you to have the same set of resources in many different languages. The language that is selected is based on your locale, so that if the target machine's locale is set to Italian, that is the language that you'll see on the menus and whatnot.

Flat View: This topic has 1 reply on 1 page
Topic: java.security.AccessControlException on Macintosh Previous Topic   Next Topic Topic: Changing the blue-color, os-menubar, with java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use