* Language translation in reports

For users to report plugin bugs and request plugin enhancements; and for authors to test new/new versions of plugins, and to discuss plugin development (in the Programming Technicalities sub-forum). If you want advice on choosing or using a plugin, please ask in General Usage or an appropriate sub-forum.
Post Reply
avatar
puzzloholic
Newbie
Posts: 2
Joined: 09 Jan 2023 08:28
Family Historian: V7

Language translation in reports

Post by puzzloholic » 09 Jan 2023 08:35

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.

User avatar
ColeValleyGirl
Megastar
Posts: 4853
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: Language translation in reports

Post by ColeValleyGirl » 09 Jan 2023 09:03

Translate Output Language should help. Ask here if you have any questions about how to apply it.

avatar
puzzloholic
Newbie
Posts: 2
Joined: 09 Jan 2023 08:28
Family Historian: V7

Re: Language translation in reports

Post by puzzloholic » 11 Jan 2023 21:34

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.

User avatar
tatewise
Megastar
Posts: 27080
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Language translation in reports

Post by tatewise » 11 Jan 2023 23:29

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.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

Post Reply