Interface RundataLocalizationInterface

All Superinterfaces:
org.apache.fulcrum.localization.LocalizationService, Serializable, org.apache.fulcrum.localization.SimpleLocalizationService
All Known Implementing Classes:
RundataLocalizationService

public interface RundataLocalizationInterface extends org.apache.fulcrum.localization.LocalizationService, Serializable
  • Field Summary

    Fields inherited from interface org.apache.fulcrum.localization.LocalizationService

    ACCEPT_LANGUAGE, ROLE, SERVICE_NAME
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the locale from the session first, then fallback to normal request headers.

    Methods inherited from interface org.apache.fulcrum.localization.LocalizationService

    getBundle, getBundle, getBundle, getLocale, getLocale

    Methods inherited from interface org.apache.fulcrum.localization.SimpleLocalizationService

    format, format, format, getBundle, getBundle, getBundle, getBundleNames, getDefaultBundleName, getDefaultCountry, getDefaultLanguage, getDefaultLocale, getString, getString, setBundle
  • Method Details

    • getLocale

      Get the locale from the session first, then fallback to normal request headers.
      Parameters:
      data - the RunData, which allows a guess for the locale.
      Returns:
      Current locale based on state.