This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes internationalization In Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "internationalization In Java " Watch "internationalization In Java " New topic
Author

internationalization In Java

Hemali da
Greenhorn

Joined: May 19, 2010
Posts: 14
As We know Java is providing support for internalization. But in that we have to provide different Language Database which we have to create by our own is their any way where we don't have to create that Language Database. If i write some code and it automatically convert that in Particular language which i want ?If any one knows about it then please help me .


Thank You In Advance



Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

When do you mean by Language Database ? Property files are usually used, not databases.


[My Blog]
All roads lead to JavaRanch
Hemali da
Greenhorn

Joined: May 19, 2010
Posts: 14
Yes I m saying that only Database in terms of Properties files. We have to create .Properties Files for each and every language that thing i want to customize .
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Ok, that's not a database then Yes, you have to create a properties file for each language you want to support. The correct file will be picked up according to the Locale settings. Check the Sun tutorial.
Hemali da
Greenhorn

Joined: May 19, 2010
Posts: 14
I know that but is their any really available API. Which can work for me So i don't have to create .properties Files.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41125
    
  45
Keeping text outside of the code has many advantages; why would you want to use an API instead of using properties files?

(By the way, it's called "internationalization", not "internalization". But you may want to use the widely understood form "I18N" instead.)


Ping & DNS - my free Android networking tools app
Hemali da
Greenhorn

Joined: May 19, 2010
Posts: 14
For Web Development Google Is providing API I am talking about it is their any other API available
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41125
    
  45
What Google API would that be?
Hemali da
Greenhorn

Joined: May 19, 2010
Posts: 14
It's Google language Translator in which i don't have to make any .property files to convert it to any language
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41125
    
  45
So you're not actually talking about I18N, you're asking about how to provide in-application translation for certain words and phrases? If so, then "language translator" sounds pretty much on target; does it not do what you're after?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: internationalization In Java
 
Similar Threads
dynamic Array
internalization
xml as database for java
JVM MY FRIEND
Sum of digits in alphanumeric string