Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 287
  • Last Modified:

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
0
zolf
Asked:
zolf
  • 4
  • 2
1 Solution
 
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
 
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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
 
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
 
CEHJCommented:
You don't need a ByteArrayOutputStream:

byte[] messageContent = new byte[message.getBodyLength()];
message.readBytes(messageContent);
0

Featured Post

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.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now