Class TranslationStorageUtils

java.lang.Object
com.e1c.langtool.storage.TranslationStorageUtils

public final class TranslationStorageUtils extends Object
The common utilities for translation storages.
  • Method Details

    • getDictionaryFilePath

      public static org.eclipse.core.runtime.IPath getDictionaryFilePath(DictionaryStorageSettings settings, TranslateLanguage language)
      Gets the dictionary file path by settings.
      Parameters:
      settings - the settings, cannot be null.
      language - the language, cannot be null.
      Returns:
      the dictionary file path, cannot return null.
    • getContextFilePath

      public static org.eclipse.core.runtime.IPath getContextFilePath(ContextStorageSettings settings, org.eclipse.core.runtime.IPath resourcePath, TranslateLanguage language)
      Gets the context translation file path for given source resource path (resource ID) and storage settings.
      Parameters:
      settings - the context storage settings, cannot be null.
      resourcePath - the source object resource path, cannot be null.
      language - the language, cannot be null.
      Returns:
      the context translation file path, cannot return null.