Class LocaleStore


  • public class LocaleStore
    extends Object
    This class stores all the messages for a locale for all the used packages...
    Author:
    matt
    • Constructor Detail

      • LocaleStore

        public LocaleStore​(org.pentaho.di.core.logging.LogChannelInterface log,
                           String locale,
                           String mainLocale,
                           Map<String,​Map<String,​List<KeyOccurrence>>> sourcePackageOccurrences)
        Create a new LocaleStore
        Parameters:
        locale - The locale to handle
        messagesPackages - the packages to handle per source folder
        packageOccurrences -
    • Method Detail

      • read

        public void read​(List<String> directories)
                  throws org.pentaho.di.core.exception.KettleException
        Read all the messages stores from the specified locale from all the specified packages
        Parameters:
        directories -
        directories - The source directories to reference the packages from
        Throws:
        org.pentaho.di.core.exception.KettleException
      • getLocale

        public String getLocale()
        Returns:
        the locale
      • setLocale

        public void setLocale​(String locale)
        Parameters:
        locale - the locale to set
      • getMainLocale

        public String getMainLocale()
        Returns:
        the mainLocale
      • setMainLocale

        public void setMainLocale​(String mainLocale)
        Parameters:
        mainLocale - the mainLocale to set