The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 Swing and CSS
Subject:  What's it good for ?
Date:  2003-10-24 05:50:07
From:  joshy
Response to: What's it good for ?


This has definately been on my mind. It wouldn't be too hard, though perhaps not terribly reliable. A Swing GUI doesn't usually have paragraphs of text, just single words and phrases. I can imagine a hybrid approach where the designer codes in English (or whatever the native language) and then the phrases are replaced at runtime with localized versions. Some of the replacements are specified by widget in a config file. (ie: this button's text should go to 'Fini' for French). Some are replaced by phrase (replace all 'End's with 'Fini's), and some would come from a standard dictionary so that no project specific work was done. The important thing is that all localized text is done in a config file which can be modified and applied by a localization expert, not by the programmer.

 Feed java.net RSS Feeds