xref: /webtrees/app/Module/BritishSocialHistory.php (revision 9429a0bfa169203eb6c113e469fb7ad225064b0d)
109fbf3e5SGreg Roach<?php
23976b470SGreg Roach
309fbf3e5SGreg Roach/**
409fbf3e5SGreg Roach * webtrees: online genealogy
589f7189bSGreg Roach * Copyright (C) 2021 webtrees development team
609fbf3e5SGreg Roach * This program is free software: you can redistribute it and/or modify
709fbf3e5SGreg Roach * it under the terms of the GNU General Public License as published by
809fbf3e5SGreg Roach * the Free Software Foundation, either version 3 of the License, or
909fbf3e5SGreg Roach * (at your option) any later version.
1009fbf3e5SGreg Roach * This program is distributed in the hope that it will be useful,
1109fbf3e5SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
1209fbf3e5SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1309fbf3e5SGreg Roach * GNU General Public License for more details.
1409fbf3e5SGreg Roach * You should have received a copy of the GNU General Public License
1589f7189bSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>.
1609fbf3e5SGreg Roach */
17fcfa147eSGreg Roach
1809fbf3e5SGreg Roachdeclare(strict_types=1);
1909fbf3e5SGreg Roach
2009fbf3e5SGreg Roachnamespace Fisharebest\Webtrees\Module;
2109fbf3e5SGreg Roach
22*9429a0bfSGreg Roachuse Fisharebest\Webtrees\I18N;
2309fbf3e5SGreg Roachuse Illuminate\Support\Collection;
2409fbf3e5SGreg Roach
2509fbf3e5SGreg Roach/**
2609fbf3e5SGreg Roach * Class BritishSocialHistory
2709fbf3e5SGreg Roach */
2809fbf3e5SGreg Roachclass BritishSocialHistory extends AbstractModule implements ModuleHistoricEventsInterface
2909fbf3e5SGreg Roach{
3009fbf3e5SGreg Roach    use ModuleHistoricEventsTrait;
3109fbf3e5SGreg Roach
3209fbf3e5SGreg Roach    /**
330cfd6963SGreg Roach     * How should this module be identified in the control panel, etc.?
3409fbf3e5SGreg Roach     *
3509fbf3e5SGreg Roach     * @return string
3609fbf3e5SGreg Roach     */
3709fbf3e5SGreg Roach    public function title(): string
3809fbf3e5SGreg Roach    {
39fa24d895SGreg Roach        return 'British social history ����';
4009fbf3e5SGreg Roach    }
4109fbf3e5SGreg Roach
4209fbf3e5SGreg Roach    /**
4309fbf3e5SGreg Roach     * Should this module be enabled when it is first installed?
4409fbf3e5SGreg Roach     *
4509fbf3e5SGreg Roach     * @return bool
4609fbf3e5SGreg Roach     */
4709fbf3e5SGreg Roach    public function isEnabledByDefault(): bool
4809fbf3e5SGreg Roach    {
4909fbf3e5SGreg Roach        return false;
5009fbf3e5SGreg Roach    }
5109fbf3e5SGreg Roach
5209fbf3e5SGreg Roach    /**
5309fbf3e5SGreg Roach     * All events provided by this module.
5409fbf3e5SGreg Roach     *
55b5c8fd7eSGreg Roach     * @return Collection<string>
5609fbf3e5SGreg Roach     */
5709fbf3e5SGreg Roach    public function historicEventsAll(): Collection
5809fbf3e5SGreg Roach    {
59*9429a0bfSGreg Roach        switch (I18N::languageTag()) {
60*9429a0bfSGreg Roach            case 'en-AU':
61*9429a0bfSGreg Roach            case 'en-GB':
62*9429a0bfSGreg Roach            case 'en-US':
6309fbf3e5SGreg Roach                return new Collection([
64c3e52f10SGreg Roach                    "1 EVEN Bubonic plague kills half the population.\n2 TYPE Plague\n2 DATE FROM 1348 TO 1350",
65c3e52f10SGreg Roach                    "1 EVEN Bubonic plague returns and kills 20% the population.\n2 TYPE Plague\n2 DATE FROM 1361 TO 1362",
66f21595bbSGreg Roach                    "1 EVEN Uprising against serfdom and taxation, led by Wat Tyler.\n2 TYPE Peasants Revolt\n2 DATE FROM 30 MAY 1381 TO NOV 1381",
67f21595bbSGreg Roach                    "1 EVEN Royalists and parliamentarians battle for control of the country.\n2 TYPE English Civil War\n2 DATE FROM 22 AUG 1642 TO 03 SEP 1651",
68f21595bbSGreg Roach                    "1 EVEN Most of London was destroyed by fire.\n2 TYPE Great Fire of London\n2 DATE FROM 02 SEP 1666 TO 06 SEP 1666",
69f21595bbSGreg Roach                    "1 EVEN England and Scotland combine to form Great Britain.\n2 TYPE Act of Union\n2 DATE 1 MAY 1707",
70de1755f0SGreg Roach                    "1 EVEN The Duke of Wellington defeated Napoleon Bonaparte, ending the Napoleonic wars.\n2 TYPE Battle of Waterloo\n2 DATE 18 JUN 1815\n2 PLAC Waterloo, Belgium",
71de1755f0SGreg Roach                    "1 EVEN Cavalry was used to disperse a large crowd who were demanding electoral reform.  15 were killed and hundreds injured.\n2 TYPE Peterloo Massacre\n2 DATE 16 AUG 1819\n2 PLAC Manchester, England",
72f21595bbSGreg Roach                    "1 EVEN\n2 TYPE The Crimean War\n2 DATE FROM 16 OCT 1853 TO 30 MAR 1856",
73f21595bbSGreg Roach                    "1 EVEN Battle for control of southern Africa\n2 TYPE The Boer War\n2 DATE FROM 11 OCT 1899 TO 31 MAY 1902",
74f21595bbSGreg Roach                    "1 EVEN Games of the IV Olympiad\n2 TYPE Olympic Games\n2 DATE FROM 27 APR 1908 TO 31 OCT 1908\n2 PLAC London, England",
75f21595bbSGreg Roach                    "1 EVEN\n2 TYPE The Great War\n2 DATE FROM 28 JUL 1914 TO 11 NOV 1918",
76f21595bbSGreg Roach                    "1 EVEN\n2 TYPE World War 2\n2 DATE FROM 01 SEP 1939 TO 02 SEP 1945",
77de1755f0SGreg Roach                    "1 EVEN Free healthcare for all\n2 TYPE National Health Service\n2 DATE FROM 5 JUL 1948",
78f21595bbSGreg Roach                    "1 EVEN Games of the XIV Olympiad\n2 TYPE Olympic Games\n2 DATE FROM 29 JUL 1948 TO 14 AUG 1948\n2 PLAC London, England",
79f21595bbSGreg Roach                    "1 EVEN Mass industrial action, power cuts and a three-day working week.\n2 TYPE Winter of Discontent\n2 DATE FROM OCT 1978 TO FEB 1979\n2 PLAC London, England",
80f21595bbSGreg Roach                    "1 EVEN Games of the XXX Olympiad\n2 TYPE Olympic Games\n2 DATE FROM 27 JUL 2012 TO 12 AUG 2012\n2 PLAC London, England",
8109fbf3e5SGreg Roach                ]);
82*9429a0bfSGreg Roach
83*9429a0bfSGreg Roach            default:
84*9429a0bfSGreg Roach                return new Collection();
85*9429a0bfSGreg Roach        }
8609fbf3e5SGreg Roach    }
8709fbf3e5SGreg Roach}
88