Translating Service Catalog Variables

jonbebb
Kilo Contributor

I am trying to configure snow for multiple languages and have installed the german plug in. When I view a Catalog item in either UI or ESS site the standard cat item field names are displayed in german but catalogue variables are not. Has anyone applied translation to catalog variables and can advise if further configuration is required

 

Many Thanks

Jon

35 REPLIES 35

Hi Christina,



We are using Macros as well in catalog variables so how we can translate it and where/what entries is require to achieve translation for macros.


Please help.


chr_kluge
ServiceNow Employee
ServiceNow Employee

Hello Ashish



I haven't used UI Macros in catalog variables. But I'd suggest you translate the text directly in your UI Macro like this:



${gs.getMessage(keyname)}



The messages are under Localization --> Messages.



Best Regards


Christina


Thanks for info Christina.


I am a beginner in SNOW, so can you help me where I have to right this ${gs.getMessage(keyname)} code. As I can see in UI Macros where my macros listed and not found any area where I can add this code line. Also I visited Message table   and found same kind of info but unable to do it.


Please help.


chr_kluge
ServiceNow Employee
ServiceNow Employee

Hello Ashish



Let's say you have a in your UI Macro a text like this:


<div>


<table>


<tr>


<td>Telephone:</td>


<td>${jvar_phone_number}</td>


</tr>


</table>


</div>



So you want to localize the string "Telephone:".


Go to System Localization --> Messages and create a new Message:
find_real_file.png



Afterwards you change the line into the following:
<td>${gs.getMessage('uimacro.telephone')}</td>




I hope that helps you.


Christina


Thanks for the help Christina, It is really helpful and I got what I wanted.



Could you please help me to translate UI Page? we are using a catalog variable which type is UI Page that contains UI page name in 'Type Specifications'.