Skip to content

Commit

Permalink
Added statistics type on parents' ages at child's birth
Browse files Browse the repository at this point in the history
  • Loading branch information
Serg-Norseman committed Sep 10, 2024
1 parent 2101e81 commit 43c557b
Show file tree
Hide file tree
Showing 27 changed files with 157 additions and 86 deletions.
1 change: 1 addition & 0 deletions locales/Afrikaans.lng
Original file line number Diff line number Diff line change
Expand Up @@ -1007,3 +1007,4 @@
994=Call numbers
995=Are you sure you want to remove call number "{0}"?
996=Repository is not specified
997=Age of parents
1 change: 1 addition & 0 deletions locales/Belarusian.lng
Original file line number Diff line number Diff line change
Expand Up @@ -1007,3 +1007,4 @@
994=Call numbers
995=Are you sure you want to remove call number "{0}"?
996=Repository is not specified
997=Age of parents
1 change: 1 addition & 0 deletions locales/Chinese Simplified.lng
Original file line number Diff line number Diff line change
Expand Up @@ -1007,3 +1007,4 @@
994=Call numbers
995=Are you sure you want to remove call number "{0}"?
996=Repository is not specified
997=Age of parents
1 change: 1 addition & 0 deletions locales/Dutch.lng
Original file line number Diff line number Diff line change
Expand Up @@ -1007,3 +1007,4 @@
994=Call numbers
995=Are you sure you want to remove call number "{0}"?
996=Repository is not specified
997=Age of parents
1 change: 1 addition & 0 deletions locales/English.lng
Original file line number Diff line number Diff line change
Expand Up @@ -1007,3 +1007,4 @@
994=Call numbers
995=Are you sure you want to remove call number "{0}"?
996=Repository is not specified
997=Age of parents
1 change: 1 addition & 0 deletions locales/Hungarian.lng
Original file line number Diff line number Diff line change
Expand Up @@ -1007,3 +1007,4 @@
994=Call numbers
995=Are you sure you want to remove call number "{0}"?
996=Repository is not specified
997=Age of parents
1 change: 1 addition & 0 deletions locales/Icelandic.lng
Original file line number Diff line number Diff line change
Expand Up @@ -1007,3 +1007,4 @@
994=Call numbers
995=Are you sure you want to remove call number "{0}"?
996=Repository is not specified
997=Age of parents
1 change: 1 addition & 0 deletions locales/Japanese.lng
Original file line number Diff line number Diff line change
Expand Up @@ -1007,3 +1007,4 @@
994=Call numbers
995=Are you sure you want to remove call number "{0}"?
996=Repository is not specified
997=Age of parents
1 change: 1 addition & 0 deletions locales/Kazakh (Cyrillic).lng
Original file line number Diff line number Diff line change
Expand Up @@ -1007,3 +1007,4 @@
994=Call numbers
995=Are you sure you want to remove call number "{0}"?
996=Repository is not specified
997=Age of parents
1 change: 1 addition & 0 deletions locales/Portuguese.lng
Original file line number Diff line number Diff line change
Expand Up @@ -1007,3 +1007,4 @@
994=Call numbers
995=Are you sure you want to remove call number "{0}"?
996=Repository is not specified
997=Age of parents
1 change: 1 addition & 0 deletions locales/Serbian (Latin).lng
Original file line number Diff line number Diff line change
Expand Up @@ -1007,3 +1007,4 @@
994=Call numbers
995=Are you sure you want to remove call number "{0}"?
996=Repository is not specified
997=Age of parents
1 change: 1 addition & 0 deletions locales/Spanish.lng
Original file line number Diff line number Diff line change
Expand Up @@ -1007,3 +1007,4 @@
994=Call numbers
995=Are you sure you want to remove call number "{0}"?
996=Repository is not specified
997=Age of parents
1 change: 1 addition & 0 deletions locales/czech.lng
Original file line number Diff line number Diff line change
Expand Up @@ -1007,3 +1007,4 @@
994=Call numbers
995=Are you sure you want to remove call number "{0}"?
996=Repository is not specified
997=Age of parents
1 change: 1 addition & 0 deletions locales/french.lng
Original file line number Diff line number Diff line change
Expand Up @@ -1007,3 +1007,4 @@
994=Call numbers
995=Are you sure you want to remove call number "{0}"?
996=Repository is not specified
997=Age of parents
1 change: 1 addition & 0 deletions locales/german.lng
Original file line number Diff line number Diff line change
Expand Up @@ -1007,3 +1007,4 @@
994=Call numbers
995=Are you sure you want to remove call number "{0}"?
996=Repository is not specified
997=Age of parents
1 change: 1 addition & 0 deletions locales/help_enu/gkhHistory.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ <h1>Change log</h1>

