Presto Content Management System
Multilingual Forms

<- ->

Documentation > Presto Developer's Manual > Under The Hood > The Form Interface

Presto handles multilingual field data in a sophisticated way.

  • It first provides the ability to label fields in any language desired.
  • It optionally enables the collection of data to be language specific - french data goes in a french field, english data goes in an english field.
  • In the display of field data, it will default to the display of english field content if language specific content isn't available.
  • An extra feature is the ability to simultaniously show a form's fields in various languages, if content for them is available.

In general, the form.form_language attribute indicates what language form fields, help, thank you are named & conveyed in, if available. Both field label & contents may default to english if spanish text not available.

Specific fields can be set up to work with a variety of languages. This is what a field's "text_languages" parameter controls. Marking a field as having more than one language enables separate content to be shown for that field, depending on the language the form is shown in. Note though that separate database table fields must be set up to catch and store language variations of a particular field's content. The naming convention is that the base language is always english, and its field name is unadorned.Other languages, like french, must have the base field's database field name, but with the language's id (0=english,1=french,2=spanish...) appended, e.g. name=english name of item, name1=french name of item, name2=spanish name of item.

<- ->

Valid XHTML 1.0!