org.barracudamvc.plankton.l10n
Class Localize

java.lang.Object
  extended by org.barracudamvc.plankton.l10n.Localize

public class Localize
extends Object

Simple localization utilities.


Constructor Summary
Localize()
           
 
Method Summary
static String getString(ResourceBundle rb, String key)
          Get data from a resource bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Localize

public Localize()
Method Detail

getString

public static String getString(ResourceBundle rb,
                               String key)
Get data from a resource bundle. If the data is not available an appropriate error message is returned instead.

Parameters:
rb - the resource bundle
key - the key we are after
Returns:
the value in the resource bundle for the given key


Copyright © 2006 BarracudaMVC.org All Rights Reserved.