org.apache.turbine.services.localization |
This service provides access and tools for multilingual applications in Turbine.
$Id: package.html 534527 2007-05-02 16:10:59Z tv $
|
Java Source File Name | Type | Comment |
LocaleDetector.java | Class | This class returns a Locale object based on the HTTP
Accept-Language header.
This class is based on examples from Jason Hunter's book Java
Servlet Programming.
author: Frank Y. |
LocaleTokenizer.java | Class | Parses the HTTP Accept-Language header as per section
14.4 of RFC 2068 (HTTP 1.1 header field definitions). |
Localization.java | Class | Wrapper around the TurbineLocalization Service that makes it easy
to grab something from the service and make the code cleaner.
Instead of typing:
((LocalizationService)TurbineServices.getInstance()
.getService(LocalizationService.SERVICE_NAME))
.getBundle(data)
.getString(str)
Now you only need to type:
Localization.getString(str)
author: Jon S. |
LocalizationService.java | Interface | Provides localization functionality using the interface provided
by ResourceBundle , plus leverages a "search path"
style traversal of the ResourceBundle objects named by
the locale.default.bundles to discover a value for a
given key.
It is suggested that one handle
dealing with concatenated messages
using MessageFormat and properties files.
author: Jon S. |
LocalizationTool.java | Class | A pull tool which provides lookups for localized text by delegating
to the configured LocalizationService . |
TurbineLocalizationService.java | Class | This class is the single point of access to all localization
resources. |