Skip to main content

Normally using StrTranslate function we can translate given text, but when we have a comma in the text it will not translate the string beyond that poiint. It will skip the remaining part of the text.

 

E.g:-

‘Please translate me, I have a comma’

 

vldtstr:strTranslate(../../../tns:PROCESSING_INFO/tns:FORMATTING_OPTIONS/tns:LANG_CODE,'en,de','Please translate me, I have a comma,Bitte übersetzen Sie mich, ich habe ein Komma','Please translate me, I have a comma')

 

Result: 

en: Please translate me (missing ‘, I have a comma’)

de: Bitte übersetzen Sie mich (missing ‘, ich habe ein Komma’)

 

If we have the access to the .rdf .report files we can do the change there, but if not we can directly change the text translation for both languages and it will help to overcome the problem.

In this scenario I didn’t had access to the report files, so I did the change in translations and it worked. Please suggest me if there is any better solution for this.


Reply