public class XLIFFOptions extends AbstractOptions
OpenDoc filter have the following options ([+] means default on). Translatable elements:
Modifier and Type | Class and Description |
---|---|
static class |
XLIFFOptions.ID_TYPE
Identify how the ID for alternative translations is decided.
|
Constructor and Description |
---|
XLIFFOptions(java.util.Map<java.lang.String,java.lang.String> config) |
Modifier and Type | Method and Description |
---|---|
boolean |
get26Compatibility()
Returns whether 2.6 compatibility should be applied
|
XLIFFOptions.ID_TYPE |
getAltTransIDType()
Return how the ID for alternative translations should be taken:
previous and next paragraph (
XLIFFOptions.ID_TYPE.CONTEXT , default)
the <trans-unit> id (XLIFFOptions.ID_TYPE.ELEMENT_ID )
the <trans-unit> resname attribute (XLIFFOptions.ID_TYPE.RESNAME_ATTR )
|
boolean |
getChangeStateToNeedsReviewTranslation()
Return whether transit to state="needs-review-translation" instead of "translated"
|
boolean |
getForceShortcutToF()
Return whether the shortcut should be set to "f" for
<it pos="end> tags
|
boolean |
getIgnoreTypeForBptTags()
Return whether the type and ctype attributes of
<bpt>/<ept> tags should be ignored when building shortcuts
|
boolean |
getIgnoreTypeForPhTags()
Return whether the type and ctype attributes of
<ph> tag should be ignored when building shortcuts
|
void |
set26Compatibility(boolean compatibility26)
Sets whether 2.6 compatibility should be applied.
|
void |
setAltTransIDType(XLIFFOptions.ID_TYPE idType)
Set how the ID for alternative translations should be taken:
previous and next paragraph (
XLIFFOptions.ID_TYPE.CONTEXT , default)
the <trans-unit> id (XLIFFOptions.ID_TYPE.ELEMENT_ID )
the <trans-unit> resname attribute (XLIFFOptions.ID_TYPE.RESNAME_ATTR )
|
void |
setForceShortcutToF(boolean forceshortcut2f)
Set whether the shortcut should be set to "f" for
<it pos="end> tags
|
void |
setIgnoreTypeForBptTags(boolean ignoreTypeForBptTags)
Set whether the type and ctype attributes of
<bpt>/<ept> tags should be ignored when building shortcuts
|
void |
setIgnoreTypeForPhTags(boolean ignoreTypeForPhTags)
Set whether the type and ctype attributes of
<ph> tag should be ignored when building shortcuts
|
void |
setStateToReview(boolean stateToReview)
Set behavior flag whether change to state="needs-review-translation" instead of "translated"
|
getBoolean, getEnum, getOptionsMap, getString, setBoolean, setEnum, setString
public XLIFFOptions(java.util.Map<java.lang.String,java.lang.String> config)
public boolean get26Compatibility()
public void set26Compatibility(boolean compatibility26)
public boolean getForceShortcutToF()
public void setForceShortcutToF(boolean forceshortcut2f)
public boolean getIgnoreTypeForPhTags()
public void setIgnoreTypeForPhTags(boolean ignoreTypeForPhTags)
public boolean getIgnoreTypeForBptTags()
public void setIgnoreTypeForBptTags(boolean ignoreTypeForBptTags)
public XLIFFOptions.ID_TYPE getAltTransIDType()
XLIFFOptions.ID_TYPE.CONTEXT
, default)XLIFFOptions.ID_TYPE.ELEMENT_ID
)XLIFFOptions.ID_TYPE.RESNAME_ATTR
)public void setAltTransIDType(XLIFFOptions.ID_TYPE idType)
XLIFFOptions.ID_TYPE.CONTEXT
, default)XLIFFOptions.ID_TYPE.ELEMENT_ID
)XLIFFOptions.ID_TYPE.RESNAME_ATTR
)public boolean getChangeStateToNeedsReviewTranslation()
public void setStateToReview(boolean stateToReview)