Lines Matching refs:locale
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());
318 if (str_contains(self::$locale->code(), '@')) {
319 self::$collator = new Collator(self::$locale->code() . ';collation=phonebook');
321 self::$collator = new Collator(self::$locale->code() . '@collation=phonebook');
353 return self::$locale->languageTag();
359 public static function locale(): LocaleInterface function in Fisharebest\\Webtrees\\I18N
361 return self::$locale;
386 return self::$locale->number(round($n, $precision));
403 return self::$locale->percent(round($n, $precision + 2));
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)) {