Skip to content

Commit

Permalink
Add Basque language
Browse files Browse the repository at this point in the history
  • Loading branch information
fisharebest committed May 16, 2023
1 parent bd1fb43 commit 6ad4e1c
Show file tree
Hide file tree
Showing 3 changed files with 21,006 additions and 0 deletions.
49 changes: 49 additions & 0 deletions app/Module/LanguageBasque.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?php

/**
* webtrees: online genealogy
* Copyright (C) 2023 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 <https://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace Fisharebest\Webtrees\Module;

use Fisharebest\Localization\Locale\LocaleEu;
use Fisharebest\Localization\Locale\LocaleInterface;

/**
* Class LanguageBasque.
*/
class LanguageBasque 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 LocaleEu();
}
}
2 changes: 2 additions & 0 deletions app/Services/ModuleService.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
use Fisharebest\Webtrees\Module\LanguageAfrikaans;
use Fisharebest\Webtrees\Module\LanguageAlbanian;
use Fisharebest\Webtrees\Module\LanguageArabic;
use Fisharebest\Webtrees\Module\LanguageBasque;
use Fisharebest\Webtrees\Module\LanguageBosnian;
use Fisharebest\Webtrees\Module\LanguageBulgarian;
use Fisharebest\Webtrees\Module\LanguageCatalan;
Expand Down Expand Up @@ -404,6 +405,7 @@ class ModuleService
'language-en-US' => LanguageEnglishUnitedStates::class,
'language-es' => LanguageSpanish::class,
'language-et' => LanguageEstonian::class,
'language-eu' => LanguageBasque::class,
'language-fa' => LanguageFarsi::class,
'language-fi' => LanguageFinnish::class,
'language-fo' => LanguageFaroese::class,
Expand Down
Loading

0 comments on commit 6ad4e1c

Please sign in to comment.