public final class TagValidation
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,TagUtil.Tag> |
extractPrintfVars(java.util.regex.Pattern printfPattern,
java.lang.String translation) |
static void |
inspectJavaMessageFormat(ErrorReport report) |
static void |
inspectOmegaTTags(SourceTextEntry ste,
ErrorReport report) |
protected static void |
inspectOrderedTags(java.util.List<TagUtil.Tag> srcTags,
java.util.List<TagUtil.Tag> locTags,
boolean looseOrdering,
ErrorReport report)
Check that translated tags are well-formed.
|
static void |
inspectPOWhitespace(ErrorReport report) |
static void |
inspectPrintfVariables(boolean simpleCheckOnly,
ErrorReport report) |
static void |
inspectRemovePattern(ErrorReport report) |
protected static void |
inspectUnorderedTags(java.util.List<TagUtil.Tag> srcTags,
java.util.List<TagUtil.Tag> locTags,
ErrorReport report) |
public static void inspectJavaMessageFormat(ErrorReport report)
public static void inspectPrintfVariables(boolean simpleCheckOnly, ErrorReport report)
public static java.util.Map<java.lang.String,TagUtil.Tag> extractPrintfVars(java.util.regex.Pattern printfPattern, java.lang.String translation)
public static void inspectPOWhitespace(ErrorReport report)
public static void inspectOmegaTTags(SourceTextEntry ste, ErrorReport report)
public static void inspectRemovePattern(ErrorReport report)
protected static void inspectUnorderedTags(java.util.List<TagUtil.Tag> srcTags, java.util.List<TagUtil.Tag> locTags, ErrorReport report)
protected static void inspectOrderedTags(java.util.List<TagUtil.Tag> srcTags, java.util.List<TagUtil.Tag> locTags, boolean looseOrdering, ErrorReport report)
srcTags
- A list of tags in the source textlocTags
- A list of tags in the translated textreport
- The report to append errors to