Class ResXDialect

java.lang.Object
org.omegat.filters3.xml.DefaultXMLDialect
org.omegat.filters3.xml.resx.ResXDialect
All Implemented Interfaces:
XMLDialect

@NullMarked public class ResXDialect extends DefaultXMLDialect
This class specifies the ResX XML Dialect.
  • Constructor Details

    • ResXDialect

      public ResXDialect()
  • Method Details

    • validateIntactTag

      public Boolean validateIntactTag(String tag, @Nullable Attributes atts)
      In the ResX filter, content should be translated in the following condition: It should be contained in <data>. If there is the attribute "type" or "mimetype", the content shouldn't be translated. If there is the attribute "name", the content shouldn't be translated if the content of "name" starts with > or ends with "FieldName"
      Specified by:
      validateIntactTag in interface XMLDialect
      Overrides:
      validateIntactTag in class DefaultXMLDialect
      Parameters:
      tag - An XML tag
      atts - The attributes associated with the tag
      Returns:
      false if the content of this tag should be translated, true otherwise