From f82b73f983819bcdf85b6cc383ea7977e1d70747 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 25 Nov 2023 11:05:01 -0500 Subject: [PATCH] tmp --- application/Utils.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application/Utils.php b/application/Utils.php index a4da41ac6..4f0e27fc0 100644 --- a/application/Utils.php +++ b/application/Utils.php @@ -522,7 +522,11 @@ function get_locale(int $category = LC_CTYPE) var_dump('$locale'); var_dump($locale); - if ($locale === 'C' && class_exists('Locale') && method_exists('Locale', 'canonicalize')) { + if ( + ($locale === 'C' || startsWith($locale, 'C.')) + && class_exists('Locale') + && method_exists('Locale', 'canonicalize') + ) { $locale = Locale::canonicalize($locale); var_dump($locale); }