Documentation Center

Syntax

To map repairs to a specific source-to-target locale pairing, add the appropriate configuration options to the tm.properties file. The general syntax for configuring repair options is as follows:
{[source language id].}[repair property].[attribute name]={values}*
where:
  • source language id

    2- or 3-letter symbol for the source language; for example, en, fr. If the source language is not specified, then the property is applied to all source languages that do not have a specific setting.

  • repair property

    identifier for the type of repair to be configured.

  • attribute name

    identifies the property attribute to be configured. This may refer to a repair specific property, or to a common repair property.

  • values

    the set of appropriate values for the attribute being configured.

  • The left (key) values are case sensitive. The right values are not.
All repairs support the following global attributes:
  • target_languages
    Specifies which target languages to use with this repair for the given source language:
    • Ensure that the values are the standard 2- or 3-letter symbol representing the language. If you list multiple values, separate them with commas.
    • The value all denotes that the setting is for all languages.
    • The value "" (blank) denotes that no target languages are valid with the specified source language.
  • enabled
    Specifies whether this repair should be enabled or disabled for the source language; values are true and false. (Any value other than true is interpreted as false.) You can disable this repair without changing this option by simply providing an empty set for the target_language property. However, for readability, we suggest that you explicitly set this value.
    Example
    Individual repairs may support additional repair-specific attributes. Default values are used only when the language-specific setting is omitted. Consider this set of sample entries:
    punctuation.target_languages=
    punctuation.enabled=false
    en.punctuation.target_languages=DE,fr
    en.punctuation.enabled=true

    In this example, the punctuation repair is disabled for all languages other than English. For English, this repair can only be used when the target language is either German or French. The absence of a default configuration invokes the implicit default, which is to allow the full use of the repair, except where otherwise expressed.