In order for the text on Strategy Web pages to be displayed in the appropriate language for the current locale, the text is stored in separate descriptor properties file for each language. The Strategy Web application determines the current locale (using the application language selected in Preferences) and then retrieves text from the appropriate locale-specific descriptor properties file.
The Strategy Developer Library (MSDL) explains how to use these files to localize the text to be displayed in Strategy Web using the custom tag web:descriptor. However, the user can also access these files direclty from the tranform. The following code sample ilustrates how can this be achieved:
Java
ReportBean rb;
Messages messages = rb.getBeanContext().getMessages();
String textToDisplay = messages.getString("mstrWeb.45");
System.out.println(textToDisplay);
CUSTOMIZATION WARNING:
This customization is provided as a convenience to Strategy users and is only directly applicable to the version stated. While this code may apply to other releases directly, Strategy Technical Support makes no guarantees that the code provided will apply to any future or previous builds. In the event of a code change in future builds, Strategy Technical Support makes no guarantee that an updated version of this particular customization will be provided. In the event of a code change in future builds, Strategy may not be able to provide additional code on this matter even though this customization is provided at this time for this specific build. For enhancements to this customization or to incorporate similar functionality into other versions, contact your Account Executive to inquire about Strategy Consulting assistance.