Package org.omegat.util
Class OConsts
- java.lang.Object
-
- org.omegat.util.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 Summary
Fields Modifier and Type Field Description static java.lang.String
AUTO_ENFORCE_TM
Project subfolder for automatically applied translation memories within the tm folder.static java.lang.String
AUTO_TM
Project subfolder for automatically applied translation memories within the tm folder.static java.lang.String
BACKUP_EXTENSION
static java.lang.String
CONTRIBUTORS_FILE
static java.lang.String
DEFAULT_DICT
Project subfolder for dictionaries default name.static java.lang.String
DEFAULT_EXPORT_TM
Project subfolder for exported translation memories.static 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").static java.lang.String
DEFAULT_GLOSSARY
Project subfolder for glossaries default name.static java.lang.String
DEFAULT_INTERNAL
Project subfolder for project's translation memory.static java.lang.String
DEFAULT_OTHERLANG
Project subfolder for translation memories with other languages as alternative sources.static java.lang.String
DEFAULT_SOURCE
Project subfolder for source files default name.static java.lang.String
DEFAULT_TARGET
Project subfolder for translated files default name.static java.lang.String
DEFAULT_TM
Project subfolder for legacy translation memories default name.static java.lang.String
DEFAULT_W_GLOSSARY
Default name for the project writeable glossary file (inside project)static java.lang.String
DEFAULT_W_GLOSSARY_SUFF
Default suffix for project writeable glossary file (outside of project)static java.lang.String
EXT_CSV_UTF8
static java.lang.String
EXT_TBX
static java.lang.String
EXT_TSV_DEF
Glossary files extensionsstatic java.lang.String
EXT_TSV_TSV
static java.lang.String
EXT_TSV_TXT
static java.lang.String
EXT_TSV_UTF8
static java.lang.String
FILE_PROJECT
Project Filenamestatic java.lang.String
FILES_ORDER_FILENAME
static int
FUZZY_MATCH_THRESHOLD
The smallest threshold to detect a fuzzy match stringstatic java.lang.String
HELP_DIR
static java.lang.String
HELP_FIRST_STEPS
static java.lang.String
HELP_HOME
static java.lang.String
HELP_LANG_INDEX
static java.lang.String
IGNORED_WORD_LIST_FILE_NAME
The name of the file with the ignored words: one ignored word per linestatic java.lang.String
JAR_EXTENSION
jar file extensionstatic java.lang.String
LAST_CHANGES_FILE
static java.lang.String
LAST_ENTRY_NUMBER
The name of the file with the last entry number for later reopening.static java.lang.String
LEARNED_WORD_LIST_FILE_NAME
The name of the file with the correct (learned) words: one word per linestatic java.lang.String
LEVEL1_TMX
static java.lang.String
LEVEL2_TMX
static java.lang.String
LIBRARIES_FILE
static java.lang.String
LICENSE_FILE
static int
MAX_BACKUPS
static int
MAX_NEAR_STRINGS
Number of fuzzy matches to displaystatic int
MAX_PARENT_DIRECTORIES_ABS2REL
The maximum "distance" in parent directories a path can be at when relativizing a path for storage.static int
MAX_RECENT_PROJECTS
Max number of recent projects to rememberstatic java.lang.String
MT_TM
Project subfolder for machine translation memories.static java.lang.String
NEWFILE_EXTENSION
static java.lang.String
OMEGAT_TMX
static int
OMEGAT_WINDOW_HEIGHT
static int
OMEGAT_WINDOW_WIDTH
Default window sizestatic java.lang.String
PENALTY_TM
Project subfolder for generic penalty based translation memories.static java.lang.String
PROJ_CUR_VERSION
Project Versionstatic int
READ_AHEAD_LIMIT
The limit of bytes that various filters may read ahead to inspect files.static java.lang.String
SC_AFFIX_EXTENSION
affix file extensionstatic java.lang.String
SC_DICTIONARY_EXTENSION
dictionary file extensionstatic java.lang.String
SEGMENT_MARKER_STRING
static java.lang.String
SPELLING_DICT_DIR
Default name for spelling dictionary directorystatic int
ST_MAX_SEARCH_RESULTS
static java.lang.String
STATS_FILENAME
The name of the file with project statistics: segments, words, chars count.static java.lang.String
STATS_MATCH_FILENAME
The name of the file with project match statistics.static java.lang.String
STATS_MATCH_PER_FILE_FILENAME
The name of the file with project match statistics.static java.lang.String
STATUS_EXTENSION
static java.lang.String
TMX_EXTENSION
static java.lang.String
TMX_GZ_EXTENSION
static java.lang.String
TMX_ZIP_EXTENSION
static java.lang.String
XB_COMMENT_SHORTCUT
static java.lang.String
ZIP_EXTENSION
zip file extension
-
-
-
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_EXTENSION
public static final java.lang.String TMX_EXTENSION
- 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
-
OMEGAT_TMX
public static final java.lang.String OMEGAT_TMX
- See Also:
- Constant Field Values
-
LEVEL1_TMX
public static final java.lang.String LEVEL1_TMX
- See Also:
- Constant Field Values
-
LEVEL2_TMX
public static final java.lang.String LEVEL2_TMX
- See Also:
- Constant Field Values
-
HELP_HOME
public static final java.lang.String HELP_HOME
- See Also:
- Constant Field Values
-
HELP_FIRST_STEPS
public static final java.lang.String HELP_FIRST_STEPS
- See Also:
- Constant Field Values
-
HELP_DIR
public static final java.lang.String HELP_DIR
- See Also:
- Constant Field Values
-
HELP_LANG_INDEX
public static final java.lang.String HELP_LANG_INDEX
- See Also:
- Constant Field Values
-
LICENSE_FILE
public static final java.lang.String LICENSE_FILE
- 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
-
LIBRARIES_FILE
public static final java.lang.String LIBRARIES_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
-
EXT_TSV_UTF8
public static final java.lang.String EXT_TSV_UTF8
- See Also:
- Constant Field Values
-
EXT_TSV_TXT
public static final java.lang.String EXT_TSV_TXT
- See Also:
- Constant Field Values
-
EXT_TSV_TSV
public static final java.lang.String EXT_TSV_TSV
- See Also:
- Constant Field Values
-
EXT_CSV_UTF8
public static final java.lang.String EXT_CSV_UTF8
- See Also:
- Constant Field Values
-
EXT_TBX
public static final java.lang.String EXT_TBX
- 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
-
ST_MAX_SEARCH_RESULTS
public static final int ST_MAX_SEARCH_RESULTS
- 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
-
MAX_BACKUPS
public static final int MAX_BACKUPS
- 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 forBufferedReader
) 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.
~/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
-
OMEGAT_WINDOW_HEIGHT
public static final int OMEGAT_WINDOW_HEIGHT
- See Also:
- Constant Field Values
-
-