Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaME internationalization (i18n)

Does anyone have some knowledge with internationalization with JavaME? I'm looking for as much information as possible like examples, experiences and maybe some best practices. Thanks

like image 905
Stefano Driussi Avatar asked Nov 24 '25 06:11

Stefano Driussi


1 Answers

A few thoughts. J2ME doesnt support i18n as it the api support is not there (cant use resource bundles). But we can do this to a limited extent. Here is what I found out.

  1. It is difficult if not impossible to support english and say chinese languages (typographic characters) for a given J2ME app. But easier to support english and say spanish (I forgot the correct nomenclature to talk about i18n support but you get the idea).
  2. We can have all strings in one config class, that way you can swap this one out for different languages.
  3. We can have the text/strings downloaded from server on initial launch of app and thus have the ability to swap it out from server.
  4. Because of different screen sizes, it is best to work with custom fonts so that code can be written to calculate the text length while displaying it. This will make multiple language support easier.
  5. Image assets can also be downloaded from server based on different languages. But I dont think we can change the midlet icon, so it should be generic.

With this in mind it is possible to design multiple language support.

like image 159
omermuhammed Avatar answered Nov 28 '25 17:11

omermuhammed



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!