[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 822
  • Last Modified:

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

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
tat83
Asked:
tat83
  • 11
  • 6
  • 6
2 Solutions
 
girionisCommented:
 Java is by default unicode so it should support any language you write your software on.

  What exactly is the problem?
0
 
tat83Author Commented:
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
tat83Author Commented:
to jimmack:
I  will reaad ur URL later
Thank you.
0
 
jimmackCommented:
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
 
tat83Author Commented:
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
 
girionisCommented:
> 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
 
tat83Author Commented:
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
 
jimmackCommented:
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
 
tat83Author Commented:
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
 
girionisCommented:
 Thanks for the points. Glad we have helped :)
0
 
jimmackCommented:
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
 
tat83Author Commented:
Thank you again
0
 
tat83Author Commented:
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
 
tat83Author Commented:
sorry, the error is "Cannot resolve sysmbol" and not no class found.
0
 
girionisCommented:
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
 
tat83Author Commented:
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
 
girionisCommented:
:)
0
 
tat83Author Commented:
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
 
jimmackCommented:
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
 
tat83Author Commented:
Okay

Then what is the usage of a customitem?
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 11
  • 6
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now