Interface DictionaryProvider

All Known Subinterfaces:
DynamicDictionaryProvider
All Known Implementing Classes:
CompositeDictionaryProvider, DomainBasedDictionaryProvider, FileSystemDictionaryProvider, ThreadLocalDomainDictionaryProvider

public interface DictionaryProvider
Author:
Eric LELEU (eric.leleu at graviteesource.com), GraviteeSource Team
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the Properties object with all i18n message translated for the given locale value.
    boolean
    use the local.toString instead of local.getLanguage() to evaluate language linked to a country code (fr-FR / en-GB)
  • Method Details

    • getDictionaryFor

      Properties getDictionaryFor(Locale locale)
      Get the Properties object with all i18n message translated for the given locale value. If there are no properties matching the Locale, then the default translation are provided.
      Parameters:
      locale -
      Returns:
    • hasDictionaryFor

      boolean hasDictionaryFor(Locale locale)
      use the local.toString instead of local.getLanguage() to evaluate language linked to a country code (fr-FR / en-GB)
      Parameters:
      locale -
      Returns:
      true if the locale has dictionary