* Language Pack can alter English Report labels

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
Post Reply
User avatar
tatewise
Megastar
Posts: 27078
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Language Pack can alter English Report labels

Post by tatewise » 27 Sep 2021 13:18

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

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

Re: Language Pack can alter English Report labels

Post by tatewise » 28 Sep 2021 11:55

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.
Last edited by tatewise on 21 Jun 2023 12:15, edited 7 times in total.
Reason: Attachment deleted as later version is in the Plugin Store.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Ron Melby
Megastar
Posts: 878
Joined: 15 Nov 2016 15:40
Family Historian: V6.2

Re: Language Pack can alter English Report labels

Post by Ron Melby » 18 Dec 2021 13:29

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?
FH V.6.2.7 Win 10 64 bit

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

Re: Language Pack can alter English Report labels

Post by tatewise » 18 Dec 2021 15:56

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

Post Reply