Class TranslationsStore


  • public class TranslationsStore
    extends Object
    This class contains and handles all the translations for the keys specified in the Java source code.
    • Method Detail

      • lookupKeyValue

        public String lookupKeyValue​(String locale,
                                     String messagesPackage,
                                     String key)
        Look up the translation for a key in a certain locale
        Parameters:
        locale - the locale to hunt for
        messagesPackage - the messages package to look in
        key - the key
        Returns:
        the translation for the specified key in the desired locale, from the requested package
      • getChangedBundleFiles

        public List<BundleFile> getChangedBundleFiles()
        Returns:
        the list of changed messages stores.
      • findBundleFiles

        public List<BundleFile> findBundleFiles​(String searchLocale,
                                                String messagesPackage)
        Parameters:
        searchLocale - the locale the filter on.
        messagesPackage - the messagesPackage to filter on. Specify null to get all message stores.
        Returns:
        the list of messages bundle files for the locale
      • findMainBundleFile

        public BundleFile findMainBundleFile​(String messagesPackage)
      • getLocaleList

        public List<String> getLocaleList()
        Returns:
        the localeList
      • setLocaleList

        public void setLocaleList​(List<String> localeList)
        Parameters:
        localeList - the localeList to set
      • getMainLocale

        public String getMainLocale()
        Returns:
        the mainLocale
      • setMainLocale

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

        public BundlesStore getBundleStore()
        Gets bundleStore
        Returns:
        value of bundleStore
      • getLog

        public ILogChannel getLog()
        Gets log
        Returns:
        value of log
      • setLog

        public void setLog​(ILogChannel log)
        Parameters:
        log - The log to set