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.
* Language translation in reports
-
puzzloholic
- Newbie
- Posts: 2
- Joined: 09 Jan 2023 08:28
- Family Historian: V7
- ColeValleyGirl
- Megastar
- Posts: 4853
- Joined: 28 Dec 2005 22:02
- Family Historian: V7
- Location: Cirencester, Gloucestershire
- Contact:
Re: Language translation in reports
Translate Output Language should help. Ask here if you have any questions about how to apply it.
Helen Wright
ColeValleyGirl's family history
ColeValleyGirl's family history
-
puzzloholic
- Newbie
- Posts: 2
- Joined: 09 Jan 2023 08:28
- Family Historian: V7
Re: Language translation in reports
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.
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.
- tatewise
- Megastar
- Posts: 27080
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Language translation in reports
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.
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