<p>
<b>??.??.2024 [v2.32.0 &amp; v3.8.0]</b><ul>
<li>Added statistics type on parents' ages at child's birth.
<li>Fixed a frequent error saving images to cache "A generic error occurred in GDI+".
<li>Added the feature to save trees to PDF files.
<li>Supplemented citations (links) to repositories to support source call numbers.
Expand Down
1 change: 1 addition & 0 deletions locales/help_rus/gkhHistory.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ <h1>История версий</h1>

<p>
<b>??.??.2024 [v2.32.0 &amp; v3.8.0]</b><ul>
<li>Добавлен тип статистики по возрастам родителей при рождении ребенка.
<li>Исправлена частая ошибка сохранения изображений в кэш "A generic error occurred in GDI+".
<li>Добавлена возможность сохранения диаграмм деревьев в PDF-файлы.
<li>Дополнены цитаты (ссылки) на архивы для поддержки учетных номеров источников.
Expand Down
1 change: 1 addition & 0 deletions locales/italian.lng
Original file line number Diff line number Diff line change
Expand Up @@ -1007,3 +1007,4 @@
994=Call numbers
995=Are you sure you want to remove call number "{0}"?
996=Repository is not specified
997=Age of parents
1 change: 1 addition & 0 deletions locales/polish.lng
Original file line number Diff line number Diff line change
Expand Up @@ -1007,3 +1007,4 @@
994=Call numbers
995=Are you sure you want to remove call number "{0}"?
996=Repository is not specified
997=Age of parents
1 change: 1 addition & 0 deletions locales/russian.lng
Original file line number Diff line number Diff line change
Expand Up @@ -1007,3 +1007,4 @@
994=Учетные номера
995=Удалить учетный номер "{0}"?
996=Архив не указан
997=Возраст родителей
1 change: 1 addition & 0 deletions locales/ukrainian.lng
Original file line number Diff line number Diff line change
Expand Up @@ -1007,3 +1007,4 @@
994=Call numbers
995=Are you sure you want to remove call number "{0}"?
996=Repository is not specified
997=Age of parents
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* "GEDKeeper", the personal genealogical database editor.
* Copyright (C) 2009-2023 by Sergey V. Zhdanovskih.
* Copyright (C) 2009-2024 by Sergey V. Zhdanovskih.
*
* This file is part of "GEDKeeper".
*
Expand Down Expand Up @@ -156,6 +156,12 @@ public void CalcStats()
fView.Graph.PrepareArray(fChartTitle, fChartXTitle, fChartYTitle, ChartStyle.ClusterBar, true, fCurrentValues);
break;

case StatsMode.smParentsAge:
fChartXTitle = LangMan.LS(LSID.ParentsAge);
fChartYTitle = LangMan.LS(LSID.People);
fView.Graph.PrepareArray(fChartTitle, fChartXTitle, fChartYTitle, ChartStyle.ClusterBar, true, fCurrentValues);
break;

default:
fView.Graph.Clear();
break;
Expand Down
1 change: 1 addition & 0 deletions projects/GKCore/GKCore/GKData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ static GKData()
new StatsTitleStruct(LSID.CertaintyIndex, LSID.CertaintyIndex),
new StatsTitleStruct(LSID.BirthByMonth, LSID.BirthByMonth),
new StatsTitleStruct(LSID.Demography, LSID.Demography),
new StatsTitleStruct(LSID.ParentsAge, LSID.ParentsAge),
};

CheckSolveNames = new LSID[] {
Expand Down
4 changes: 3 additions & 1 deletion projects/GKCore/GKCore/LangMan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1071,8 +1071,9 @@ public enum LSID
/* 994 */ CallNumbers,
/* 995 */ RemoveCallNumberQuery,
/* 996 */ RepositoryIsNotSpecified,
/* 997 */ ParentsAge,

/* 000 */ Last = RepositoryIsNotSpecified
/* 000 */ Last = ParentsAge
}


Expand Down Expand Up @@ -2097,6 +2098,7 @@ public static class LangMan
/* 994 */ "Call numbers",
/* 995 */ "Are you sure you want to remove call number \"{0}\"?",
/* 996 */ "Repository is not specified",
/* 997 */ "Age of parents",
};

private static readonly LangManager fLangMan = new LangManager();
Expand Down
5 changes: 3 additions & 2 deletions projects/GKCore/GKCore/Stats/StatMode.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* "GEDKeeper", the personal genealogical database editor.
* Copyright (C) 2009-2017 by Sergey V. Zhdanovskih.
* Copyright (C) 2009-2024 by Sergey V. Zhdanovskih.
*
* This file is part of "GEDKeeper".
*
Expand Down Expand Up @@ -62,7 +62,8 @@ public enum StatsMode
smCertaintyIndex,
smBirthByMonth,
smDemography,
smParentsAge,

smLast = smDemography
smLast = smParentsAge
}
}
Loading

0 comments on commit 43c557b

Please sign in to comment.