Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Manufacturing Execution System

Updating the Funcs​.GetTranslations Method for Server-Side String Translations

Updating the Funcs​.GetTranslations Method for Server-Side String Translations

  • Last UpdatedNov 03, 2020
  • 1 minute read

Most of the MES Web Portal pages use the Funcs.GetTranslations method for string translations.

If any of the Web Portal pages have been customized, the method must be updated to pass the following required parameters: middlewareHost, token, languageId.

An example implementation is shown below.

@using MES.Web;

@{

int[] stringsToTranslate = { 15, 1053, 2489, 7736 };

var token = Request.Headers.Get("mes-token");

var middlewareHost = Request.Headers.Get("mes-middleware");

var languageId = Request.Headers.Get("mes-language");

var translatedStrings = Funcs.GetTranslations(middlewareHost, token,

languageId, stringsToTranslate);

}

TitleResults for “How to create a CRG?”Also Available in