note 85243 added to function.setlocale

From: Date: Thu, 21 Aug 2008 17:30:29 +0000
Subject: note 85243 added to function.setlocale
Groups: php.notes 
Request: Send a blank email to php-notes+get-143719@lists.php.net to get a copy of this message
This will works for Indonesian on all platform (Windows, Linux and others Nix server): <?php echo '<pre>' . "\n"; //Add english as default (if all Indonesian not available) setlocale(LC_ALL, 'id_ID.UTF8', 'id_ID.UTF-8', 'id_ID.8859-1', 'id_ID', 'IND.UTF8', 'IND.UTF-8', 'IND.8859-1', 'IND', 'Indonesian.UTF8', 'Indonesian.UTF-8', 'Indonesian.8859-1', 'Indonesian', 'Indonesia', 'id', 'ID', 'en_US.UTF8', 'en_US.UTF-8', 'en_US.8859-1', 'en_US', 'American', 'ENG', 'English'); //will output something like: Minggu, 17 Agustus 2008 echo strftime("%A, %d %B %Y") . "\n"; echo '</pre>' . "\n"; ?> ---- Server IP: 202.158.52.162 Probable Submitter: 114.120.18.201 ---- Manual Page -- http://www.php.net/manual/en/function.setlocale.php Edit -- https://master.php.net/note/edit/85243 Del: integrated -- https://master.php.net/note/delete/85243/integrated Del: useless -- https://master.php.net/note/delete/85243/useless Del: bad code -- https://master.php.net/note/delete/85243/bad+code Del: spam -- https://master.php.net/note/delete/85243/spam Del: non-english -- https://master.php.net/note/delete/85243/non-english Del: in docs -- https://master.php.net/note/delete/85243/in+docs Del: other reasons-- https://master.php.net/note/delete/85243 Reject -- https://master.php.net/note/reject/85243 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#143719) next »