Package org.omegat.filters3.xml.xliff
Class XLIFFOptions
java.lang.Object
org.omegat.filters2.AbstractOptions
org.omegat.filters3.xml.xliff.XLIFFOptions
Options for the XLIFF filter. Serializable to allow saving to / reading from
configuration file.
OpenDoc filter have the following options ([+] means default on). Translatable elements:
- [] Compatibility with 2.6
- [x]Previous and next paragraphs
- []<trans-unit>> ID
- []Force shortcut to "f" for <it pos="end> tags
- []Ignore type and ctype attributes when building <ph> tag shortcuts
- []Ignore type and ctype attributes when building <bpt>/<ept> tag shortcuts
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumIdentify how the ID for alternative translations is decided. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether 2.6 compatibility should be appliedReturn 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)booleanReturn whether transit to state="needs-review-translation" instead of "translated"booleanReturn whether the shortcut should be set to "f" for <it pos="end> tagsbooleanReturn whether the type and ctype attributes of <bpt>/<ept> tags should be ignored when building shortcutsbooleanReturn whether the type and ctype attributes of <ph> tag should be ignored when building shortcutsvoidset26Compatibility(boolean compatibility26) Sets whether 2.6 compatibility should be applied.voidSet 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)voidsetForceShortcutToF(boolean forceshortcut2f) Set whether the shortcut should be set to "f" for <it pos="end> tagsvoidsetIgnoreTypeForBptTags(boolean ignoreTypeForBptTags) Set whether the type and ctype attributes of <bpt>/<ept> tags should be ignored when building shortcutsvoidsetIgnoreTypeForPhTags(boolean ignoreTypeForPhTags) Set whether the type and ctype attributes of <ph> tag should be ignored when building shortcutsvoidsetStateToReview(boolean stateToReview) Set behavior flag whether change to state="needs-review-translation" instead of "translated"Methods inherited from class org.omegat.filters2.AbstractOptions
getOptionsMap
-
Constructor Details
-
XLIFFOptions
-
-
Method Details
-
get26Compatibility
public boolean get26Compatibility()Returns whether 2.6 compatibility should be applied -
set26Compatibility
public void set26Compatibility(boolean compatibility26) Sets whether 2.6 compatibility should be applied. -
getForceShortcutToF
public boolean getForceShortcutToF()Return whether the shortcut should be set to "f" for <it pos="end> tags -
setForceShortcutToF
public void setForceShortcutToF(boolean forceshortcut2f) Set whether the shortcut should be set to "f" for <it pos="end> tags -
getIgnoreTypeForPhTags
public boolean getIgnoreTypeForPhTags()Return whether the type and ctype attributes of <ph> tag should be ignored when building shortcuts -
setIgnoreTypeForPhTags
public void setIgnoreTypeForPhTags(boolean ignoreTypeForPhTags) Set whether the type and ctype attributes of <ph> tag should be ignored when building shortcuts -
getIgnoreTypeForBptTags
public boolean getIgnoreTypeForBptTags()Return whether the type and ctype attributes of <bpt>/<ept> tags should be ignored when building shortcuts -
setIgnoreTypeForBptTags
public void setIgnoreTypeForBptTags(boolean ignoreTypeForBptTags) Set whether the type and ctype attributes of <bpt>/<ept> tags should be ignored when building shortcuts -
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)
- previous and next paragraph (
-
setAltTransIDType
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)
- previous and next paragraph (
-
getChangeStateToNeedsReviewTranslation
public boolean getChangeStateToNeedsReviewTranslation()Return whether transit to state="needs-review-translation" instead of "translated" -
setStateToReview
public void setStateToReview(boolean stateToReview) Set behavior flag whether change to state="needs-review-translation" instead of "translated"
-