Show all
Use the Field Value Inspector option
of the Rules Inspector tool to find, review, and update field
value rules in a language-specific RuleSet that are associated
with labels, captions, messages, ToolTips, and other text
elements on work object forms and portal displays.
Typically, use the Localization wizard first. Then use the
Field Value Inspector tool to review results in the context of
the application being localized. You can review, revise, or add
field value rules to provide a more effective and more complete
localization.
Preparation
Before enabling this tool, complete these preparations.
This tool can help you check, finalize, or maintain field
value rules for localization — field values created in
a language-specific RuleSet. Typically, these field values
are created using the localization wizard. See About the
Localization wizard.
- Review your profile to confirm that a language-specific
RuleSet is included for the target language, for example
Mortgage_ES for field value rules in Spanish that apply to
the Mortgage RuleSet.
- Select File > Open > Work Pool >
name to establish the appropriate work
pool.
- Select Tools > Locale Settings. change
your own locale to the value that represents the target
language. See About the
Set Locale tool.
- The Developer portal is never localized. Select
File > Open > Portal > name to
open a portal that application users use, where name
is the name of a portal rule available in your own access
group.
Icons and
their meaning
Select Run > Rules Inspector > Field Value
Rules (or the keyboard shortcut
CTRL+ALT+W
) to turn on the field value
inspector. Return to the portal for application users.
Each element can contain one or more of the following
icons:
-
— Field value in attribute exists
-
— Field value in attribute does not
exist
-
— Field value in text exists
-
— Field value in text does not
exist
The first two icons (with a white A) refer to text that is
not initially visible, such as a ToolTip. The second two
icons (with a black A) refer to visible text, such as a field
label or caption.
The two icons with a red slash indicate that no field
value rule is found in the language-specific RuleSet; this
result indicates that localization is incomplete. Click a
globe icon to open or create a field value rule.
Working
with the Field Value Manager window
Click any of the four icons to access its field value rule
(if any). Complete the Field Value Manager window and click
Save to create or revise a field
value rule for the element.
After you complete this form for one or more elements,
click the Refresh toolbar button () to redisplay the work object
form or other portal element with updated translation values
and icons.
Field
|
Description
|
Field value
|
Identifies the three key parts of the field value
rule (which may not yet exist).
Click the pencil button () to open the field value
rule, if you need to see the rule form.
|
Base Language Translation
|
Presents the original text value on the harness,
section, or flow action form in the application
RuleSet.
|
Current Translation for locale
|
Enter or revise this text to create an appropriate
localized value.
|
Context
|
Select a class to
become Applies To value — first
key part — of the field value rule.
|
Save
|
When you finish form input, click Save to save the field value rule
and close the window.
|
Cancel
|
Click Cancel to close the form without saving
additional changes.
|
Refresh
|
Click Refresh to display the form with current
values.
|
Localizing
column labels in list view and summary view rules
To review and modify localization of list view and summary
value rules:
- Complete the steps described in the Preparation section
above.
- Select Run > Rules Inspector > Field Value
Rules to start the field value inspector.
- In the Developer portal, open a List View or Summary
View form for a rule to be localized. Confirm that the
Localize? check box (on the HTML tab) is selected, or resave the rule
after selecting this check box.
- Click the Run toolbar button (). The resulting report may be empty;
its contents are not significant.
- Click Field Value Inventory at the top level of the
report output.
- Each row of the resulting window has a text value (in
the base language) and an icon. Click an icon to start the
Field Value manager.
- Review, create, or modify language-specific values as
appropriate with the Field Value manager. Click
Save.
Testing
in the WorkManager portal
As a best practice, perform
final testing and polishing of a localized application in a
setting governed by the portal rule of the application, not
the Developer portal. To enable such testing:
- Update the WorkManager portal (or other
portal rule used in the application) to reference the
gadget Data-Gadget.FieldValueInspector, a
standard HTML rule. For example, you can add that to the
Narrow Column array on the Tabs tab of the Portal form.
- Update the Access of Role to Object rule for an access
role available to the application users so that they are
allowed to modify and delete field value rules. (In
contrast, the standard Access of Role to Object rule named
PegaRULES:WorkMgr4.Rule-Obj-FieldValue allows
review, but not update, of field value rules).
- Ensure that the users testing the localization have
access, through access groups, to the RuleSet versions
containing the localized field values.
- Log in using the modified portal. At this point, you
can test and refine field rules in the context of
day-to-day use of the application.
- When testing and policing is complete, back out the
changes you made in steps 1 and 2.
Notes
Applications commonly localize these elements:
- pyActionLabel — Short description
text for flow actions
- pyActionPrompt — Labels for input
fields on flow actions
- pyButtonLabel — Labels on buttons
and URLs
- pyCaption — Labels on field
values
- pyConfirmationNote — Text on a
Confirm harness form
- pyHistoryMemo — Text in work object
history
- pyInstructions — Instructions in
assignments, visible on worklist display
- pyMessageLabel — Error message text
- pyStatusLabel — Work object status
values
- pyStatusWork — Work object status
values
The system-generated HTML includes calls to the PublicAPI
Java function getLocalizedTextForString() to
convert text.
About the Rules Inspector tool