/webtrees/app/ |
H A D | I18N.php | 208 private static LocaleInterface $locale; variable in Fisharebest\\Webtrees\\I18N 223 … ->map(static fn (ModuleLanguageInterface $module): LocaleInterface => $module->locale()); 253 return self::$locale->digits((string) $n); 263 return self::$locale->direction(); 276 self::$locale = Locale::create($code); 279 …$translation_file = __DIR__ . '/../resources/lang/' . self::$locale->languageTag() . '/messages.ph… 288 …$po_file = Webtrees::ROOT_DIR . 'resources/lang/' . self::$locale->languageTag() . '/messages… 300 …ce $item): array => array_merge($carry, $item->customTranslations(self::$locale->languageTag())), … 304 … ->first(fn (ModuleLanguageInterface $module): bool => $module->locale()->languageTag() === $code); 308 self::$translator = new Translator($translations, self::$locale->pluralRule()); [all …]
|
H A D | Timestamp.php | 35 public function __construct(int $timestamp, string $timezone, string $locale) argument 38 $this->carbon->locale($locale); 86 $this->carbon->locale 95 $this->carbon->locale 104 $this->carbon->locale 113 $this->carbon->locale 122 $this->carbon->locale 131 $this->carbon->locale 140 $this->carbon->locale 149 $this->carbon->locale [all …]
|
/webtrees/resources/views/layouts/ |
H A D | administration.phtml | 25 <html dir="<?= I18N::locale()->direction() ?>" lang="<?= I18N::locale()->languageTag() ?>"> 62 <?php foreach (I18N::activeLocales() as $locale) : ?> 63 …locale->languageTag() ?> <?= I18N::languageTag() === $locale->languageTag() ? ' active' : '' ?>" h…
|
H A D | report.phtml | 14 <html dir="<?= I18N::locale()->direction() ?>" lang="<?= I18N::locale()->languageTag() ?>">
|
H A D | error.phtml | 13 <html dir="<?= I18N::locale()->direction() ?>" lang="<?= I18N::locale()->languageTag() ?>">
|
H A D | setup.phtml | 13 <html dir="<?= I18N::locale()->direction() ?>" lang="<?= I18N::locale()->languageTag() ?>">
|
H A D | offline.phtml | 16 <html dir="<?= I18N::locale()->direction() ?>" lang="<?= I18N::locale()->languageTag() ?>">
|
/webtrees/app/Http/Middleware/ |
H A D | UseLanguage.php | 63 I18N::init($language->locale()->languageTag()); 64 Session::put('language', $language->locale()->languageTag()); 86 …->first(static fn (ModuleLanguageInterface $module): bool => $module->locale()->languageTag() === … 90 … ->map(static fn (ModuleLanguageInterface $module): LocaleInterface => $module->locale()); 93 … $locale = Locale::httpAcceptLanguage($request->getServerParams(), $locales->all(), $default); 96 …tic fn (ModuleLanguageInterface $module): bool => $module->locale()->languageTag() === $locale->la…
|
/webtrees/resources/views/edit/ |
H A D | language-checkboxes.phtml | 13 <?php foreach (I18N::activeLocales() as $locale) : ?> 15 <label title="<?= e($locale->languageTag()) ?>"> 16 …put type="checkbox" name="languages[]" value="<?= e($locale->languageTag()) ?>" <?= in_array($loca… 17 <?= $locale->endonym() ?>
|
/webtrees/resources/views/setup/ |
H A D | step-1-language.phtml | 48 <?php foreach ($locales as $locale) : ?> 49 …<option value="<?= $locale->languageTag() ?>" <?= $lang === $locale->languageTag() ? 'selected' : … 50 <?= $locale->endonym() ?>
|
/webtrees/app/Http/RequestHandlers/ |
H A D | AccountEdit.php | 80 $locale = $module->locale(); 82 return [$locale->languageTag() => $locale->endonym()];
|
H A D | UserEditPage.php | 88 $locale = $module->locale(); 90 return [$locale->languageTag() => $locale->endonym()];
|
H A D | UserListData.php | 75 $locale = $module->locale(); 77 return [$locale->languageTag() => $locale->endonym()];
|
/webtrees/app/Module/ |
H A D | ModuleLanguageTrait.php | 232 return $this->locale()->endonym(); 237 …return I18N::translate('Language') . ' — ' . $this->title() . ' — ' . $this->locale()->languageTag… 243 public function locale(): LocaleInterface function
|
/webtrees/app/Census/ |
H A D | Census.php | 28 * @param string $locale 32 public static function censusPlaces(string $locale): array argument 34 switch ($locale) {
|
/webtrees/app/Factories/ |
H A D | TimestampFactory.php | 50 $locale = I18N::locale()->code(); 52 return new Timestamp($timestamp, $timezone, $locale);
|
/webtrees/app/Date/ |
H A D | JewishDate.php | 87 if (I18N::locale()->script()->code() === 'Hebr') { 104 if (I18N::locale()->script()->code() === 'Hebr') { 118 if (I18N::locale()->script()->code() === 'Hebr') {
|
/webtrees/resources/views/emails/ |
H A D | approve-user-html.phtml | 16 <div dir="<?= I18N::locale()->direction() ?>" lang="<?= I18N::locale()->languageTag() ?>">
|
H A D | password-request-html.phtml | 14 <div dir="<?= I18N::locale()->direction() ?>" lang="<?= I18N::locale()->languageTag() ?>">
|
H A D | new-version-html.phtml | 16 <div dir="<?= I18N::locale()->direction() ?>" lang="<?= I18N::locale()->languageTag() ?>">
|
H A D | message-copy-html.phtml | 16 <div dir="<?= I18N::locale()->direction() ?>" lang="<?= I18N::locale()->languageTag() ?>">
|
H A D | register-user-html.phtml | 15 <div dir="<?= I18N::locale()->direction() ?>" lang="<?= I18N::locale()->languageTag() ?>">
|
H A D | pending-changes-html.phtml | 16 <div dir="<?= I18N::locale()->direction() ?>" lang="<?= I18N::locale()->languageTag() ?>">
|
H A D | message-user-html.phtml | 16 <div dir="<?= I18N::locale()->direction() ?>" lang="<?= I18N::locale()->languageTag() ?>">
|
H A D | verify-notify-html.phtml | 14 <div dir="<?= I18N::locale()->direction() ?>" lang="<?= I18N::locale()->languageTag() ?>">
|