Skip to Content

Hi There I just did a Custom Python Transformation to Google Translate some text using Data Services

I downloaded the libraries from https://pypi.python.org/pypi/goslate#downloads

and dropped them in

C:\Program Files (x86)\SAP BusinessObjects\Data Services\DataQuality\python\Lib

 

then I created the job

here is the function

 

 

 

 

here is the code

import goslate
dct = locals()
gs = goslate.Goslate()
dct[u’Expresion’] = record.GetField(u’Expresion’)

dct[u’Expresion’] = gs.translate(dct[u’Expresion’],’de’)
record.SetField(u’TX’,dct[u’Expresion’] )

You can change ‘de’ (Deutsche) to other languages

 

 

 

Hope this will help “Someone Out there”

 

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

Leave a Reply