Adding Language to Agent Interface Files
To add a new language to the Agent Interface you need to define the new language in a file, as well as an image of a flag that represents it. To add a language:
- Go to [BMC Installation Directory] /ui/common/images and check if there is a matching LANG_YourLanguageAbbreviation.png file for your language.
- If there is no such file, create a new .pngfile of the flag representing your language with dimensions of 16 x 11 pixels.
- Open the [BMC Installation Directory] /ui/common/scripts/menu_items.js file in a text editor.
Replace the three variables in the following line with your information and add it after line 29:
[
<img style=/"position:absolute;top:5px;left:7px;/" src=/"/common/images/LANG_<varname>YourLanguageAbbr</varname>.png/" width=16 height=11>
<div style=/"position:absolute;top:4px;width:46px;left:27px;/" align=left><varname>YourLanguage</varname></div>',szURL + '_language=<varname>YourLanguage</varname>']To add Chinese as a new language, replace YourLanguageAbbr with CNand YourLanguage with Chinese.
- Save the file and close it.
You included the new language with its matching flag. In the Agent Interface the new language can be selected, but the translations are still missing. In the next step you add the translations to the database.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*