Solved

MultiLanguage

Posted on 2002-05-29
16
238 Views
Last Modified: 2010-03-31
Hi there,

  Actually I'm very keen to know how can I implement multilanguage in java environment.I hope I can get a overall picture/rough idea on how I should proceed in implementing it.Examples would be helpful to me if there any.
 
0
Comment
Question by:Persepy
  • 3
  • 3
  • 2
  • +5
16 Comments
 
LVL 9

Expert Comment

by:Venci75
ID: 7041318
check this:
http://java.sun.com/docs/books/tutorial/i18n/resbundle/propfile.html

you can take your strings from a properties file. By changing the locale - the appropriate values will be loaded
0
 

Author Comment

by:Persepy
ID: 7041352
Thanks Venci75,reading from a properties file is one way to do it.
0
 

Author Comment

by:Persepy
ID: 7041359
I would like to view if there is any other interesting ways to do it.
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

 

Expert Comment

by:hardeepbsingh
ID: 7041367
you can create Java class file with different messages as public static final constants like:

public class English {
  public static final GOOD_MORNING = new String("Good Morning");
  //... other constant ...
}

public class French {
  public static final GOOD_MORNING = new String("Bon Jour");
  //... other constant ...
}

etc. This will make things very fast. When you have to say Good Morning in English, just print English.GOOD_MORNING
0
 
LVL 16

Expert Comment

by:imladris
ID: 7041996
It may also be relevant to know about slangsoft. It is an Israeli company that produces software that provides serverbased localization. That is, clients hook up to a server and run applets that provide localization without any involvement on the clients part. They also provide other forms of course. They are at the obvious URL: http://www.slangsoft.com .
0
 
LVL 19

Accepted Solution

by:
Jim Cakalic earned 500 total points
ID: 7042445
Here is a collection of resources that I have found useful. Perhaps you will, too.

JDC articles on Java Internationalization and Localization:
    http://developer.java.sun.com/developer/technicalArticles/Intl/index.html

There is also a freely available toolkit there:
    http://java.sun.com/products/jilkit/

The Java Look and Feel book chapter on planning for i18n:
    http://java.sun.com/products/jlf/ed2/book/HIG.Issues3.html

The Java Tutorial chapter on i18n:
    http://java.sun.com/docs/books/tutorial/i18n/intro/index.html

A JavaOne presentation on Enterprise I18n Best Practices:
    http://java.sun.com/javaone/javaone2001/pdfs/2335.pdf

A new developerWorks tutorial:
    http://www-105.ibm.com/developerworks/education.nsf/java-onlinecourse-bytitle/37415E1C6867D15A86256B9E004F2DAE?OpenDocument

Other developerWorks articles (in no particular order):
    http://www-106.ibm.com/developerworks/library/j-rbmgr/index.html
    http://www-106.ibm.com/developerworks/library/sun-ibm-java.html
    http://www-106.ibm.com/developerworks/library/intljava.html
    http://www-106.ibm.com/developerworks/library/unicode.html
    http://www-106.ibm.com/developerworks/library/globalapps/

IBM's International Components for Unicode for Java (icu4j):
    http://www-124.ibm.com/developerworks/opensource/icu4j/

Best regards,
Jim Cakalic
0
 
LVL 35

Expert Comment

by:girionis
ID: 7042585
 ... and another one: http://www6.software.ibm.com/developerworks/education/j-i18n/index.html (hopefully it is not the same with any of these that jim_cakalic suggested).

  Hope it helps.
0
 

Expert Comment

by:pouli
ID: 7042793
You can find a sample chapter of the OREILLY book "Java Intrenationalization at the oreilly page. It speaks about ResourceBundles.

www.oreilly.com/
0
 

Expert Comment

by:hardeepbsingh
ID: 7043658
Anybody, any comments on my idea of using CLASS files?
0
 

Expert Comment

by:pouli
ID: 7044660
What about the french characters with accent graves etc...

Are you going to write them according to their unicode number ?
0
 

Author Comment

by:Persepy
ID: 7060957
If I have to support multi-byte for eg. chinese,japanese or etc,would be better if I store in database.I believe is a bit hard if I used properties file.Any comment?
0
 

Expert Comment

by:hardeepbsingh
ID: 7061003
Dont think there is any difference in file and database w.r.t the language
0
 

Expert Comment

by:hualing
ID: 7069376
We used to have a project as Persepy describer by using ResourceBundles,we have several property files for different languages.
It is simple and works well!
0
 
LVL 35

Expert Comment

by:girionis
ID: 8813217
No comment has been added lately, so it's time to clean up this TA.

I will leave a recommendation in the Cleanup topic area that this question is:

- split points between Venci75 and jim_cakalic@idg

Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

girionis
Cleanup Volunteer
0
 
LVL 19

Expert Comment

by:Jim Cakalic
ID: 8813750
OK by me. :-)
Jim
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
fibonacci ten numbers 4 45
tomcat administrtor 12 58
servlet web applications   metadata-complete="true" or false 3 104
pagenation logic how it is working in my code 1 52
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question