Access document generation language in RPE template
![]() Hi, I use a multilanguage RPE document template within the RTC document builder. The language of the output document reflects the language of the browser (e.g. Chrome). So far, so good. Further, I have some hardcoded strings (generated via scripts) in the RPE document template. How can I switch those strings based on the browser language? I have searched the language information within the special variable "_sessionInfo" with no luck. Of course, I could add an additional template variable for the language. But I hope for an automatic solution. Best Regards |
2 answers
![]()
I am afraid you cannot get the browser language value in RPE template so that it can be used in condition or script. You cannot use _sessionInfo.getDocspecProperty("property", "") either when you are using Document Builder.
Why can't you remove and add the template elements with hardcoded strings for each language?
|