Professional Documents
Culture Documents
Once the project is deployed, you can select the display language from the portal page. You may need to
clear the cached information for the operator view (Ctrl-F5) in the browser to clear the previous language
and display with the newly chosen one. Behind the scenes, the content of the chosen language file is placed
in the current LocalizedLabels file.
Procedure
1. In the Operator View layout tab, add the prefix LOC_ to every word that you wish to localize, for
example LOC_Project_Title, LOC_TotalPass. Items that can be localized are labels, button text,
toggle button text and PassFail element text.
2. Using an editor, open the provided LocalizedLabels.js and save it in the project's OperatorView
folder with a new name for the language you are working on, for example LocalizedLabels-
French.js. The default language should be a copy of one of the languages with the language name
removed.
PRELIMINARY
Multiple Language Support for Operator Views 2
3. For every item to translate you add a key:value pair to the enumeration. For example:
var __localizedStr =
{
"LOC_Project_Title": "Projet ABC",
"LOC_TotalPass": "Total Pass"
};
Remember that the file must have valid javascript syntax, so the items in the localization list must
be separated by commas.
Notice also the variable that that contains the string you would like to use to identify the currently
selected language. Typically, this string would match the last part of the filename, LocalizedLabels-
XXXX.js.
Procedure
Prepare the LocalizedLabels files as described above.
1. Open the attached Operator View Localization.zip file.
2. Navigate to Program Files/MatroxImaging/DA 5.1/Web/dawebinc. Backup then replace
DAWebtools.js and DesignAssistant.css with the provided corresponding files from the zip
3. Navigate to Program Files/MatroxImaging/DA 5.1/OperatorView/Web. Backup then replace
OperatorViewHeader.htm with the provided corresponding file from the zip
PRELIMINARY