|
|
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: Friday, July 11, 2025
Posts: 3,428,
Visits: 26,569
|
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 .& nbsp ; Report . WriteFormattedBr "& lt ; b & gt ;{ 0 }.& lt ;/ b & gt ; { 9 }{ 1 & amp ; t }& lt ; span style =' font - size : xx - small ;'& gt ;{ 8 }& lt ;/ span & gt ; { 2 }{ 3 & amp ; t } { 4 & amp ; t }{ 5 }{ 6 & amp ; t } { 7 & amp ; t } {10}", ( iKey + 1 ), oName , _ strBorn , oName . Birth. Date , oName . Birth . Place, _ strDead , oName . Death. Date , oName . Death . Place , _ Util . IfElse ( iKey & gt ; 0 ,& nbsp ; 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
(34 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: Friday, July 11, 2025
Posts: 3,428,
Visits: 26,569
|
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: Friday, July 11, 2025
Posts: 3,428,
Visits: 26,569
|
Add this to the French Dictionary.xml just above the <DateFormatting> line
<FmtTimeSpan> & lt ;!--& nbsp ; & nbsp ; & nbsp ; & nbsp ; & nbsp ; & nbsp ; & nbsp ; Duration Formatting Options: & nbsp ; & nbsp ; & nbsp ; & nbsp ; & nbsp ; & nbsp ; & nbsp ; & nbsp ; {}& nbsp ; & nbsp ; & nbsp ; & nbsp ; Output the value in numeric format ( 1 , 2 , 3 , ...) & nbsp ; & nbsp ; & nbsp ; & nbsp ; & nbsp ; & nbsp ; & nbsp ; & nbsp ; { N }& nbsp ; & nbsp ; & nbsp ; & nbsp ; Output the value in narrative cardinal ( one , two , three , ...)& nbsp ; & nbsp ; & nbsp ; & nbsp ; & nbsp ; & nbsp ;& nbsp ; & nbsp ; & nbsp ; & nbsp ; & nbsp ; & nbsp ; & nbsp ; & nbsp ;--& gt ; & lt ; FmtDay & gt ; { N } jour & lt ;/ FmtDay & gt ; & lt ; FmtDays & gt ; { N } jours & lt ;/ FmtDays & gt ; & lt ; FmtMD & gt ; & lt ;!--& nbsp ; nine months and one day & nbsp ; --& gt ; { 0 } et { 1 } & lt ;/ FmtMD & gt ; & lt ; FmtMonth & gt ; { N } mois & lt ;/ FmtMonth & gt ; & lt ; FmtMonths & gt ; { N } mois & lt ;/ FmtMonths & gt ; & lt ; FmtYear & gt ; { N } année & lt ;/ FmtYear & gt ; & lt ; FmtYears & gt ; { N } années & lt ;/ FmtYears & gt ; & lt ; FmtYM & gt ; & lt ;!--& nbsp ; one year and four months & nbsp ; --& gt ; { 0 } et { 1 } & lt ;/ FmtYM & gt ; & lt ; FmtYMD & gt ; & lt ;!--& nbsp ; two years , six months and twelve days & nbsp ; --& gt ; |
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 & lt ; DateFormatting & gt ;
Dictionary.xml
(33 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: Friday, July 11, 2025
Posts: 3,428,
Visits: 26,569
|
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: Friday, July 11, 2025
Posts: 3,428,
Visits: 26,569
|
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
(36 views,
4.38 KB)
Edited: Sunday, March 24, 2019 by
genome
|