wood burning stoves*
The moose likes Java in General and the fly likes fetching english description from the list of multi language descriptions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "fetching english description from the list of multi language descriptions" Watch "fetching english description from the list of multi language descriptions" New topic
Author

fetching english description from the list of multi language descriptions

Vish hari
Greenhorn

Joined: Jul 21, 2008
Posts: 20
Hi Friens,

I am getting a resultset which has a list descriptions. some descriptions will be in spanish and some descriptions will be in english.
I need to check for english description in the list and when I get first english description that description should be fetched.

Please revert back how I can check the desc whether it is in english or not.


Thanks,
Vishnuvardhan
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3602
    
  15
Is there not a field in the table that indicates which language the text is ? If not, then I don't think there is any guaranteed way of distinguishing them.

You could look for certain characters that are not used (or at least are pretty rare) in English (�, accented vowels). Double consonants (other than ll and rr) are rare in Spanish as is the letter W.


Joanne
Vish hari
Greenhorn

Joined: Jul 21, 2008
Posts: 20
Hi ,

As you said there is nothing to do with table. After getting the resultset object I need to check for english description. Is there any spell checker is available in java which i can use for english spell check.

Thanks,
Vishnuvardhan
 
GeeCON Prague 2014
 
subject: fetching english description from the list of multi language descriptions