Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 2 Using the iProcess Engine Configuration Files : SWDIR\etc\language.lng\staffw.mes

SWDIR\etc\language.lng\staffw.mes
This file contains some configurable messages that affect how the long date is displayed in TIBCO iProcess Workspace.
Changing the Long Date Format
For information on using the long date and time format in an iProcess step definition, see “Using Embedded and Ampersanded Fields” in TIBCO iProcess Modeler Basic Design.
The staffw.mes file, which is located in the SWDIR\etc\language.lng directory, determines how the long date is displayed by iProcess Workspace. The long date information is returned from the staffw.mes file, which is located in the SWDIR\etc\language.lng directory, instead of the staffpms file, which is located in the SWDIR\etc\language.lng directory, because it enables different users on the same system to have different long date displays depending on their LANGUAGE attribute.
See “Setting Pre-defined Attributes” in TIBCO iProcess Workspace (Windows): Manager's Guide for more information about how to set a user’s LANGUAGE attribute.
To ensure the date is displayed consistently in both TIBCO iProcess Workspace and iProcess Engine, the information in the staffw.mes and staff.mes files, which are located in the SWDIR\etc\language.lng directory, must be the same. This means that any changes must be made in both files.
The following example is an extract from the staffw.mes file, which is located in the SWDIR\etc\language.lng directory:

 
0004:W:\\%s %s, %s\\dmy\\\ AM\ PM\Week
0013:W:Sunday\Monday\Tuesday\Wednesday\Thursday\Friday\Saturday$
0014:W:January\February\March\April\May\June\July\August\September\October\November\December

 
 
The file is divided into one message per line. The messages that determine how the long date is displayed are:
0004 specifies each component of the long date.
0013 specifies the days of the week.
0014 specifies the months of the year.
Each message is in the format:
number:type:data
where:
number is the identifier for this message. For example, 0004.
type is either W, indicating that the message is used by TIBCO iProcess Workspace, or blank, indicating that the message is used by iProcess Engine.
data is one or more data entries associated with this message. If there are multiple data entries, each entry is separated by a backslash (\) character.
For example, the following table describes the data entries for message 0004.
 
To change the long date format, for example, to Wednesday 12 Dec, 2012:
1.
Edit message 0004 of the staff.mes file located in the SWDIR\etc\language.lng directory as follows:
a.
Add %s to position 3 to represent the day of the week, as shown below.
b.
Add w to position 5 to represent the day of the week, as shown below.
c.
Edit message 0014 to use short month names rather than long ones. For example, Dec instead of December.

 
0004:W:\\%s %s %s, %s\\wdmy\\\ AM\ PM\Week
0013:W:Sunday\Monday\Tuesday\Wednesday\Thursday\Friday\Saturday$
0014:W:Jan\Feb\Mar\Apr\May\Jun\Jul\Aug\Sept\Oct\Nov\Dec

 
 
2.
Replicate the changes made in the staffw.mes and the staff.mes file, which are located in the SWDIR\etc\language.lng directory.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved