ui.*.cfg

Background

Provides a language-specific translation file for specific UI labels for use with Freemarker templates.

Usage

ui.*.cfg is created from the manage results page configuration files screen in the results page dashboard.

Format

A text file, containing key/value pairs in the following format

(key)=(value)

where:

key

is an identifier that can be referenced within a Freemarker template

value

is a string of text that is displayed in the template. This can be a literal string, or a java.util.Formatter style string that can format args passed when used in the Freemarker template.

Example

The following is a valid ui.*.cfg file:

search=Find
results_found=%d results found for %s

Using the following in a Freemarker file will be replaced as follows:

Freemarker code Replacement

${response.translations.search!"Search"}

Find

<@fb.Format key="search" args="" />

Find

<@fb.Format key="results_found" args=[response.resultPacket.resultsSummary.totalMatching, question.query] /> with response.resultPacket.resultsSummary.totalMatching = 24 and question.query = today’s weather

24 results found for today’s weather.