• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Use XML or properties as a Java Localization

 
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone tell me the advantages or disavantages of using XML vs the properties file solution (the normal java ResourceBundle, where the translation is read from a properties file)?

When I think of advantages/disavantages I think about:

maintenance
performance
scalability
...

Thanks
[ June 13, 2005: Message edited by: Jeppe Fjord ]
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Personally I would go with XML instead of a Java Resource Bundle.
Self-explanatory, any one with basic HTML knowledge can change the properties - think about the folks in the field. The moment things are Java'ish, people are a bit more hands-off - its programming I don't understand all that stuff. This ResourceBundle thingy sounds more like Java Programming rather than a simple text file (assuming that's how you are implementing, hard to say).

Now that the JDK has support for XML, you don't need a lot of third-party tools for using it. More easy to maintain, IMO. This sounds more like the norm - look at any config files that application use - they are invariably in XML so its pretty much an industry standard.

My two cents...

- m
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic