Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Way to Support of multiple language in J2ME???????

Posted on 2003-11-06
23
810 Views
Last Modified: 2013-11-23
Hi to all experts,

I would like to ask what i need to do and know in order to support multiple language in J2ME.

Am i going to use unicode to do this. But from what i read, unicode seem like intrenatinalization and localization and not used to suport multiple language.

Please Guide me and show me some useful URL and fact.

Thank you.

PS: i already have some basic understand on J2ME
0
Comment
Question by:tat83
  • 11
  • 6
  • 6
23 Comments
 
LVL 35

Expert Comment

by:girionis
ID: 9692826
 Java is by default unicode so it should support any language you write your software on.

  What exactly is the problem?
0
 
LVL 15

Accepted Solution

by:
jimmack earned 65 total points
ID: 9692829
0
 

Author Comment

by:tat83
ID: 9698993
I am developing my final project. That is a mobile phone application.

I would like to target my application to different race. Therefore, it should have more than 1 language selection to be selected to be dispaly to the user. For example, the user can select either Malay, English, Thai, India and etc.

Then the application will display appropriate language.

My question is how can i do this? I know of course i cannot hard code the application. But how should i begin or do to achieve this objective.

So, any one have any idea on my question?
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

Author Comment

by:tat83
ID: 9698997
to jimmack:
I  will reaad ur URL later
Thank you.
0
 
LVL 35

Assisted Solution

by:girionis
girionis earned 60 total points
ID: 9699461
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9699741
If there is a lot of text (say more than a couple of K), then I would suggest that you create several jar/jar combinations in order to keep the size down.  Check at download time check the microedition-locale request header to determine which jar to return to the user.

If you have a small amount of text (or you have to store it in a single jar/jar), then you should create a file storing the text that you need.  Put this file in the "res" directory under the wtk/apps/<myproject> directory.  This will then be included in your jar file when you build.  Ideally, you want to save this file as a binary file (again to minimise the space it takes).

Have a look at the documentation for Image.createImage(String) for a clue on how to access the file from within the MIDlet ;-)
0
 

Author Comment

by:tat83
ID: 9700347
thank you to all

But i have another question that is Can i also include chinese word in it?

If so, How?

Just simply type the chinese word in the Messages_ch_CH.properties file? Or there is another way.

I actually have not try the code and run it. I just interpret using my knowledge. So i may return to u all any time.

Thank you.


0
 
LVL 35

Expert Comment

by:girionis
ID: 9700359
> Just simply type the chinese word in the Messages_ch_CH.properties file? Or there is another way

  Yes this should work. Using Chinese should be exactly like using any other language.
0
 

Author Comment

by:tat83
ID: 9700371
Thank you to girionis and jimmack

i think i already know how to do it(hopefully).

So it is time to give my points as a reward to  girionis and jimmack.

If i have any problem i will always return to here.So i hope u all will help me again.

Thank you again.
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9700372
Here's a link I found.  I don't know if it helps or not, but it might be worth a look:

http://www.appelsiini.net/keitai-l/archives/2003-09/0026.html
0
 

Author Comment

by:tat83
ID: 9700385
1 question I forgotten to ask

Where can i download all the phone emulator like nokia, motorola,siemen and etc?

Cause i would like to test my application using different emulator.

Thank you
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9700409
0
 
LVL 35

Expert Comment

by:girionis
ID: 9700418
 Thanks for the points. Glad we have helped :)
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9700430
Sorry, I got interrupted before I could finish that last comment properly ;-)

You might need to register (usually free) to get access to the tool downloads.
0
 

Author Comment

by:tat83
ID: 9700444
Thank you again
0
 

Author Comment

by:tat83
ID: 10467624
Sorry to ask for help again.

I have face problems with importing the java.util.Locale and ResourceBundle.

It said that no class found.

Is that J2ME do not support these classes.

If i can't use the above class, how can i implement multiple language in my application.

Thank you in advance.
0
 

Author Comment

by:tat83
ID: 10468466
sorry, the error is "Cannot resolve sysmbol" and not no class found.
0
 
LVL 35

Expert Comment

by:girionis
ID: 10469266
Not sure if they are part of the J2ME architecture but you can always write your own classes to handle localization for you: http://java.sun.com/developer/J2METechTips/2001/tt0129.html
0
 

Author Comment

by:tat83
ID: 10474512
thank you for ur url.
i have also just found the link and other relevant url. I will look at it.

I will always return to here, if i have problems.

thank you.
0
 
LVL 35

Expert Comment

by:girionis
ID: 10475812
:)
0
 

Author Comment

by:tat83
ID: 10505331
Hi there,

Sorry to interrupt again, i just want to know is the customitem is a high level UI components or low UI?

And the demo on the wireless Toolkit
(UIdemo->CustomItem) ,This demo is using high level UI or low level UI (especially the table class)?

Thank you in advance.
0
 
LVL 15

Expert Comment

by:jimmack
ID: 10505850
A bit of both really ;-)

A CustomItem can be regarded as a high level UI component because it can be added to a Form (rather than managed using primitives on a Canvas).  However, the implementation of a CustomItem (in this case the Table item) uses the primitive (low level UI) operations in order to display itself.
0
 

Author Comment

by:tat83
ID: 10510406
Okay

Then what is the usage of a customitem?
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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
Groovy problem when using SOAPUI : DispatchException occurred 7 59
SHA2 certs for IIS AND Java? 2 113
servlet example 17 52
going to wrong jsp page 2 33
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

828 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