Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurHoaro committed Nov 25, 2023
1 parent 30f0935 commit f82b73f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion application/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f82b73f

Please sign in to comment.