public class LocalizedPropertySource extends java.lang.Object
IPropertySourceto query a series of localized
keys.
This is much simpler than the old org.apache.tapestry.util.LocalizedPropertySource, and
allows the locale to be specified on a thread-safe, per-invocation basis.
| Constructor and Description |
|---|
LocalizedPropertySource(IPropertySource source) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPropertyValue(java.lang.String propertyName,
java.util.Locale locale)
Get the property from the source, trying different variations of propertyName (adding
suffixes).
|
public LocalizedPropertySource(IPropertySource source)
public java.lang.String getPropertyValue(java.lang.String propertyName, java.util.Locale locale)
propertyName - the base property name to search with.local - the Locale used to generate suffixes (may be null).