My webMethods Server 10.5 | My webMethods Server Webhelp | Administering My webMethods Server | System Administrator Functions | Managing the User Interface | Creating Locale Rules
 
Creating Locale Rules
The Manage Locale Page Rules page allows you to define rules that dictate what locale should be used for a user session if it is not defined in the user profile.
*To create a new locale rule
1. As system administrator: Administration > User Interface > Manage Locale Rules > Create New Rule.
2. In the Name field, type a name for the rule.
3. (Optional) In the Description field, type a description for the new rule.
4. Unless you want to disable the rule during creation, leave Is Enabled selected.
5. To add a condition for individual users, click Current User(s) and do the following:
a. In the Keywords field, type a keyword representing the users you want to search for, and click Search.
b. Move one or more users to the Selected box and click Apply.
6. To add a condition based on group or role membership, click Group / Role Membership and do the following:
a. Under Search For, choose the Groups or Roles option.
b. In the Keywords field, type a keyword representing the groups or roles you want to search for, and click Search.
c. Move one or more groups or roles to the Selected box and click Apply.
7. To add a condition based on user attributes, click User Attributes, in the Pick User Attribute list, choose a user attribute, and click Apply.
For more information about the user attributes in the list, see User Information.
8. To add a condition based on global session attributes, click Global Session and do the following:
a. In the Global Session Attribute Name field, type the name of the global session attribute.
b. (Optional) In the Variable Value field, type a value for the global session attribute.
c. Click Apply.
9. To add a condition based on the request header, click Request and do the following:
a. Choose the expression, and click Submit.
b. In the Condition field, complete the expression.
For example, assume that you want to match any HTTP GET request. The wizard moves #{request.method} into the Condition field and you type the remainder:
#{request.method} == "GET"
10. To add a condition that matches the current resource or a parent of the current resource, click Parent Resource and then do the following:
a. To find children of a resource, click the name of the resource.
b. To select a resource, click the option button to the left of the resource.
c. Click Apply.
11. To add a condition that matches the current resource type, click Current Resource Type, choose the resource type and do the following:
a. To find children of a resource, click the name of the resource.
b. To select a resource, click the option button to the left of the resource.
c. Click Apply.
12. To add a condition for a resource property and a value associated with it, click Resource Properties, and do the following:
a. In the Property Name field, type the property name.
b. In the Property Value field, type the property value.
c. Click Apply.
For example, if you want to match files that are PDFs, the property name is mimeType and the property value is pdf.
13. From the Result list, choose the locale to be used for the rule.
14. Click Create Rule.