Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
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"

 
1 Comment
Labels in this area