note 29586 deleted from ref.gettext by sniper

From: Date: Wed, 03 Sep 2003 00:02:56 +0000
Subject: note 29586 deleted from ref.gettext by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-55500@lists.php.net to get a copy of this message
Note Submitter: technik@part2part.com ---- (german below) gettext do not work correct, e.g. it do not translate. I lost many times on my S.u.S.E. System but I think, this is not a problem by S.u.S:E: only. You must set de_DE or en_GB or xx_XX not de or en or xx in function setlocale. A call strace my_gettext_program_in_C show me, en or de do not work in C and in php also. For an translation from non-English to English it is an good idea to take a look in /usr/share/locale/locale.alias If you don't find en_GB it is nessesery to add this. German: Gettexet funktioniert nicht wie gewollt, dh. die Funktion gibt keine Fehler aus, übersetzt aber auch nicht. Nach viel probieren und experimentieren fand ich die Lösung. Es reicht nicht einfach nur de in setlocale zu verwenden. Es ist notwendig de_DE oder en_GB zu benutzten. Falls die Übersetztung von Deutsch nach Englisch nicht funktioniert, hilft eine Überprüfung von /usr/share/locale/locale.alias vielleicht weiter. Fehlt da en_GB wird es nicht gehen. Also ergänzen.

« previous php.notes (#55500) next »