ITC Forms 0.15.6Changelog
Multilingual form content
Plugin interface copy uses the bundled gettext catalogs. A site owner’s form titles, descriptions, labels, help, placeholders, choice labels, conditional confirmation messages, and email templates live in the database and use a separate integration.
ITC Forms registers those display strings with Polylang and WPML whenever a form is saved. Polylang is evaluated first, followed by WPML’s single-string filter. No multilingual plugin is required; without one, saved content is returned unchanged.
Translation keys are built from the immutable form key plus stable field,
choice, confirmation, and delivery keys. Only display strings can be replaced.
The itc_forms_translated_definition filter is deliberately constrained after
execution: attempts to alter field keys, choice values, conditions, validation,
providers, recipients, secrets, storage, or retention are discarded. This keeps
conditional logic, stored entries, exports, and deliveries language-neutral.
PHP example:
add_filter( 'itc_forms_translated_definition', static function (array $definition, string $formKey): array { if ($formKey === 'contact') { $definition['settings']['submitLabel'] = 'Send'; } return $definition; }, 10, 2);With Polylang configured for multiple languages, open Form settings → Form details → Translations after saving. The link opens the form’s string group. Polylang shares translations for identical source text.
Managed submissions store the language selected on the form page. The entry detail shows it in Submission metadata. A translated WordPress thank-you page is used when it is published, with the thank-you message as the fallback. A custom redirect URL is shared by all languages.
Visitor emails use the submission language. Staff email automations default to the site language and can use the submission language instead. The first delivery attempt records its language for retries. Older entries use the site language. Missing translated strings use their saved source text.
Use WPML’s string editor to maintain WPML translations. The builder’s translation link and recorded delivery language currently use Polylang.