Class OConsts


  • public final class OConsts
    extends java.lang.Object
    OmegaT-wide Constants.

    // TODO Note: Some constants that are used only in a single class, or are more appropriate in another class (e.g. preference names) are moved in appropriate class definitions.

    • Field Detail

      • FILE_PROJECT

        public static final java.lang.String FILE_PROJECT
        Project Filename
        See Also:
        Constant Field Values
      • PROJ_CUR_VERSION

        public static final java.lang.String PROJ_CUR_VERSION
        Project Version
        See Also:
        Constant Field Values
      • TMX_GZ_EXTENSION

        public static final java.lang.String TMX_GZ_EXTENSION
        See Also:
        Constant Field Values
      • TMX_ZIP_EXTENSION

        public static final java.lang.String TMX_ZIP_EXTENSION
        See Also:
        Constant Field Values
      • HELP_FIRST_STEPS

        public static final java.lang.String HELP_FIRST_STEPS
        See Also:
        Constant Field Values
      • LAST_CHANGES_FILE

        public static final java.lang.String LAST_CHANGES_FILE
        See Also:
        Constant Field Values
      • CONTRIBUTORS_FILE

        public static final java.lang.String CONTRIBUTORS_FILE
        See Also:
        Constant Field Values
      • FILES_ORDER_FILENAME

        public static final java.lang.String FILES_ORDER_FILENAME
        See Also:
        Constant Field Values
      • STATUS_EXTENSION

        public static final java.lang.String STATUS_EXTENSION
        See Also:
        Constant Field Values
      • BACKUP_EXTENSION

        public static final java.lang.String BACKUP_EXTENSION
        See Also:
        Constant Field Values
      • NEWFILE_EXTENSION

        public static final java.lang.String NEWFILE_EXTENSION
        See Also:
        Constant Field Values
      • DEFAULT_SOURCE

        public static final java.lang.String DEFAULT_SOURCE
        Project subfolder for source files default name.
        See Also:
        Constant Field Values
      • DEFAULT_TARGET

        public static final java.lang.String DEFAULT_TARGET
        Project subfolder for translated files default name.
        See Also:
        Constant Field Values
      • DEFAULT_GLOSSARY

        public static final java.lang.String DEFAULT_GLOSSARY
        Project subfolder for glossaries default name.
        See Also:
        Constant Field Values
      • DEFAULT_W_GLOSSARY

        public static final java.lang.String DEFAULT_W_GLOSSARY
        Default name for the project writeable glossary file (inside project)
        See Also:
        Constant Field Values
      • DEFAULT_W_GLOSSARY_SUFF

        public static final java.lang.String DEFAULT_W_GLOSSARY_SUFF
        Default suffix for project writeable glossary file (outside of project)
        See Also:
        Constant Field Values
      • DEFAULT_TM

        public static final java.lang.String DEFAULT_TM
        Project subfolder for legacy translation memories default name.
        See Also:
        Constant Field Values
      • DEFAULT_EXPORT_TM

        public static final java.lang.String DEFAULT_EXPORT_TM
        Project subfolder for exported translation memories.
        See Also:
        Constant Field Values
      • DEFAULT_EXPORT_TM_LEVELS

        public static final java.lang.String DEFAULT_EXPORT_TM_LEVELS
        Translation memory levels, space-separated string, to include zero or more of the following values: "omegat", "level1" and/or "level2").
        See Also:
        Constant Field Values
      • AUTO_TM

        public static final java.lang.String AUTO_TM
        Project subfolder for automatically applied translation memories within the tm folder.
        See Also:
        Constant Field Values
      • AUTO_ENFORCE_TM

        public static final java.lang.String AUTO_ENFORCE_TM
        Project subfolder for automatically applied translation memories within the tm folder. Existing translation are overwritten
        See Also:
        Constant Field Values
      • MT_TM

        public static final java.lang.String MT_TM
        Project subfolder for machine translation memories.
        See Also:
        Constant Field Values
      • PENALTY_TM

        public static final java.lang.String PENALTY_TM
        Project subfolder for generic penalty based translation memories.
        See Also:
        Constant Field Values
      • DEFAULT_OTHERLANG

        public static final java.lang.String DEFAULT_OTHERLANG
        Project subfolder for translation memories with other languages as alternative sources.
        See Also:
        Constant Field Values
      • DEFAULT_DICT

        public static final java.lang.String DEFAULT_DICT
        Project subfolder for dictionaries default name.
        See Also:
        Constant Field Values
      • DEFAULT_INTERNAL

        public static final java.lang.String DEFAULT_INTERNAL
        Project subfolder for project's translation memory.
        See Also:
        Constant Field Values
      • SPELLING_DICT_DIR

        public static final java.lang.String SPELLING_DICT_DIR
        Default name for spelling dictionary directory
        See Also:
        Constant Field Values
      • EXT_TSV_DEF

        public static final java.lang.String EXT_TSV_DEF
        Glossary files extensions
        See Also:
        Constant Field Values
      • STATS_FILENAME

        public static final java.lang.String STATS_FILENAME
        The name of the file with project statistics: segments, words, chars count.
        See Also:
        Constant Field Values
      • STATS_MATCH_FILENAME

        public static final java.lang.String STATS_MATCH_FILENAME
        The name of the file with project match statistics.
        See Also:
        Constant Field Values
      • STATS_MATCH_PER_FILE_FILENAME

        public static final java.lang.String STATS_MATCH_PER_FILE_FILENAME
        The name of the file with project match statistics.
        See Also:
        Constant Field Values
      • LAST_ENTRY_NUMBER

        public static final java.lang.String LAST_ENTRY_NUMBER
        The name of the file with the last entry number for later reopening.
        See Also:
        Constant Field Values
      • IGNORED_WORD_LIST_FILE_NAME

        public static final java.lang.String IGNORED_WORD_LIST_FILE_NAME
        The name of the file with the ignored words: one ignored word per line
        See Also:
        Constant Field Values
      • LEARNED_WORD_LIST_FILE_NAME

        public static final java.lang.String LEARNED_WORD_LIST_FILE_NAME
        The name of the file with the correct (learned) words: one word per line
        See Also:
        Constant Field Values
      • SC_AFFIX_EXTENSION

        public static final java.lang.String SC_AFFIX_EXTENSION
        affix file extension
        See Also:
        Constant Field Values
      • SC_DICTIONARY_EXTENSION

        public static final java.lang.String SC_DICTIONARY_EXTENSION
        dictionary file extension
        See Also:
        Constant Field Values
      • JAR_EXTENSION

        public static final java.lang.String JAR_EXTENSION
        jar file extension
        See Also:
        Constant Field Values
      • ZIP_EXTENSION

        public static final java.lang.String ZIP_EXTENSION
        zip file extension
        See Also:
        Constant Field Values
      • FUZZY_MATCH_THRESHOLD

        public static final int FUZZY_MATCH_THRESHOLD
        The smallest threshold to detect a fuzzy match string
        See Also:
        Constant Field Values
      • XB_COMMENT_SHORTCUT

        public static final java.lang.String XB_COMMENT_SHORTCUT
        See Also:
        Constant Field Values
      • MAX_NEAR_STRINGS

        public static final int MAX_NEAR_STRINGS
        Number of fuzzy matches to display
        See Also:
        Constant Field Values
      • READ_AHEAD_LIMIT

        public static final int READ_AHEAD_LIMIT
        The limit of bytes that various filters may read ahead to inspect files. Increased from 8k (8192 bytes; the default buffer size for BufferedReader) to this number because otherwise EOL detection on .sdlxliff files with large headers can fail.
        See Also:
        Constant Field Values
      • MAX_PARENT_DIRECTORIES_ABS2REL

        public static final int MAX_PARENT_DIRECTORIES_ABS2REL
        The maximum "distance" in parent directories a path can be at when relativizing a path for storage. I.e. how many instances of ../ are in front.

        This is used when storing project folders (source, target, tm, glossary, etc.) located outside of the project root folder.

        This limit is based on the following logic:

        • Users may move their project around locally. This can break relative paths, so absolute paths are desired in this sense.
        • Users may want to share projects via a mechanism that changes the filesystem root (e.g. differing drive letter mapping on Windows). In this case relative paths are desired.
        This limit is a heuristic for determining if a path is "related" to the root: If it's "too far" away then it is assumed to be unrelated, whereas a "nearby" path may be part of a related subtree like ~/Projects.
        See Also:
        Constant Field Values
      • SEGMENT_MARKER_STRING

        public static final java.lang.String SEGMENT_MARKER_STRING
      • MAX_RECENT_PROJECTS

        public static final int MAX_RECENT_PROJECTS
        Max number of recent projects to remember
        See Also:
        Constant Field Values
      • OMEGAT_WINDOW_WIDTH

        public static final int OMEGAT_WINDOW_WIDTH
        Default window size
        See Also:
        Constant Field Values