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 |
---|---|
|
Find |
|
Find |
|
24 results found for today’s weather. |