cancel
Showing results for 
Search instead for 
Did you mean: 

Looking to Localize strings in Payloads using a UDF?

Former Member
0 Kudos

Hi all,

We have a requirement to pass localized versions of strings back depending on the locale of the request.

For example if the locale passed in the request is is en-us we would have

I was hoping to leverage a UDF which calls a java function to do the translation passing in a code which would access a resource file which would have the different localized versions of the strings stored.

I noticed in the PI 7.1 java guide there was an interface LocalizationCallback which looked close

http://help.sap.com/javadocs/pi/SP3/xpi/com/sap/aii/af/service/administration/api/i18n/LocalizationC...

Has anyone had experience localizing strings in response payloads based on a locale passed in the request.

If so I'm ideally after an overview of how you did it.

If you did it using a User Definied function some sample code for a UDF would be great.

Regards,

John

Accepted Solutions (1)

Accepted Solutions (1)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

See whether you can get help from this link... Java has a Locale class..

http://download.oracle.com/javase/tutorial/i18n/locale/scope.html

Answers (0)