|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-02-02 21:23 UTC] ciprianmp at yahoo dot com
Description: ------------ --- From manual page: http://www.php.net/function.setlocale --- Expected result: ---------------- The date/time and calendar month and days names and formats are in english, on both win and unix. Any plans for yoruba language (Nigeria) support? PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 11 03:00:01 2025 UTC |
This already works fine so long as your OS has the appropriate language support installed. For example, after installing the Ubuntu language-pack-yo package, this script: <?php var_dump(strftime('%e %B %Y')); setlocale(LC_ALL, 'yo_NG.utf8'); var_dump(strftime('%e %B %Y')); ?> Outputs this: string(16) " 3 February 2011" string(22) " 3 Fẹ́búárì 2011" Which matches the installed locale file (apart from the broken combining character caused by copy/pasting from my terminal). Closing, since this isn't a bug in PHP.