Solved

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

Posted on 2003-11-06
23
801 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
Comment Utility
 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
Comment Utility
0
 

Author Comment

by:tat83
Comment Utility
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
 

Author Comment

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

Assisted Solution

by:girionis
girionis earned 60 total points
Comment Utility
0
 
LVL 15

Expert Comment

by:jimmack
Comment Utility
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
Comment Utility
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
Comment Utility
> 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 15

Expert Comment

by:jimmack
Comment Utility
0
 
LVL 35

Expert Comment

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

Expert Comment

by:jimmack
Comment Utility
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
Comment Utility
Thank you again
0
 

Author Comment

by:tat83
Comment Utility
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
Comment Utility
sorry, the error is "Cannot resolve sysmbol" and not no class found.
0
 
LVL 35

Expert Comment

by:girionis
Comment Utility
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
Comment Utility
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
Comment Utility
:)
0
 

Author Comment

by:tat83
Comment Utility
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
Comment Utility
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
Comment Utility
Okay

Then what is the usage of a customitem?
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

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…
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…
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 about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now