diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2022-05-01 18:12:38 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2022-05-01 18:12:38 +0100 |
| commit | cb0c239d4d8ca3385436b2f2172c339a731b9d0e (patch) | |
| tree | c24cdc5c06abce13a476c67f620cbc3b38ab2bb1 | |
| parent | 3a3c35160db2b0ae62787c386f75885682bfd3bd (diff) | |
| download | webtrees-cb0c239d4d8ca3385436b2f2172c339a731b9d0e.tar.gz webtrees-cb0c239d4d8ca3385436b2f2172c339a731b9d0e.tar.bz2 webtrees-cb0c239d4d8ca3385436b2f2172c339a731b9d0e.zip | |
Fix: #4364 - add definitions for Aldfaer custom tags
| -rw-r--r-- | app/Gedcom.php | 12 |
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()); |
