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); }