summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2020-06-24 10:33:00 +0100
committerGreg Roach <greg@subaqua.co.uk>2020-06-24 11:29:02 +0100
commitd7e1975906314d2ca38a19e6ed9bce59d03ae181 (patch)
treef5b5a589e0b67ac7f49fc8db8b17bf0d82bbf48f
parent6350eb81cdb4b433da61f4caf44a0eac1e5540b5 (diff)
downloadwebtrees-d7e1975906314d2ca38a19e6ed9bce59d03ae181.tar.gz
webtrees-d7e1975906314d2ca38a19e6ed9bce59d03ae181.tar.bz2
webtrees-d7e1975906314d2ca38a19e6ed9bce59d03ae181.zip
Add definitions for tagalog language
-rw-r--r--app/Module/LanguageTagalog.php49
-rw-r--r--app/Services/ModuleService.php2
2 files changed, 51 insertions, 0 deletions
diff --git a/app/Module/LanguageTagalog.php b/app/Module/LanguageTagalog.php
new file mode 100644
index 0000000000..ec35d9d242
--- /dev/null
+++ b/app/Module/LanguageTagalog.php
@@ -0,0 +1,49 @@
+<?php
+
+/**
+ * webtrees: online genealogy
+ * Copyright (C) 2019 webtrees development team
+ * 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/>.
+ */
+
+declare(strict_types=1);
+
+namespace Fisharebest\Webtrees\Module;
+
+use Fisharebest\Localization\Locale\LocaleInterface;
+use Fisharebest\Localization\Locale\LocaleTl;
+
+/**
+ * Class LanguageTagalog.
+ */
+class LanguageTagalog extends AbstractModule implements ModuleLanguageInterface
+{
+ use ModuleLanguageTrait;
+
+ /**
+ * Should this module be enabled when it is first installed?
+ *
+ * @return bool
+ */
+ public function isEnabledByDefault(): bool
+ {
+ return false;
+ }
+
+ /**
+ * @return LocaleInterface
+ */
+ public function locale(): LocaleInterface
+ {
+ return new LocaleTl();
+ }
+}
diff --git a/app/Services/ModuleService.php b/app/Services/ModuleService.php
index 7caff55200..963a285ee8 100644
--- a/app/Services/ModuleService.php
+++ b/app/Services/ModuleService.php
@@ -145,6 +145,7 @@ use Fisharebest\Webtrees\Module\LanguageSpanish;
use Fisharebest\Webtrees\Module\LanguageSundanese;
use Fisharebest\Webtrees\Module\LanguageSwahili;
use Fisharebest\Webtrees\Module\LanguageSwedish;
+use Fisharebest\Webtrees\Module\LanguageTagalog;
use Fisharebest\Webtrees\Module\LanguageTamil;
use Fisharebest\Webtrees\Module\LanguageTatar;
use Fisharebest\Webtrees\Module\LanguageThai;
@@ -395,6 +396,7 @@ class ModuleService
'language-sw' => LanguageSwahili::class,
'language-ta' => LanguageTamil::class,
'language-th' => LanguageThai::class,
+ 'language-tl' => LanguageTagalog::class,
'language-tr' => LanguageTurkish::class,
'language-tt' => LanguageTatar::class,
'language-uk' => LanguageUkranian::class,