public final class OStrings
extends java.lang.Object
Please don't add any new strings here, use getString
method.
This class still has so many strings for legacy reasons only.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BRANDING
For custom deployments of OmegaT that need to be distinguishable from "stock" OmegaT
|
static boolean |
IS_BETA
Indicates whether this is a "beta" (or "latest") version or a "standard" version.
|
static java.lang.String |
REVISION
Repository revision number, e.g.
|
static java.lang.String |
UPDATE
Update number, e.g.
|
static java.lang.String |
VERSION
Just a version, e.g.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getApplicationDisplayName()
Get the application name for display purposes (includes branding)
|
static java.lang.String |
getApplicationName()
Get the raw application name (suitable for file paths, etc.; includes branding)
|
static java.lang.String |
getBrandingToken()
Get the token for identifying stock vs branded OmegaT files.
|
static java.lang.String |
getDisplayNameAndVersion()
Returns the OmegaT "pretty" version for display (includes the application name).
|
static java.lang.String |
getNameAndVersion()
Returns the OmegaT full version for logs, etc.
|
static java.lang.String |
getProgressBarDefaultPrecentageText()
Returns default text for progress bar when no project is loaded
|
static java.util.ResourceBundle |
getResourceBundle()
Returns resource bundle.
|
static java.lang.String |
getSegmentMarker()
Returns the textual marker for the current segment.
|
static java.lang.String |
getSimpleVersion()
Returns the OmegaT simple version for displaying to the user for comparison e.g.
|
static java.lang.String |
getSimpleVersion(java.lang.String version,
java.lang.String update) |
static java.lang.String |
getString(java.lang.String key)
Returns a localized String for a key
|
static java.lang.String |
getString(java.lang.String key,
java.lang.Object... formatArgs)
Returns a localized string for a key, formatted with the given arguments.
|
static java.lang.String |
getVersion()
Returns the OmegaT full version for logs, etc.
|
static void |
loadBundle(java.lang.String filename)
Loads resources from the specified file.
|
static void |
validateVersion(java.util.function.Function<java.lang.String,java.lang.String> map)
Check to make sure the given Properties contains valid information about an OmegaT version.
|
public static final java.lang.String BRANDING
public static final java.lang.String VERSION
public static final java.lang.String UPDATE
public static final java.lang.String REVISION
public static final boolean IS_BETA
public static java.util.ResourceBundle getResourceBundle()
public static void loadBundle(java.lang.String filename)
public static java.lang.String getString(java.lang.String key)
public static java.lang.String getString(java.lang.String key, java.lang.Object... formatArgs)
StringUtil.format(String, Object...)
.public static java.lang.String getApplicationDisplayName()
public static java.lang.String getApplicationName()
public static java.lang.String getBrandingToken()
BRANDING
is
empty.public static java.lang.String getDisplayNameAndVersion()
public static java.lang.String getNameAndVersion()
public static java.lang.String getVersion()
public static java.lang.String getSimpleVersion()
public static java.lang.String getSimpleVersion(java.lang.String version, java.lang.String update)
public static java.lang.String getProgressBarDefaultPrecentageText()
public static java.lang.String getSegmentMarker()
public static void validateVersion(java.util.function.Function<java.lang.String,java.lang.String> map)
map
- A function that accepts a key and returns a valuejava.lang.IllegalArgumentException
- If the version info is invalid