How to use may language in java

hello there,

i want to have my users to have an option to select between two language for example english and Persian.how do i have to go about with it.i have not done anything like this before.please guide me how is this done.also is persian supported in java.
appreciate your help.

cheers
zolf
zolfAsked:
Who is Participating?
 
objectsCommented:
sorry only use windows during platform testing, which I don't do a lot of myself these days :)
As I said above you'd need to implement that yourself.
0
 
objectsCommented:
you basically achieve it using property files (resource bundles) which contain all the language specific text required, one for each language

The in your code instead of using text directly you do a lookup

So instead of:

Hi

you would use:

i18n.getProperty("hi");

where i18m is your resource bundle.
0
 
objectsCommented:
some good starting background:

http://java.sun.com/docs/books/tutorial/i18n/
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
zolfAuthor Commented:

thanks objects for your comment

is it possible to get a menu which is there on the left of winXP in swing
0
 
objectsCommented:
which menu is that exactly?
u can implement  whatever menus in your application u want but u need to implement them yourslef.
0
 
zolfAuthor Commented:

i mena the menu you get on the right side of the window.for example when you open My Computer you get a menu on the right saying System Task.......
0
 
CEHJCommented:
You don't need a ByteArrayOutputStream:

byte[] messageContent = new byte[message.getBodyLength()];
message.readBytes(messageContent);
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.