---
title: "Patch einspielen, Hilfe benötigt!"
url: "https://www.typo3.net/d/81345-patch-einspielen-hilfe-benoetigt"
source: "typo3.net"
tags: ["TYPO3","Mehrsprachigkeit","Frage","PHP"]
created: "2008-09-02"
last_reply: "2008-09-02"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# Patch einspielen, Hilfe benötigt!

TYPO3 › Mehrsprachigkeit · 1 Antwort · gestartet 2008-09-02

## Eröffnungsbeitrag

**dia** · 2008-09-02 · [Beitrag #1](https://www.typo3.net/d/81345-patch-einspielen-hilfe-benoetigt/1)

Hallo
ich habe gleiches Problem wie hier:
[/d/62023-problem-mit-locale-all-de-de-locale-all-tr-tr/14](https://www.typo3.net/d/62023-problem-mit-locale-all-de-de-locale-all-tr-tr/14)

Nach lange Suche habe ich diesen Patch gefunden

```php
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:

```php
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

## Antworten

### [#2](https://www.typo3.net/d/81345-patch-einspielen-hilfe-benoetigt/2) · just2b · 2008-09-02

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

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

georg

---

Quelle: „Patch einspielen, Hilfe benötigt!“, typo3.net, https://www.typo3.net/d/81345-patch-einspielen-hilfe-benoetigt
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
