Modifying .resx files

Note: The resource files should only be modified in rare cases. Syntax errors in the resource files can cause serious errors in Infor Public Sector. If you edit the .resx files you should test your changes thoroughly before putting them into production. Also be aware that your modified resource files will be overwritten when you update Infor Public Sector.

To begin, copy the entire ResX folder from the Infor Public Sector download to a working directory of your choice. After you modify the .resx files and convert them to .Resources, you will copy the modified .Resources files to the bin directory in your build of Infor Public Sector.

The .resx files use XML syntax, so they can be edited in any text or XML editor. You can also edit them in Visual Studio, which shows the XML data in a table for easy editing. We recommend Visual Studio because it reduces the chances of errors.

Each .resx file contains a list of name/value pairs. The name specifies the conditions under which the message will be displayed, and the value contains the string to be displayed.

Note:  If you open a .resx file in a text editor, you will first see a set of comments describing the Microsoft .ResX schema, followed by the schema itself. The values that you will edit are contained in a series of <data> elements, which begin after the schema.

This is a sample of XML from Hansen.AssetManagement.resx, which is the source file for Hansen.AssetManagement.Resources. The text between the <value> tags is the string to be modified or translated.

<data name="AssetManagementApplet_SelectItemFromGrid">
   <value>Please select an item from the grid first</value>
</data>

Sometimes the value strings include characters between curly brackets, such as {0} . These are placeholders that Infor Public Sector fills in from other sources when showing messages, so you should not remove them when editing the strings. For example, the text in the sample below indicates the number of detail pages associated with an asset. Infor Public Sector replaces the {0} with the appropriate number when using this text to show a message.

<data name="AssetManagementStatusApplet_DetailPages">
   <value>There are {0} detail pages associated with this asset.</value>
</data>