GetTrans(Family, Caption)

Returns the translation for a caption in the specified caption family, based on user's current language.

Self-Service users can set the language using the VisitorInfo method, for example:

Copy
CRM.VisitorInfo("Visi_Language")='DE';
Parameters
  • Family. Specifies the name of the caption family to which the caption belongs. To view available caption families and caption types, go to <My Profile> | Administration | Customization | Translations.
  • Caption. Specifies the name of the caption.
Examples
Copy
CRM.AddContent(CRM.GetTrans('GenCaptions','Screen'));
Response.Write(CRM.GetPage());

Displays the word Screen in the user's current language, provided that the translation in that language has already been added to Sage CRM translations.