Page 1 of 1

Language translation in reports

Posted: 09 Jan 2023 08:35
by puzzloholic
Hi, currently I am developing a report plugin for my internal use. The plugin is report plugin, and it will show a table of addresses of family residence, and a link to google map taken from long lat on place.

The problem is the language translation. I am currently building a family site and other built-in reports have been translated by my own-build language pack (Indonesian language).

The custom report I have build still have default language even though I already set the translation to my language. I cannot find any docs about where the translation should go in the lua.

Any help is appreciated.

Re: Language translation in reports

Posted: 09 Jan 2023 09:03
by ColeValleyGirl
Translate Output Language should help. Ask here if you have any questions about how to apply it.

Re: Language translation in reports

Posted: 11 Jan 2023 21:34
by puzzloholic
I kind of get it on how to apply those. Thank you so much for the info.

But this means I cannot apply the fact / attribute translation that is already in my language pack (in the lang.fh_lua), is it? I just can utilize the miscellaneous translation on my report output.

For example, I already translate part of FH_GetFamilyText, so that family will have its own translated item and it is correctly translated when shown on any built-in report. But on my custom report, the family text is still shown on default language, even though I already have language tab enabled and correctly configured the language to my language.

Re: Language translation in reports

Posted: 11 Jan 2023 23:29
by tatewise
I've looked through the Plugin documentation for Language Plugins and Report Plugins and cannot see how a Report Plugin can invoke the Language Pack.
I've looked at some of the CP supplied Report Plugins and apart from the Header and Footer nothing gets translated.
I suggest you ask CP via http://www.calico-pie.com/osticket/open.php if it is possible to get Report Plugins to use the currently selected Language Pack, and if so then how.