Zum Inhalt springen

Patch einspielen, Hilfe benötigt!

Erstellt am 2. September 2008 · 1 Antwort · letzte Antwort am 2. September 2008

Tags: Frage

dia ·

Hallo
ich habe gleiches Problem wie hier:
#6202314

Nach lange Suche habe ich diesen Patch gefunden

diff -ruN typo3/sysext/cms/tslib.old/class.tslib_fe.php typo3/sysext/cms/tslib/class.tslib_fe.php
--- typo3/sysext/cms/tslib.old/class.tslib_fe.php	2008-03-19 06:51:21.000000000 +0100
+++ typo3/sysext/cms/tslib/class.tslib_fe.php	2008-03-19 06:49:48.000000000 +0100
@@ -2387,8 +2387,13 @@
 			setlocale(LC_COLLATE,$this->config['config']['locale_all']);
 			setlocale(LC_CTYPE,$this->config['config']['locale_all']);
 			setlocale(LC_MONETARY,$this->config['config']['locale_all']);
-			setlocale(LC_MONETARY,$this->config['config']['locale_all']);
-			setlocale(LC_TIME,$this->config['config']['locale_all']);
+			if ($this->config['config']['locale_all'] == 'tr') {
+				setlocale(LC_TIME,'tr_TR');
+				setlocale(LC_MONETARY,'tr_TR');
+			} else {
+				setlocale(LC_MONETARY,$this->config['config']['locale_all']);
+				setlocale(LC_TIME,$this->config['config']['locale_all']);
+			}
 
 			$this->localeCharset = $this->csConvObj->get_locale_charset($this->config['config']['locale_all']);
 		}

eingespielt wie hier:

setlocale(LC_COLLATE,$this->config['config']['locale_all']);
                        setlocale(LC_CTYPE,$this->config['config']['locale_all']);
                        setlocale(LC_MONETARY,$this->config['config']['locale_all']);
                        setlocale(LC_TIME,$this->config['config']['locale_all']);
                       
                        if ($this->config['config']['locale_all'] == 'tr') {
                                setlocale(LC_TIME,'tr_TR');
                                setlocale(LC_MONETARY,'tr_TR');
                        } else {
                                setlocale(LC_MONETARY,$this->config['config']['locale_all']);
                                setlocale(LC_TIME,$this->config['config']['locale_all']);
                        }                     
                       
                        $this->localeCharset = $this->csConvObj->get_locale_charset($this->config['config']['locale_all']);

Hat aber leider nicht funktioniert. Ich bin kein Programmierer. Daher weiß ich nicht, ob ich den Patch richtig eingespielt habe. Ich wäre sehr Dankbar, wenn jemand mir helfen könnte.
Viele Grüße

just2b ·

alle zeilen mit einem - am anfang gehören weg, also wohl auch

setlocale(LC_TIME,$this->config['config']['locale_all']);

georg