note 91187 added to book.gettext

From: Date: Fri, 29 May 2009 07:05:38 +0000
Subject: note 91187 added to book.gettext
Groups: php.notes 
Request: Send a blank email to php-notes+get-156137@lists.php.net to get a copy of this message
Warning for Linux (Ubuntu) users! Your system will *only* support the locales installed on your OS, in the *exact* format given by your OS. (See also the PHP setlocale man page.) To get a list of them, enter locale -a, which will give you something like this: C en_US.utf8 ja_JP.utf8 POSIX So this machine only has English and Japanese! To add eg. Finnish, install the package: sudo apt-get install language-pack-fi-base Rerun locale -a, and "fi_FI.utf8" should appear. Make sure you're using the same name in your PHP code: setlocale(LC_ALL, "fi_FI.utf8"); Adjust your po paths so that they match, e.g. "./locale/fi_FI.utf8/LC_MESSAGES/messages.po". Now restart Apache, and it should finally work. Figuring this out took quite a while... ---- Server IP: 202.79.181.100 Probable Submitter: 220.255.4.27 (proxied: 220.255.178.231) ---- Manual Page -- http://www.php.net/manual/en/book.gettext.php Edit -- https://master.php.net/note/edit/91187 Del: integrated -- https://master.php.net/note/delete/91187/integrated Del: useless -- https://master.php.net/note/delete/91187/useless Del: bad code -- https://master.php.net/note/delete/91187/bad+code Del: spam -- https://master.php.net/note/delete/91187/spam Del: non-english -- https://master.php.net/note/delete/91187/non-english Del: in docs -- https://master.php.net/note/delete/91187/in+docs Del: other reasons-- https://master.php.net/note/delete/91187 Reject -- https://master.php.net/note/reject/91187 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#156137) next »