org.apache.tapestry.l10n
Interface ResourceLocalizer
- All Known Implementing Classes:
- DefaultResourceLocalizer
public interface ResourceLocalizer
An interface that defines how to localize a particular resource. A default implementation will
use Resource.getLocalization(java.util.Locale), but this interface
(and associated chain of command configuration point) allows for alternative approaches to
localizing a resource.
- Since:
- 4.0
- Author:
- Howard M. Lewis Ship
findLocalization
Resource findLocalization(Resource rootResource,
Locale locale)
- Finds and returns a localization of a root resource for the indicated locale.
- Parameters:
rootResource - the base resource for which a localization is neededlocale - the locale to find a localization for
- Returns:
- the localized version of the resource, or null if not found
Copyright © 2006 Apache Software Foundation. All Rights Reserved.