Language selection

akin9
Tera Contributor

Hello Experts,

We have created new field is translate language and want to add on the service portal.

Requirement

Is it possible to set my "custom language" is only for translation instead of "preferred_language".

Pls support!

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @akin9 

 

created new field is translate language --> On which table you created this field and where on SP you want to show. Please provides some screen shots for support. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG 

Thanks for the Quick reply!

1.we have created a new field "translate language"on the "sys_user" table.

1.We are using the microsoft translator its translating based on the user preference language.

Requirement.

Based on the "translate language" field selection wants translatation. 

same should work on the service portal also.

Pls support on this.

akin9_0-1701971296807.png

We have added on the same on portal profile customized the widget.

but used same as language field both working as same.

we need to add on the server script but im struggling.

 

<div class="list-group-item" ng-if="data.preferencesEnabled.languageEnabled">
<label for="language_picker_select">${Language}</label>
<select id="language_picker_select" class="form-control"
name="language_picker_select" ng-model="data.listProperties.language.current"
ng-change="setPreferenceValue('language', data.listProperties.language.current.value)"
ng-options="item as item.label for item in data.listProperties.language.list "/>
</div>
<div class="list-group-item" ng-if="data.preferencesEnabled.languageEnabled">
<label for="language_picker_select">${Translate Language}</label>
<select id="language_picker_select" class="form-control"
name="language_picker_select" ng-model="data.listProperties.language.current"
ng-change="setPreferenceValue('language', data.listProperties.u_translate_language.current.value)"
ng-options="item as item.label for item in data.listProperties.language.list "/>
</div>

akin9_1-1701972468254.png

 

 

Thanks @akin9 for sharing the update. It is all about code , which is not my core area , sorry mate.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @LearnNGrow-Atul 

Thanks for the Quick reply!

Is it possible to help on this need to create any property?

1.we have created a new field "translate language"on the "sys_user" table.

1.We are using the microsoft translator its translating based on the user preference language.

Requirement.

Based on the "translate language" field selection wants translatation.