summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2022-05-01 18:12:38 +0100
committerGreg Roach <greg@subaqua.co.uk>2022-05-01 18:12:38 +0100
commitcb0c239d4d8ca3385436b2f2172c339a731b9d0e (patch)
treec24cdc5c06abce13a476c67f620cbc3b38ab2bb1
parent3a3c35160db2b0ae62787c386f75885682bfd3bd (diff)
downloadwebtrees-cb0c239d4d8ca3385436b2f2172c339a731b9d0e.tar.gz
webtrees-cb0c239d4d8ca3385436b2f2172c339a731b9d0e.tar.bz2
webtrees-cb0c239d4d8ca3385436b2f2172c339a731b9d0e.zip
Fix: #4364 - add definitions for Aldfaer custom tags
-rw-r--r--app/Gedcom.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/Gedcom.php b/app/Gedcom.php
index 5a7e89ef79..e1b3a8beb4 100644
--- a/app/Gedcom.php
+++ b/app/Gedcom.php
@@ -853,6 +853,17 @@ class Gedcom
/**
* @return array<string,ElementInterface>
+ */
+ private function aldfaerTags(): array
+ {
+ return [
+ 'INDI:BIRT:_LENGTH' => new CustomElement(I18N::translate('Length')),
+ 'INDI:BIRT:_WEIGHT' => new CustomElement(I18N::translate('Weight')),
+ ];
+ }
+
+ /**
+ * @return array<string,ElementInterface>
*
* @see https://www.webtrees.net/index.php/en/forum/help-for-release-2-1-x/36664-2-1-beta-support-for-indi-even-sour-data-note-and-the-like
*/
@@ -1820,6 +1831,7 @@ class Gedcom
$element_factory->registerSubTags($this->webtreesSubTags());
// Third-party extensions.
+ $element_factory->registerTags($this->aldfaerTags());
$element_factory->registerTags($this->ancestryTags());
$element_factory->registerTags($this->brothersKeeperTags());
$element_factory->registerTags($this->familySearchTags());