Page 1 of 1

Language Pack can alter English Report labels

Posted: 27 Sep 2021 13:18
by tatewise
Users regularly ask if words like Spouse and Marriage in Reports can be changed to say Partner and Partnership for couples that were Never Married.
A quick experiment suggests that an English Language Pack with a Variant Id can be created to do just that.
The words Spouse, Spouses, spouse, Marriage, etc, can be suitably translated very easily and altered very easily.
Then in the Report > Options > Language tab, that Report Language Pack can be selected to translate the Report.
(That feature can be completely distinct from a full-blown English translation Language Pack.)
Simples!

P.S. It might even be possible to make the translations conditional on the Never Married status, but I'm not sure.

Re: Language Pack can alter English Report labels

Posted: 28 Sep 2021 11:55
by tatewise
I have checked my experimental English Language Pack for Reports against a number of Report types.
That needed a few more translations for Husband, Wife, and related headings to use Partner instead.
I've tried Individual Summary, Family Group Sheet, Narrative Reports & Outline Reports with success.

When setting the Report > Options > Language tab, Report Language to English (ENG RPRT) the 'Mark text where ...' options must be cleared to avoid coloured text.
Despite those options, the Narrative Reports inexplicably still colour some text and that needs investigating & reporting.
In the Family Historian Sample Project, choose Charles William Smith MUNRO [52] as Subject Person to see the effect.
After reporting this to CP, they agree it is an error that will be fixed in the next FH update. It is now fixed in FH v7.0.9.

My experimental English (ENG RPRT) Language Pack Version 1.0 is attached below.
Download it and use Tools > Language Packs... > Import... to import the .fhlang file.
Do NOT open it directly with FH. That does not work and FH goes into a (Not Responding) deadlock ~ fixed in FH v7.0.9.

Re: Language Pack can alter English Report labels

Posted: 18 Dec 2021 13:29
by Ron Melby
how do I build a language pack? I looked, obviously not enough.... and looking at it in the hex editor gives me not much in the way of clues. Is there a tutorial or anything?

Re: Language Pack can alter English Report labels

Posted: 18 Dec 2021 15:56
by tatewise
Ron, the clues are in my postings.
Use Tools > Language Packs... where the Help button is helpful, the Import... button imports them, New... creates a new one, and Edit... edits an existing one.