cintoo Messages

cintoo Messages is a framework to make internationalization easier for Java applications.
Download

cintoo Messages Ranking & Summary

Advertisement

  • Rating:
  • License:
  • The Apache License 2.0
  • Price:
  • FREE
  • Publisher Name:
  • Stephan Schmidt
  • Publisher web site:
  • http://messages.cintoo.org/

cintoo Messages Tags


cintoo Messages Description

cintoo Messages is a framework to make internationalization easier for Java applications. cintoo Messages is a framework to make internationalization easier for Java applications. cintoo Messages framework supports locales for threads, and bundles can be associated with different packages.This allows the usage of different bundles for different parts of the application, such as plugins, an installer, or a logging system. Bundles can be managed and associated with packages without any changes in the code.This makes bundle management and refactoring much easier than with other solutions. cintoo Messages supports global locales for client applications written in Swing or SWT and thread-local ones for serverside Web applications.Example: import static api.cintoo.messages.Messages.*; ... Messages.setBundle("myBundle", "only.for.this.package"); Messages.setThreadLocale(new Locale("en", "")); ... $(this, "FILES_WRITTEN", 3);Compare this to the standard JDK i18n (adapted from the must-read Sun i18n tutorial):Locale locale = new Locale("en", ""); ResourceBundle bundle = ResourceBundle.getBundle("myBundle", locale); ... MessageFormat formatter = new MessageFormat(""); formatter.setLocale(locale); formatter.applyPattern(messages.getString("FILES_WRITTEN")); ... formatter.format(new Object[]{ 3 })


cintoo Messages Related Software