mirror of
https://github.com/rlanvin/php-rrule.git
synced 2025-04-08 23:53:48 +02:00
Fix locale format for i18n files
This commit is contained in:
parent
a5bda44f59
commit
197166a601
@ -2190,7 +2190,7 @@ class RRule implements RRuleInterface
|
|||||||
if ($opt['use_intl']) {
|
if ($opt['use_intl']) {
|
||||||
$default_opt['locale'] = \Locale::getDefault();
|
$default_opt['locale'] = \Locale::getDefault();
|
||||||
} else {
|
} else {
|
||||||
$default_opt['locale'] = setlocale(LC_ALL, 0);
|
$default_opt['locale'] = setlocale(LC_CTYPE, 0);
|
||||||
if ($default_opt['locale'] == 'C') {
|
if ($default_opt['locale'] == 'C') {
|
||||||
$default_opt['locale'] = 'en';
|
$default_opt['locale'] = 'en';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user