Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.18.2

Bug #20544 Missing spaces in nl
Submitted: 2015-05-07 21:38 UTC
From: baud Assigned:
Status: Open Package: Numbers_Words (version 0.18.1)
PHP Version: 5.5.9 OS: Ubuntu
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 18 + 42 = ?

 
 [2015-05-07 21:38 UTC] baud (Baudouin Laloy)
Description: ------------ If you use 55000 as an input, you get 'vijfenvijftigDuizend' in NL. =>A space is missing before 'Duizend' If you use 55500 as an input, you get 'vijfenvijftigDuizendvijfhonderd' =>Two spaces are missing: before and after 'Duizend' Test script: --------------- $num="55000"; $numberToWord = new Numbers_Words(); $ret= $numberToWord->toWords($num,'nl'); echo $ret; Expected result: ---------------- result should be: vijfenvijftig Duizend Actual result: -------------- result is: vijfenvijftigDuizend

Comments

 [2015-05-07 22:45 UTC] baud (Baudouin Laloy)
The exemples I have provided are not correct (I am not a dutch speaker); here are the real mistakes: 642000 => 'zeshonderdtweeenveertigDuizend' and it should be "zeshonderd tweeënveertig duizend" 208006 => ''tweehonderdachtDuizendzes' and it should be "tweehonderd en acht duizend en zes" 3020 => 'drieDuizendtwintig' and it should be "drieduizend twintig" As you can see the "D" of "Duizend" should be "d" I took those exemple from this site: http://www.nlfacile.com/nombres-au-dela-de-100-neerlandais_2_26964.htm