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

AVEVA™ Manufacturing Execution System 2023 R2

Update the Funcs​.GetTranslations method for server-side string translations

Update the Funcs​.GetTranslations method for server-side string translations

  • Last UpdatedOct 18, 2024
  • 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