Technology Blog Posts by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
2,072
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