|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.turbine.services.BaseInitable org.apache.turbine.services.BaseService org.apache.turbine.services.TurbineBaseService org.apache.turbine.services.localization.TurbineLocalizationService org.apache.jetspeed.services.customlocalization.JetspeedLocalizationService
This class is the single point of access to all localization resources. It caches different ResourceBundles for different Locales.
Work in the same way of turbine except for getLocale(RunData data), turbine read the accept-language header in a http request, instead this method read the user.getPerm("language") from the RunData to obtain the language choice by the user without the browser language rule. If a user not change the language with a ChangeLanguagePortlet, and a user.getPerm("language")are not set, the "Accept-Language" header are read.
Field Summary |
Fields inherited from class org.apache.turbine.services.BaseService |
configuration, name, properties, serviceBroker |
Fields inherited from class org.apache.turbine.services.BaseInitable |
initableBroker, isInitialized |
Fields inherited from interface org.apache.jetspeed.services.customlocalization.CustomLocalizationService |
ACCEPT_LANGUAGE, SERVICE_NAME |
Constructor Summary | |
JetspeedLocalizationService()
|
Method Summary | |
java.util.Locale |
getLocale(org.apache.turbine.util.RunData data)
This method read if a user has set getPerm("language") to use another language or not. |
Methods inherited from class org.apache.turbine.services.localization.TurbineLocalizationService |
getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getDefaultBundleName, getLocale, getLocale, getString, getStringOrNull, init, initBundleNames, setBundle |
Methods inherited from class org.apache.turbine.services.TurbineBaseService |
init, init, init, shutdown |
Methods inherited from class org.apache.turbine.services.BaseService |
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker |
Methods inherited from class org.apache.turbine.services.BaseInitable |
getInit, getInitableBroker, setInit, setInitableBroker |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.jetspeed.services.customlocalization.CustomLocalizationService |
getBundle |
Methods inherited from interface org.apache.turbine.services.localization.LocalizationService |
getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getDefaultBundleName, getLocale, getLocale, getString, setBundle |
Methods inherited from interface org.apache.turbine.services.Service |
getConfiguration, getName, getProperties, setName, setServiceBroker |
Methods inherited from interface org.apache.turbine.services.Initable |
getInit, init, init, setInitableBroker, shutdown |
Constructor Detail |
public JetspeedLocalizationService()
Method Detail |
public final java.util.Locale getLocale(org.apache.turbine.util.RunData data)
getLocale
in interface CustomLocalizationService
data
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |