/MyCustomTags

A webtrees 2.1 custom module to provide custom tags, custom types, custom relationship descriptors, and custom roles in events.

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

MyCustomTags

A weebtrees 2.1 custom module to provide custom tags, custom types, custom relationship descriptors, and custom roles in events.

What are the benefits of this module?

  • Provide additional GEDCOM custom tags to be used in webtrees
  • Provde additional custom types for certain GEDCOM tags:
    • Confirmation (INDI:CONF:TYPE)
    • Education (INDI:EDUC:TYPE)
    • Events (INDI:EVEN:TYPE)
    • Facts (INDI:FACT:TYPE)
    • Graduation (INDI:GRAD:TYPE)
    • Additional custom types for names (INDI:NAME:TYPE)
    • Ordination (INDI:ORDN:TYPE)
  • Provide additional custom descriptors for relationships (FAM:_ASSO:RELA, FAM:*:_ASSO:RELA, INDI:ASSO:RELA, INDI:*:_ASSO:RELA)
  • Provide additional custom roles in events (*:*:EVEN:ROLE)

Installation

  • Download the latest code of the module
  • Unzip and copy the folder "my_custom_tags" into the "module_v4" folder of your webtrees installation
  • Please note that the provided module code only provides a template as a starting point for your own customization/configuration. The provided template contains an example with a configuration used by the author
  • Since the module code is just a template for your own customization, it it not planned to provide any releases

Configuration

Webtrees version

The latest release of the module was developed and tested with webtrees 2.1.18, but should also run with any other webtrees 2.1 version.

Translation

The translation is based on gettext and uses .po files, which can be found in /resources/lang/. You can use a local editor like Poedit or notepad++ to add or modify translations.

Currently, the following languages are already available:

  • Dutch
  • English
  • German

If you want to translate custom tags, types, relationship descriptors, or roles in events, you can also add further translations to the code.

Example for translation of types etc.

You can add translation to a fact type in FactType.php with the following modification in the code:

  • 'Military Service' => I18N::translate('Military Service'),

Afterwards, the translation has to be provided by a .po file, see above.

Github repository

https://github.com/Jefferson49/MyCustomTags