Overview of display keys

A display key represents a single user-viewable text string. Guidewire strongly recommends that any string literal that can potentially be seen by a user be defined as a display key rather than as a hard-coded String literal.

PolicyCenter stores display keys in a display key properties file. In Guidewire Studio, this file is located under configuration > config > Localizations > Resource Bundle 'display'. In the base configuration, the default U.S. English display keys are in the file display.properties. There is a display_languageCode.properties file for each translated language, where languageCode is the language code for the strings defined in the file. For example, the display key properties file for German is display_de.properties.

If you do localize one or more display keys, then PolicyCenter uses additional display_languageCode.properties files, one for each language that you enable. For more information, see Localizing display keys.

PolicyCenter represents display keys within a hierarchical name space. Within the display key properties file, this translates into a dot (.) separating the levels of the hierarchy.

By opening the display key properties file in Studio, you can do the following:

Task

Actions

View a display key

Navigate to the display key that you want to view by scrolling through the display key properties file. To search for a particular key or value, press Ctrl+F and then type your search term in the search bar.

Modify the text of an existing display key

Navigate to the display key that you want to modify, and then modify the string in the editor as you want.

Create a new display key

In the display key editor, type the desired name and value for your new display key.

Delete an existing display key

Highlight the display key that you want to delete, and then press Delete.