setlocale() error in DynamicConditionsDate.php
-
Greetings,
I’ve stumbled upon this error line:
setlocale(): Specified locale name is too long in …//DynamicConditionsDate.php on line 137These are the loop lines 128-140:
/**
* Get a list of days (monday, tuesday,…) in current language
*
* @return array
*/
public static function getDaysTranslated() {
$currentLocale = setlocale( LC_ALL, 0 );
setlocale( LC_ALL, get_locale() );
$dayList = self::getDays();
setlocale( LC_ALL, $currentLocale );return $dayList;
}There is no way a translation of a day can be too long.
Can’t say if it breaks something or not by now.
I use russian version of WordPress 5.2.2, and never before have seen this error, though I use DynamicConditions more than half of a year now.
Maybe it has something to do with an update.Some phpinfo:
PHP Version: 7.1.26
System: Linux srv31-h-st.jino.ru 3.10.0-957.21.3.el7.x86_64 #1
Server API: Apache 2.0 HandlerCurrent version of the plugin: 1.3.2
And thank you so much for this plugin! It has improved our work drastically.
Best regards,
Darius
- The topic ‘setlocale() error in DynamicConditionsDate.php’ is closed to new replies.