/webtrees/app/Module/ |
H A D | AbstractIndividualListModule.php | 121 $surname = I18N::strtoupper(I18N::language()->normalize($surname_param)); 167 $alpha = I18N::language()->initialLetter($surname); 328 … $filter = static fn (string $x): bool => I18N::language()->initialLetter($x) === $alpha; 425 … static fn (string $x): bool => I18N::language()->initialLetter($x) === $alpha, 528 foreach (I18N::language()->alphabet() as $initial) { 547 …$initial = I18N::language()->initialLetter(I18N::language()->normalize(I18N::strtoupper($row->n_gi… 605 $normalized = I18N::strtoupper(I18N::language()->normalize($row->n_surn)); 628 $n_surn = I18N::strtoupper(I18N::language()->normalize($n_surn)); 651 foreach (I18N::language()->alphabet() as $initial) { 656 …$initial = I18N::language()->initialLetter(I18N::language()->normalize(I18N::strtoupper($row->n_su… [all …]
|
H A D | ModuleCustomInterface.php | 65 * @param string $language 69 public function customTranslations(string $language): array; argument
|
H A D | FrequentlyAskedQuestionsModule.php | 429 * @param string $language 433 private function faqsExist(Tree $tree, string $language): bool argument 446 …->filter(static fn (object $faq): bool => $faq->languages === '' || in_array($language, explode(',…
|
H A D | ModuleCustomTrait.php | 134 * @param string $language 138 public function customTranslations(string $language): array argument
|
H A D | CkeditorModule.php | 72 'language' => I18N::locale()->language()->code(),
|
H A D | ModuleMapGeoLocationTrait.php | 94 'accept-language' => I18N::languageTag(),
|
/webtrees/app/Http/RequestHandlers/ |
H A D | SelectLanguage.php | 47 $language = $request->getAttribute('language'); 48 assert(is_string($language)); 50 Session::put('language', $language); 51 $user->setPreference(UserInterface::PREF_LANGUAGE, $language);
|
H A D | AccountUpdate.php | 67 $language = Validator::parsedBody($request)->string('language'); 99 $user->setPreference(UserInterface::PREF_LANGUAGE, $language); 109 Session::put('language', $language);
|
H A D | SitePreferencesAction.php | 49 $language = Validator::parsedBody($request)->string('LANGUAGE'); 68 Site::setPreference('LANGUAGE', $language);
|
H A D | UserListData.php | 133 $languages->get($row->language, $row->language),
|
H A D | UserEditAction.php | 79 $language = Validator::parsedBody($request)->string('language'); 114 $edit_user->setPreference(UserInterface::PREF_LANGUAGE, $language);
|
/webtrees/app/ |
H A D | I18N.php | 206 private static ModuleLanguageInterface $language; variable in Fisharebest\\Webtrees\\I18N 302 self::$language = $module_service 367 public static function language(): ModuleLanguageInterface function in Fisharebest\\Webtrees\\I18N 369 return self::$language; 567 if (in_array(self::$locale->language()->code(), self::DOTLESS_I_LOCALES, true)) { 583 if (in_array(self::$locale->language()->code(), self::DOTLESS_I_LOCALES, true)) {
|
/webtrees/app/Http/Middleware/ |
H A D | UseLanguage.php | 61 foreach ($this->languages($request) as $language) { 62 if ($language instanceof ModuleLanguageInterface) { 63 I18N::init($language->locale()->languageTag()); 64 Session::put('language', $language->locale()->languageTag());
|
/webtrees/app/Schema/ |
H A D | Migration43.php | 32 $language = DB::table('gedcom_setting') 41 'setting_value' => $language ?? 'en-US',
|
/webtrees/resources/views/statistics/other/charts/ |
H A D | column.phtml | 35 statistics.init(<?= json_encode($language, JSON_THROW_ON_ERROR) ?>); 39 statistics.init(<?= json_encode($language, JSON_THROW_ON_ERROR) ?>);
|
H A D | combo.phtml | 34 statistics.init(<?= json_encode($language, JSON_THROW_ON_ERROR) ?>); 38 statistics.init(<?= json_encode($language, JSON_THROW_ON_ERROR) ?>);
|
H A D | pie.phtml | 45 statistics.init(<?= json_encode($language, JSON_THROW_ON_ERROR) ?>); 49 statistics.init(<?= json_encode($language, JSON_THROW_ON_ERROR) ?>);
|
H A D | geo.phtml | 55 statistics.init(<?= json_encode($language, JSON_THROW_ON_ERROR) ?>); 59 statistics.init(<?= json_encode($language, JSON_THROW_ON_ERROR) ?>);
|
H A D | custom.phtml | 25 …ata' => $data, 'chart_options' => $chart_options, 'chart_title' => '', 'language' => $language]) ?>
|
/webtrees/tests/feature/ |
H A D | RelationshipNamesTest.php | 382 …unction assertRelationship(string $expected, array $nodes, ModuleLanguageInterface $language): void argument 385 $actual = $service->nameFromPath($nodes, $language); 388 … $message = 'Language: ' . $language->title() . PHP_EOL . 'Path: ' . $path . ' (' . $english . ')'; 398 …ssertRelationships(string $fwd, string $rev, array $nodes, ModuleLanguageInterface $language): void argument 400 self::assertRelationship($fwd, $nodes, $language); 401 self::assertRelationship($rev, array_reverse($nodes), $language);
|
/webtrees/app/Services/ |
H A D | RelationshipService.php | 78 $language = Registry::container()->get(ModuleService::class) 80 …->first(fn (ModuleLanguageInterface $language): bool => $language->locale()->languageTag() === I18… 89 return $this->nameFromPath($path, $language); 197 * @param ModuleLanguageInterface $language 201 public function nameFromPath(array $nodes, ModuleLanguageInterface $language): string argument 209 $relationships = $language->relationships();
|
/webtrees/app/Cli/Commands/ |
H A D | UserCreate.php | 65 $language = $input->getOption(name: 'language'); 116 $user->setPreference(setting_name: UserInterface::PREF_LANGUAGE, setting_value: $language);
|
/webtrees/resources/views/modules/ckeditor/ |
H A D | ckeditor-js.phtml | 26 CKEDITOR.config.language = <?= json_encode(strtolower($language), JSON_THROW_ON_ERROR) ?>;
|
/webtrees/app/Elements/ |
H A D | DateValue.php | 59 $dmy = I18N::language()->dateOrder();
|
/webtrees/modules_v4/ |
H A D | README.md | 26 To write a module, you need to understand the PHP programming language.
|