This module provides selected events of the German history to webtrees version 2.x only.
- Copyright and License
- System Requirements and Testing
- Installation
- Upgrade
- Implementation and Languages
- Usage
- Issues and Feature Requests
© Copyright 2021-2023 webtrees Development Team & Sir Peter
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Same as the webtrees#system-requirements.
Tested with webtrees 2.0.17 up to 2.0.24 on PHP 7.4 and with webtrees 2.1.6 up to 2.1.18 on PHP 8.0, 8.1 and 8.2.
- Download and unzip the release specific
HistoricEvents-Germany-x.y.z.zip
file into thewebtrees/modules_v4
folder of your web server. - Rename the folder
HistoricEvents-Germany-x.y.z
toHistoricEvents-Germany
. - As an administrator, enable this module in Control Panel -> Modules -> Individual page -> Historic events.
- Download and unzip the release specific
HistoricEvents-Germany-x.y.z.zip
file into thewebtrees/modules_v4
folder of your web server. - As an administrator, disable this module in Control Panel -> Modules -> Individual page -> Historic events.
- Rename the old folder
HistoricEvents-Germany
toHistoricEvents-Germany.BACKUP
. - Rename the new folder
HistoricEvents-Germany-x.y.z
toHistoricEvents-Germany
. - As an administrator, enable this module in Control Panel -> Modules -> Individual page -> Historic events.
- If the new version is working as expected you should delete the folder
HistoricEvents-Germany.BACKUP
.
Support for historic EVEN tags is currently limited to the TYPE, DATE, PLAC, NOTE and SOUR subtags. Language support is even further limited to the TYPE subtag. Below you'll find an example in German and how it was implemented in module.php
:
1 EVEN Beginn des Zweiten Weltkriegs
2 TYPE Historisches Ereignis
2 DATE 01 SEP 1939
2 PLAC Westerplatte, Neufahrwasser, Danzig, Stadtkreis Danzig, Freie Stadt Danzig
2 NOTE Beginn des Zweiten Weltkriegs durch den deutschen Überfall auf Polen.
2 SOUR https://de.wikipedia.org/wiki/Überfall_auf_Polen
public function historicEventsAll(): Collection
{
$eventType = I18N::translate('Historic event');
return new Collection([
...
"1 EVEN Beginn des Zweiten Weltkriegs\n2 TYPE ".$eventType."\n2 DATE 01 SEP 1939\n2 PLAC Westerplatte, Neufahrwasser, Danzig, Stadtkreis Danzig, Freie Stadt Danzig\n2 NOTE Beginn des Zweiten Weltkriegs durch den deutschen Überfall auf Polen.\n2 SOUR https://de.wikipedia.org/wiki/Überfall_auf_Polen",
...
]);
}
Language files are included to translate the event TYPE value from English "Historic event" to the German "Historisches Ereignis" and other languages for all events automatically while the EVEN, PLAC, NOTE and SOUR values are currently available in German only. Links like in the above example will only be clickable if markdown has NOT been enabled in the tree preferences.
- As a user, enable or disable the "Historic events" on the "Facts and events" tab as needed.
If you experience a software issue or have a request for additional historic events for this module you can create a new issue on GitHub.