The Artima Developer Community
Sponsored Link

Java Buzz Forum
ResourceBundels vs MessageBundles

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Fred Grott

Posts: 4361
Nickname: shareme
Registered: Jan, 2003

Fred Grott is Lead Developer-CEO of ShareMe Technologies LLC -The Mobile Future
ResourceBundels vs MessageBundles Posted: Jun 2, 2005 6:02 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Fred Grott.
Original Post: ResourceBundels vs MessageBundles
Feed Title: ShareMe Technologies LLC-The Mobile Future
Feed URL: http://www.jroller.com/shareme/feed/entries/rss
Feed Description: A Weblog about Java programming and digital convergence on mobile devices in such areas as P2P and collaborative technology.
Latest Java Buzz Posts
Latest Java Buzz Posts by Fred Grott
Latest Posts From ShareMe Technologies LLC-The Mobile Future

Advertisement
Okay, we all know that ResourceBundles is very space inefficient and this probably is a problem in J2Me development. I am wondering why we cannot adopt the Eclpise 3.1 MessageBundle story to the J2ME development environment.

The problems I can see is that there might be two files to synch. But that might be the same as synching the ResourceBundel class with the resourcebundle lookup in individual classes.

The solution might be an extra properties file that acts as a template. For example, the message.properties file would be named by language two letter indentifier and the template properties file would match the keys to be filled in as far as fields with an ANT task to generate the message properties files.

In other words the properties file of the language to be used is loaded in memory instead of all the languages loaded into memory. Because the properties file loaded is accessed in such a way that the keys are field acccessible it would save somewhat similar to the Eclipse 3.1 figure of 88+4*characters per string.

Read: ResourceBundels vs MessageBundles

Topic: Why you need to go to a skateboard shop Previous Topic   Next Topic Topic: Distributed Development == Shitty Results

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use