Keine Reaktion auf Ländercode

oelprinz

Registered User
mein Server reagiert net

auf folgenden code

Code:
setlocale (LC_ALL, "fr_FR");
echo "n<br>" . strftime ("%A") . ", in French " ;
setlocale (LC_ALL, "de_DE");
echo "n<br>" . strftime ("%A") . ", in German " ;

bei mir bleibt das Datum immer in English

PHP Version ist die 5.2.5
server Debian 3.1
 
Füge mal ein:
PHP:
printf ('Locale supportet: %s<br>', (setlocale(LC_ALL, null))?'yes':'no');
printf ('Locale set to: %s<br>', setlocale(LC_ALL, 'de_DE'));
printf ('DoW: %s<br>', strftime ("%A"));
printf ('Locale set to: %s<br>', setlocale(LC_ALL, 'fr_FR'));
printf ('DoW: %s<br>', strftime ("%A"));
 
Code:
Locale supportet: yes
Locale set to: 
DoW:Tuesday
Locale set to: 
DoW: Tuesday

das ist die Ausgabe

ich habe von S4y die Auskunft erhalten

ein dpkg-reconfigure local


aber das Paket kennt er gar net
 
bringt nichts

ist es möglich da bei mir da was fehlt weil es sagt
Code:
Package `locale' is not installed and no info is available.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
/usr/sbin/dpkg-reconfigure: locale is not installed
vs240187:~# apt-get install locale
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package locale

ich habe versucht das Pakete locale zu instalieren
 
Back
Top