GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




Kinship Calculator (NL-BE)

Click to view RSS...
Author Issue with KinshipParent* tags
Posted Sunday, February 16, 2020 - Post #40299
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master

Administrators
Customers
FamilyTrees.GenoPro.com
Important Contributors
GenoPro version: 3.1.0.1

Last Login: 2 hours ago
Posts: 527, Visits: 4,347
I've done some work on  translating the dictionary entries for the Kinship Calculator skin into Dutch. Most of it runs OK but I have an issue with the KinshipParent* tags.
Apparently, it looks as if the <KinshipParents> tag (and the related <KinshipParent_M> and <KinshipParent_F> tags) allow to specify up to 4 previous generations "only" (C1 .. C4).
In Dutch we have distinct names for up to 6 previous generations, so it looks as if I need a C5 and C6 attribute as well.
Is there an easy way to implement this or does it require a change in code?
I've added an overview hereafter.

http://support.genopro.com/Uploads/Images/95d9a4e7-2768-4b35-b270-a50e.jpg
Replies
Posted Saturday, June 6, 2020 - Post #40549
Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer

Customers
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Sunday, August 9, 2026
Posts: 66, Visits: 1,610
Here is my old Kinship calculator skin, with the Kinship.js from back then.
It had (almost) done what I had imagined. Now it has become heavier, 
a combination of old and new Kinship.js could be good (I imagine)
Your new KinshipCousin phrase does not yet create what I would like it to do.
This will be up to me, don't get along so well with the phrase editor yet.
Being brewed:
>if {?!2=0} and {6=M} then cousin otherwise cousine, but if {2< not 0 >} and {6=M} then nephew otherwise niece x. degree.
Too much for me!



Old-Kinship.rar (139 views, 81.22 KB)

Edited: Sunday, June 7, 2020 by albertsali
Posted Thursday, June 11, 2020 - Post #40555
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Yesterday @ 6:34 AM
Posts: 3,504, Visits: 27,491
Well after a near disaster accidentally deleting several files, I offer my next attempt at improving the German and Belgian translations of the Kinship Calculator.  

I have changed the meaning of the prefix and suffix arguments used in several phrases.  What was 'prefix' is now just 'step, half or null'  and suffix is now 'inlaw or null'.  So the content is the same but there is no implied positioning and it is down to the translator to position in the phrase.  KinshipCousin and KinshipCousin1 phrases have additional arguments (number value and ordinal value)  for 'height2' i.e the depth of 2nd individual below common ancestor.  This allows phrasing as per Albertsali's requirement.

I have adjusted the DE and NL-BE Dictionary.xml files to implement the desired phrase changes.

The attached zip file contains revisions for {DE} Verwandtschaft, {NL-BE} Verwantschap Schema and  Common folders.  

It also contains a new skin to implement a shared dictionary.  At the time of writing I am only aware of one translator using a combined dictionary for all his skins, that is Nand and so for the time being there is only  {NL-BE} Gedeeld Voordenboek but the script is generic and can be adapted for other languages once a combined dictionary has been assembled.  When this skin is run it will find skins folders with the same language prefix and replace Dictionary.xml in those folders with a 'hard link' to its own Dictionary.xml  and thus any future changes to that Dictionary will be reflected in the other folders as well.  The script requires elevated privilege to run the 'mklink' command and so a Windows UAC prompt is generated when run.

One caveat with the Shard Dictionary approach is that I have noticed that if changes are made whilst the GenoPro Generate Report dialogue is open on one of the related skins then after the update GenoPro fails to find Dictionary entries.  It is necessary to close the dialogue and reopen it once or sometimes twice. 

Please treat the revised skins with caution, e.g. unzip into a new Report Skins folder leaving your current Skins safe. 


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Skins2020 test.zip (199 views, 1.71 MB)

Edited: Thursday, June 11, 2020 by genome
Posted Thursday, June 11, 2020 - Post #40559
Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer

Customers
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Sunday, August 9, 2026
Posts: 66, Visits: 1,610
Thanks for your work !!!
Sorry, 
the Dictionary.xml is unfortunately an old file ( from 18.05.2020 ).
I found the argument {11}, it works.
Unfortunately I can't get along with the phrase yet. 
See post # 40549
(I hope I'm not being annoying)
Posted Friday, June 12, 2020 - Post #40562
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Yesterday @ 6:34 AM
Posts: 3,504, Visits: 27,491
Sorry Blush it looks like I recovered the wrong version of {DE} Dictionary.xml.   The correct one is attached (right click on link and click save to download) 

It produces e.g.

http://support.genopro.com/Uploads/Images/4d39ef82-9525-4ad7-865c-174b.jpg


Which is similar to your output:

http://support.genopro.com/Uploads/Images/28c8e891-d524-4c75-b47d-6665.jpg


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Dictionary.xml (41 views, 19.11 KB)

Edited: Friday, June 12, 2020 by genome



Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse