Bug #19895 [Com]: broken digit conversion in lang.tr_TR
| From: | shehi@imanov.name | Date: | Thu, 29 Jan 2015 17:24:43 +0000 |
| Subject: | Bug #19895 [Com]: broken digit conversion in lang.tr_TR | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-11224@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=19895&edit=1
ID: 19895
Comment by: shehi@imanov.name
Reported By: msc at istanbul dot com
Summary: broken digit conversion in lang.tr_TR
Status: Open
Type: Bug
Package: Numbers_Words
Operating System: Centos
Package Version: 0.16.4
PHP Version: 5.4.14
Roadmap Versions:
New Comment:
This has been fixed in Github. Please close.
Previous Comments:
------------------------------------------------------------------------
[2013-04-12 11:51:52] msc1
Description:
------------
600.50 produces "alt? yüz TL elli Kr" but 611.50 produces the
same "alt? yüz TL elli Kr".
Test script:
---------------
<?php
// include class
include("Numbers/Words.php");
// create object
$nw = new Numbers_Words();
// convert to string
echo Numbers_Words::toCurrency(611.50, tr_TR, 'TRY')
?>
Expected result:
----------------
"alt? yüz on bir TL elli Kr"
Actual result:
--------------
"alt? yüz TL elli Kr"
------------------------------------------------------------------------
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=19895&edit=1