About string files

Build 1501 on 14/Nov/2017  This topic last edited on: 6/Sep/2016, at 13:33

Parts of user interface labels and names are defined in a series of string files.

GN4 strings have two purposes:

To give a human-readable names to the system objects

Example: the object name is keywordSet, but you want it to appear in the user interface as Keyword Set. Then, you will use the following string remapping in the BaseString.en.xml file:

<StringDesc Scope="ObjTypeCaption" Name="keywordSet" Value="Keyword set" />

Default names remapping is available in the BaseString.en.xml, and GN4STRING.EN.XML.

To translate, in another language, object and attribute names, and some user interface elements.
Example: the object name is keywordSet, but you want it to appear in the user interface as Parole chiave. Then, you will use the following string remapping in the BaseString.it.xml file:
<StringDesc Language="it" Scope="ObjTypeCaption" Name="keywordSet" Value="Parole chiave" />

Content of string files

The strings file typically contain:

Type

Example

Object type name translation used as a caption

<StringDesc Scope="ObjTypeCaption" Name="budget" Value="Budget" />

<StringDesc Scope="ObjTypeCaption" Name="head" Value="Head" />

Object type name translation used inside a message

<StringDesc Scope="ObjTypeMsg" Name="clientTemplate" Value="client template" />

Object type custom errors

<StringDesc Scope="ObjTypeDuplicateKeyError" Name="userGap" Value="There is already an interval for the same user ({1}) with the same reason ({3}) and starting at the same time ({4})" />

Object attribute name translation used as a caption

<StringDesc Scope="ObjAttrCaption" Name="access" Value="Access permissions" />

Object attribute name translation used inside a message

<StringDesc Scope="ObjAttrMsg" Name="access" Value="access permissions" />

Enumeration captions

<StringDesc Scope="EnumCaption" Name="Audit" Value="Access audit" />

Messages used by feeds XSLT

<StringDesc Scope="Default" Name="ErrTaskDoesNotContainArticle" Value="The task '{0}' (id: {1}) does not contain an article" />

Instruction on how to enter/edit an object

StringDesc Scope="ObjTypeInstruction" Name="editDataSrcCustom" Value="Change the value of the last polling time in order to use the given date and time within the custom data source polling workflow" />

Page titles, objectUI tabs, objectUI titles etc.

<StringDesc Scope="Default" Name="editContact" Value="Edit Contact" />

Additional renaming

<StringDesc Scope="Default" Name="Editorial Image [Photo Caption]" Value="Photo" />