Jaxe, your XML editor
Jaxe, your XML editor

Jaxe configuration files
• Introduction
• Definition of the XML language
• File saving options
• Menus
• Node display
• Display types
• Exports
• Strings

# Strings

Author: Damien Guillaume

All the texts (also called strings) may have to be changed in the interface created with the configuration. Either to improve readability without having to change the schema, or to provide an interface in another natural language for the same schema. Texts may also have to be provided for a set of languages, so that users can edit the same documents, with the same Jaxe configuration, but with an interface entirely in their native language.

For these reasons, the `Strings` element represents a set of strings for a given language and country, and it is possible to specify several in the same config file. On can use for instance `language="pt" country="BR"` for Brazilian Portuguese, or just `language="en"` so specify English without any precision about the country.

You may have noticed that the real config file XML elements have French names, even though you see them in English in Jaxe and in this documentation. This is because the config file for config files is using these `Strings` elements to define titles to use for elements when the user's system language is English.

## Element definition

- `Configuration description`

  Short line to describe the configuration, displayed in the dialog to create new documents with Jaxe.

- `Menu strings`

  Strings associated to a menu, identified with its name

- `Title`

  A title

- `Documentation`

  A documentation

- `Element strings`

  Strings associated to an XML element. Used to display the element, but also for this element's insertion menu if no string was defined for the menu.

- `Title for value`

  A title to use for an element or attribute value

- `Attribute strings`

  Strings associated to an attributes

- `Export strings`

  Strings associated to an export

## Element tree

Element tree under `Strings` :

- `Strings @language @country (Configuration description | Menu strings | Element strings | Export strings)+`
  - `Configuration description`
  - `Menu strings @menu (Title?, Documentation?, Menu strings*)`
    - `Title`
    - `Documentation`
    - `Menu strings @menu`
  - `Element strings @element (Title?, Documentation?, Title for value*, Attribute strings*)`
    - `Title`
    - `Documentation`
    - `Title for value @valeur`
    - `Attribute strings @attribut (Title?, Documentation?, Title for value*)`
      - `Title`
      - `Documentation`
      - `Title for value @valeur`
  - `Export strings @export (Title?, Documentation?)`
    - `Title`
    - `Documentation`