How to switching the current language in a ignition report?

Hello! I got a language selector in my project and it works for all windows, then I create a report and put it in a popup window with a PDF viewer but the language selector doesn’t work with the report. All the words in the report already are in the translation manager globally. There is a way to make it work the translate in the report??

Thanks!

Reports are generated on the gateway, and the gateway does not have access to the translation tools.

What you need to do is handle the translation before things get to your report – your report viewer parameters can make use of the translation tools before they are sent to the reporting engine.

Unless you’re on 8.0.8+, in which case you can use translate() in expressions (you’ll have to manually provide the input language) and system.util.translate() (with the same stipulation).

1 Like