@tsabz 的答案可能是解决方案,因为错误在 PHP 内部。那,或者在俄罗斯需要设置某种方言。
在 Typo3 中实现@tsabz 的答案需要您对 tslib_content(即 tslib_cObj)进行 xclassing。这可以通过向您添加以下行来完成,typo3conf/localconf.php
或者更好的是,在内部的自定义扩展中typo3conf/ext/your_ext/ext_localconf.php
:
$GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['tslib/class.tslib_content.php'] = PATH_typo3conf.'ext/your_ext/xclass/class.ux_tslib_content.php';
然后创建文件typo3conf/ext/your_ext/xclass/class.ux_tslib_content.php
并输入以下内容:
<?php
class ux_tslib_cObj extends tslib_cObj {
/**
* date
* Will return a formatted date based on configuration given according to PHP date/gmdate properties
* Will return gmdate when the property GMT returns true
*
* @param string Input value undergoing processing in this function.
* @param array stdWrap properties for date.
* @return string The processed input value
*/
public function stdWrap_date($content = '', $conf = array()) {
$content = parent::stdWrap_date($content, $conf);
$content = str_replace("Сентябрь", "Сентября", $content);
return $content;
}
}