Developer Documentation Library > Interviewer - Server Admin > Customizing UNICOM Intelligence Interviewer - Server Admin > Activity configuration files > Public resources file
 
Public resources file
The public resources file stores strings that can be accessed by UNICOM Intelligence Interviewer - Server Admin and by other activities that run through UNICOM Intelligence Interviewer - Server Admin. Each activity has its own public resources file whose name and location are defined in the activity's interface document (.xml file). The public resources file is usually called PublicResources.resx, and it is generally in the activity’s bin folder. This information is added to the activity’s ApplicationSettings collection in DPM. For example, the ApplicationSettings collection for the Quotas activity is as follows:
<ApplicationSettings>
  ...
  <Property name="PublicResourceFolder" datatype=string">
    <![CDATA[../QuotaReports/bin]]>
  </Property>
  <Property name="PublicResourceFileName" datatype=string">
    <![CDATA[PublicResources.resx]]>
  </Property>
  ...
</ApplicationSettings>
If you localize an activity's public resources file, put each localized version of the file in an appropriate subfolder of the folder named in the PublicResourceFolder property. For example, if you have translated the public resources file for the Quota activity into French Canadian and the properties are as shown earlier, install the localized version of the file in the SPSSMR\QuotaReports\bin\fr-CA folder. When a user runs the activity, the PublicResourceManager class in the UNICOM Intelligence Interviewer - Server Admin.dll component looks first in the country/variant folder, then in country, and then in the root folder, which is usually English. (This is the same procedure that .NET uses to find localized strings.)
For a list of language codes, see Language codes.
When UNICOM Intelligence Interviewer - Server Admin searches for localized text for an activity, it looks for the following strings:
Description
A description of what the activity does. If the property is not defined, UNICOM Intelligence Interviewer - Server Admin uses a blank string.
ActivityDisplayName
The name of the activity as you want it to appear in the activity list. If this property is not defined, UNICOM Intelligence Interviewer - Server Admin uses the value of the DisplayName property in the ApplicationSettings collection in DPM. For more information, see ApplicationSettings Element.
ActivityShortText
Text to display in the wait message that is displayed while the activity is starting. If this property is not defined, UNICOM Intelligence Interviewer - Server Admin uses the value of the DisplayName property in the ApplicationSettings collection in DPM. For more information, see ApplicationSettings Element.
UNICOM Intelligence Interviewer - Server Admin public resources file
The UNICOM Intelligence Interviewer - Server Admin public resources file contains the same strings as other activities, plus the following strings that are used when grouping activities by type in the activities list.
<data name="design">
  <value>Design</value>
</data>
<data name="manage">
  <value>Manage</value>
</data>
<data name="datacollection">
  <value>Data Collection</value>
</data>
<data name="reports">
  <value>Reports</value>
</data>
<data name="other">
  <value>Other</value>
</data>
See also
Accessing texts in a public resources file
Activity configuration files