エラーはPHP内にあるため、@tsabzの答えはおそらく解決策です。それか、ロシアには代わりに設定する必要のある方言があります。
@tsabzの答えをTypo3に実装するには、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;
}
}