Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.


JavaWorld Talkback >> Java internationalization with the Properties Pre-Processor

Pages: 1

Unregistered




JDK 1.5?
      #52141 - 08/23/07 02:21 AM

This is all unneccesary. JDK 1.5 supports XML property files. Just take your property file and use the storeToXML() method to convert your property file. Then manipulate it as XML to your hearts content. You can convert it back to a "normal" property file at any time.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Melih Çetin
Unregistered




Re: JDK 1.5? [Re: Anonymous]
      #52416 - 08/29/07 02:08 AM

The tool provided brings the following benefits:

  • maintaining one single XML file for a bundle regardless of how many different locales are supported
  • avoiding the use of Unicode escapes in properties files
  • sharing mnemonics across the properties files of different bundles

JDK 1.5 feature of storing properties in XML property files would only address "avoiding the use of Unicode escapes in properties files" but as XML property files are not recognized by PropertyResourceBundle class, even this is not possible. Converting property files to XML, editing them as XML and converting them back to "normal" property files would make the maintenance process even more difficult.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:   

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 3615

Rate this topic

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5