EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB32959: How to Display Localized Text from a Transform in MicroStrategy Web


Community Admin

• Strategy


In order for the text on MicroStrategy 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 MicroStrategy 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.

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.
 


Comment

0 comments

Details

Knowledge Article

Published:

June 22, 2017

Last Updated:

June 22, 2017