[PEAR-BUG] Bug #19895 [Opn]: broken digit conversion in lang.tr_TR

[email protected] Fri, 30 Jan 2015 16:15:13 +0000 (GMT)
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at https://pear.php.net/bugs/bug.php?id=19895&edit=1

 ID:               19895
 Updated by:       [email protected]
 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:

Can you give a link to the pull request in Github please? Currently it
does not appear as fixed.


Previous Comments:
------------------------------------------------------------------------

[2015-01-29 17:24:42] shehriyari

This has been fixed in Github. Please close.

------------------------------------------------------------------------

[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