|
|
Customers GenoPro version: 3.1.0.1
Last Login: Sunday, December 22, 2024
Posts: 63,
Visits: 263
|
I would like to add the age in this report but I am not able to code it in xml due to my uncompetency in programing. Could someone help me to do it or to explain how to get this done ? Many thanks for any help. Gérard
Edited: Sunday, March 24, 2019 by
Regislab
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 4 hours ago
Posts: 3,396,
Visits: 26,180
|
You can age in brackets at the end of each individual's details by changing 2 lines in the Ancestors.htm template file at line 109. I have highlighted the additions required.
i.e. Report.WriteFormattedBr "<b>{0}.</b> {9}{1&t}<span style=' font-size: xx-small;'>{8}</span> {2}{3&t} {4&t}{5}{6&t} {7&t} {10}", (iKey+1), oName,_ strBorn, oName. Birth.Date, oName.Birth. Place,_ strDead, oName. Death.Date, oName.Death.Place,_ Util.IfElse(iKey > 0, oName.Session("lineage"), ""), oName.Session(" union") , _ Util.IfElse(oName.Age <> "", " (" & oName.Age.NYears & ")", "")
|
I have attached a copy of the modified file. This is for GenoPro 2018 but I do not think it has changed from GenoPro 2011.
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Ancestors.htm
(29 views,
5.55 KB)
|
|
|
Customers GenoPro version: 3.1.0.1
Last Login: Sunday, December 22, 2024
Posts: 63,
Visits: 263
|
Oh great, many thanks, absolutely what I wanted By the way, if I will say : 50 years in the report, is it correct if to just add the word "years", next to the number of years ?
Gérard
Edited: Sunday, March 24, 2019 by
Regislab
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 4 hours ago
Posts: 3,396,
Visits: 26,180
|
Even easier, just use oName.Age instead of oName.Age.NYears I think then if age is less than a year it will show months
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
Customers GenoPro version: 3.1.0.1
Last Login: Sunday, December 22, 2024
Posts: 63,
Visits: 263
|
Yes, many thanks, it works, I have tried it But I thought to have it written on the language used for the report, for example, when I use the french one, it still be written years, months and so on, in English and not années, mois, etc in French. So I think it is better, if the age is just indicated like 70 years or 70 ans or 70 Jahren, and not all the details in month and day too.
Edited: Sunday, March 24, 2019 by
Regislab
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 4 hours ago
Posts: 3,396,
Visits: 26,180
|
Add this to the French Dictionary.xml just above the <DateFormatting> line
<FmtTimeSpan> <!-- Duration Formatting Options: {} Output the value in numeric format (1, 2, 3, ...) {N} Output the value in narrative cardinal (one, two, three, ...) --> <FmtDay> {N} jour </FmtDay> <FmtDays> {N} jours </FmtDays> <FmtMD> <!-- nine months and one day --> {0} et {1} </FmtMD> <FmtMonth> {N} mois </FmtMonth> <FmtMonths> {N} mois </FmtMonths> <FmtYear> {N} année </FmtYear> <FmtYears> {N} années </FmtYears> <FmtYM> <!-- one year and four months --> {0} et {1} </FmtYM> <FmtYMD> <!-- two years, six months and twelve days --> |
I will leave it to you to translate the comments
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
Customers GenoPro version: 3.1.0.1
Last Login: Sunday, December 22, 2024
Posts: 63,
Visits: 263
|
Many thanks again :-) I have tried it but it did not work, I habe probably done a mistake, but do not see which one. Here, attached, the dictionary.xml of the skin from the concerned french report, where I have just copy/paste the code you give, above the line <DateFormatting>
Dictionary.xml
(28 views,
4.39 KB)
Edited: Sunday, March 24, 2019 by
Regislab
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 4 hours ago
Posts: 3,396,
Visits: 26,180
|
Sorry <DateFormatting> is wrong. I meant to say </DateFormatting>
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
Customers GenoPro version: 3.1.0.1
Last Login: Sunday, December 22, 2024
Posts: 63,
Visits: 263
|
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 4 hours ago
Posts: 3,396,
Visits: 26,180
|
The attached Dictionary.xml works for me with French Ancestors Report
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Dictionary.xml
(31 views,
4.38 KB)
Edited: Sunday, March 24, 2019 by
genome
|