function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
eric garniereric garnier 

CTI Adapter : How to localize Agent Status?

Hi all,

I just developed a CTI Adapter and I want to have localize agent status.

I already get the user locales.

Is it possible, and how, to have dynamically localize status?

 

Thanks

And Happy New Year.

 

Eric

Best Answer chosen by Admin (Salesforce Developers) 
*werewolf**werewolf*
Well you can probably just call SetLabel on CCTIAgentState when you create it at init time and that label will stick, so that way you only have to get the localized string once.

All Answers

*werewolf**werewolf*
The default agent states (Ready for Calls, Not Ready for Calls, etc) will be localized for you -- they'll be translated into whatever language is on the Salesforce user record. Remember that if you change the user language you have to log out and back into Salesforce or restart the adapter to see the new language in the CTI area.
eric garniereric garnier

Thanks for your fast answer,

unfortunately my customer invented new status (not the one already existing), so I need to take care my self to localize them.

Is it possible? I suspect I can do it by simply sending localized string in OnAgentStateEnablementChange, but this way, I will need to process localized string in CTIChangeAgentState.

Any other way to do it?

 

Thanks

 

Eric

*werewolf**werewolf*
Well you can probably just call SetLabel on CCTIAgentState when you create it at init time and that label will stick, so that way you only have to get the localized string once.
This was selected as the best answer
eric garniereric garnier

You right,

the CCTIAgent::AddAgentState accept a label.

Thanks

Eric