Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e57f91813b
Fetching contributors…

Cannot retrieve contributors at this time

578 lines (575 sloc) 20.036 kb
<?xml version="1.0" encoding="UTF-8"?>
<package packagerversion="1.9.4" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd">
<name>Numbers_Words</name>
<channel>pear.php.net</channel>
<summary>The PEAR Numbers_Words package provides methods for spelling numerals in words.</summary>
<description>With Numbers_Words class you can convert numbers
written in arabic digits to words in several languages.
You can convert an integer between -infinity and infinity.
If your system does not support such long numbers you can
call Numbers_Words::toWords() with just a string.
With the Numbers_Words::toCurrency($num, $locale, &apos;USD&apos;) method
you can convert a number (decimal and fraction part) to words with currency name.
The following languages are supported:
* bg (Bulgarian) by Kouber Saparev
* cs (Czech) by Petr &apos;PePa&apos; Pavel
* de (German) by Piotr Klaban
* dk (Danish) by Jesper Veggerby
* en_100 (Donald Knuth system, English) by Piotr Klaban
* en_GB (British English) by Piotr Klaban
* en_US (American English) by Piotr Klaban
* es (Spanish Castellano) by Xavier Noguer
* es_AR (Argentinian Spanish) by Martin Marrese
* et (Estonian) by Erkki Saarniit
* fr (French) by Kouber Saparev
* fr_BE (French Belgium) by Kouber Saparev and Philippe Bajoit
* he (Hebrew) by Hadar Porat
* hu_HU (Hungarian) by Nils Homp
* id (Indonesian) by Ernas M. Jamil and Arif Rifai Dwiyanto
* it_IT (Italian) by Filippo Beltramini and Davide Caironi
* lt (Lithuanian) by Laurynas Butkus
* nl (Dutch) by WHAM van Dinter
* pl (Polish) by Piotr Klaban
* pt_BR (Brazilian Portuguese) by Igor Feghali
* ru (Russian) by Andrey Demenev
* sv (Swedish) by Robin Ericsson</description>
<lead>
<name>Piotr Klaban</name>
<user>makler</user>
<email>makler@man.torun.pl</email>
<active>no</active>
</lead>
<lead>
<name>Kouber Saparev</name>
<user>kouber</user>
<email>kouber@php.net</email>
<active>yes</active>
</lead>
<lead>
<name>Igor Feghali</name>
<user>ifeghali</user>
<email>ifeghali@php.net</email>
<active>yes</active>
</lead>
<developer>
<name>Marcelo Subtil Marcal</name>
<user>msmarcal</user>
<email>msmarcal@php.net</email>
<active>yes</active>
</developer>
<contributor>
<name>Xavier Noguer</name>
<user>xnoguer</user>
<email>xnoguer.php@gmail.com</email>
<active>yes</active>
</contributor>
<contributor>
<name>Hadar Porat</name>
<user>hadar_p</user>
<email>hpman28@gmail.com</email>
<active>yes</active>
</contributor>
<date>2012-07-01</date>
<time>17:11:22</time>
<version>
<release>0.17.0</release>
<api>0.17.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<license uri="http://www.php.net/license/">PHP</license>
<notes>
Drop PHP 4
Drop PEAR dependency
Misc fixes and cleanup in Turkish driver
</notes>
<contents>
<dir baseinstalldir="/" name="/">
<file baseinstalldir="/" md5sum="447e1971db320565005851d28a099bf6" name="Numbers/Words.php" role="php" />
<file baseinstalldir="/" md5sum="6dffe446729e54b4edefe5f87fda83fd" name="Numbers/Words/Exception.php" role="php" />
<file baseinstalldir="/" md5sum="fd23364b2f565f2898c995cf91fffb0f" name="Numbers/Words/lang.bg.php" role="php" />
<file baseinstalldir="/" md5sum="7a2b5c363e9f1ba3b5d048f8745d60db" name="Numbers/Words/lang.cs.php" role="php" />
<file baseinstalldir="/" md5sum="710826efe3d65d616c81c128f6e675b5" name="Numbers/Words/lang.de.php" role="php" />
<file baseinstalldir="/" md5sum="e0030274f1033b06fd3489b8cabc9944" name="Numbers/Words/lang.dk.php" role="php" />
<file baseinstalldir="/" md5sum="dc897e83e89e140fecfb71a5fe231f5b" name="Numbers/Words/lang.en_100.php" role="php" />
<file baseinstalldir="/" md5sum="70da8296ccd5a83d10945cdbebd901c4" name="Numbers/Words/lang.en_GB.php" role="php" />
<file baseinstalldir="/" md5sum="3da720b6430f2a06075e1a5d04483d85" name="Numbers/Words/lang.en_US.php" role="php" />
<file baseinstalldir="/" md5sum="9b44c8a36971660e09e019e32d13992a" name="Numbers/Words/lang.es.php" role="php" />
<file baseinstalldir="/" md5sum="3842abee4411b50b2ebbeb27261b26c7" name="Numbers/Words/lang.es_AR.php" role="php" />
<file baseinstalldir="/" md5sum="78643f2e3993f28d3a33dca5ffae7f7d" name="Numbers/Words/lang.es_MX.php" role="php" />
<file baseinstalldir="/" md5sum="1cb2bca4025b880e32edae8fea590206" name="Numbers/Words/lang.es_VE.php" role="php" />
<file baseinstalldir="/" md5sum="0b278ffc8fe5043c437ff2a40b7bcbdf" name="Numbers/Words/lang.et.php" role="php" />
<file baseinstalldir="/" md5sum="fdc2ebf6df209e81bd491fbd843652b1" name="Numbers/Words/lang.fr.php" role="php" />
<file baseinstalldir="/" md5sum="3a79cd789cfc7a9fc0ebee7d803b9c80" name="Numbers/Words/lang.fr_BE.php" role="php" />
<file baseinstalldir="/" md5sum="cc18b9936ab575ef643faef2128359cc" name="Numbers/Words/lang.he.php" role="php" />
<file baseinstalldir="/" md5sum="7133b5a3ff04bcac4271f43343106c7e" name="Numbers/Words/lang.hu_HU.php" role="php" />
<file baseinstalldir="/" md5sum="49aea52f468712c2128418b0dbd5746e" name="Numbers/Words/lang.id.php" role="php" />
<file baseinstalldir="/" md5sum="950abd86346d1c3e1d986b60f33f5b96" name="Numbers/Words/lang.it_IT.php" role="php" />
<file baseinstalldir="/" md5sum="2ec2c9464ce499cacb1aa469a806df07" name="Numbers/Words/lang.lt.php" role="php" />
<file baseinstalldir="/" md5sum="ea4d161a08f555e8fa0561707c542d9c" name="Numbers/Words/lang.nl.php" role="php" />
<file baseinstalldir="/" md5sum="2c45c0e79d19dda6aecce2fec7855c0e" name="Numbers/Words/lang.pl.php" role="php" />
<file baseinstalldir="/" md5sum="eb023d47551090f0ee0be5182fae813a" name="Numbers/Words/lang.pt_BR.php" role="php" />
<file baseinstalldir="/" md5sum="41b3765bfaebc7d35db001db5cf2fb11" name="Numbers/Words/lang.ru.php" role="php" />
<file baseinstalldir="/" md5sum="bb841f34c342cd464cfc27bfd80e7f51" name="Numbers/Words/lang.sv.php" role="php" />
<file baseinstalldir="/" md5sum="2fa3152271aaa441ee73efd403480a21" name="Numbers/Words/lang.tr_TR.php" role="php" />
<file baseinstalldir="Numbers" md5sum="cb52653e79a328d0494ce69ee282a420" name="tests/BulgarianTest.php" role="test" />
<file baseinstalldir="Numbers" md5sum="615c0a1206cdeafc428c0b6d2df07a2e" name="tests/English100Test.php" role="test" />
<file baseinstalldir="Numbers" md5sum="c92928fa9f9a99210b50dd88285aefc3" name="tests/EnglishGbTest.php" role="test" />
<file baseinstalldir="Numbers" md5sum="bc83743647eb021038da9005c08a9e74" name="tests/EnglishUsTest.php" role="test" />
<file baseinstalldir="Numbers" md5sum="ab91108899928cd80bd60dcbf549b22d" name="tests/FrenchBeTest.php" role="test" />
<file baseinstalldir="Numbers" md5sum="fca55cda0431f66294d045c83a3a5c47" name="tests/FrenchTest.php" role="test" />
<file baseinstalldir="Numbers" md5sum="a07caead24f6639b4ba2b31d287c9131" name="tests/GermanTest.php" role="test" />
<file baseinstalldir="/" md5sum="0b7969e0309516d82c937c76b1310111" name="tests/HungarianTest.php" role="test" />
<file baseinstalldir="Numbers" md5sum="eecb8b008c23004435533b5293b53948" name="tests/ItalianTest.php" role="test" />
<file baseinstalldir="/" md5sum="cdff4f835e1a410ec5499ffc2a0fb9b6" name="tests/LithuanianTest.php" role="test" />
<file baseinstalldir="Numbers" md5sum="5bda3cd3082c1efa7fd42a58686fa0ea" name="tests/PolishTest.php" role="test" />
<file baseinstalldir="Numbers" md5sum="48c6d47038b2d9a68bbf41a8639ba790" name="tests/PortugueseBrazilianTest.php" role="test" />
<file baseinstalldir="Numbers" md5sum="427088917b83d3da1e93824e045a9a00" name="tests/SpanishTest.php" role="test" />
<file baseinstalldir="Numbers" md5sum="a734d014b617f2a423c3709d283c1390" name="tests/test-numbers-words.php" role="test" />
<file baseinstalldir="Numbers" md5sum="af9f381abf5cb30983e6298fcfccf80d" name="ChangeLog" role="doc" />
<file baseinstalldir="/" md5sum="cb564efdf78cce8ea6e4b5a4f7c05d97" name="LICENSE" role="doc" />
<file baseinstalldir="Numbers" md5sum="b4cbf927457107e890a69d1435c4369a" name="README" role="doc" />
</dir>
</contents>
<dependencies>
<required>
<php>
<min>5.0.0</min>
</php>
<pearinstaller>
<min>1.4.0b1</min>
</pearinstaller>
<package>
<name>Math_BigInteger</name>
<channel>pear.php.net</channel>
</package>
</required>
</dependencies>
<phprelease />
<changelog>
<release>
<version>
<release>0.1</release>
<api>0.1</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2002-11-15</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
This is the initial release of the Numbers_Words package.
</notes>
</release>
<release>
<version>
<release>0.2</release>
<api>0.2</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2002-11-19</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
New lang definition file for en_100 (Donald Knuth number system).
</notes>
</release>
<release>
<version>
<release>0.3</release>
<api>0.3</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2002-11-26</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
New lang files for de (German), pt_BR (Brazilian Portuguese), es (Spanish). First PEAR release.
</notes>
</release>
<release>
<version>
<release>0.4</release>
<api>0.4</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2003-09-17</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
New lang files for: ee (Estonian) and it_IT (Italian).
Changes to es (extranous spaces) and Words.php
(trim output, new function toCurrency() for converting currency values).
</notes>
</release>
<release>
<version>
<release>0.5</release>
<api>0.5</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2003-12-16</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
New file for Bulgarian and French language. toCurrency() method in en_US translation.
</notes>
</release>
<release>
<version>
<release>0.5.1</release>
<api>0.5.1</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2003-12-17</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
Small fix to French translation.
</notes>
</release>
<release>
<version>
<release>0.6</release>
<api>0.6</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2004-04-27</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
New file for Argentinian Spanish, Russian and Indonesian language.
</notes>
</release>
<release>
<version>
<release>0.7</release>
<api>0.7</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2004-04-28</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
New file for Swedish language. Small fix in fr and bg translations.
</notes>
</release>
<release>
<version>
<release>0.7.1</release>
<api>0.7.1</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2004-05-25</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
Small bug fix (use toWords instead of towords) for PHP version 5.
</notes>
</release>
<release>
<version>
<release>0.8</release>
<api>0.8</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2004-06-17</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
New file for Lithuanian language. Fixed a class method finding (should work for PHP5 and PHP4 now).
</notes>
</release>
<release>
<version>
<release>0.8.1</release>
<api>0.8.1</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2004-08-09</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
Fixed two bugs (missing t in 400, and wrong function call) in Russian translation.
</notes>
</release>
<release>
<version>
<release>0.9.0</release>
<api>0.9.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2004-08-26</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
New file for Hungarian language (Thanks to Nils Homp).
</notes>
</release>
<release>
<version>
<release>0.10.0</release>
<api>0.10.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2004-09-20</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
New file for Danish language (Thanks to Jesper Veggerby).
</notes>
</release>
<release>
<version>
<release>0.10.1</release>
<api>0.10.1</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2004-09-30</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
Small bug fix to German translation (the one thousand) (Thanks to neuner at futureweb dot at).
</notes>
</release>
<release>
<version>
<release>0.11.0</release>
<api>0.11.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2004-10-22</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
toCurrencyWords() support in pt_BR translation (Thanks to Mario H.C.T.)
</notes>
</release>
<release>
<version>
<release>0.12.0</release>
<api>0.12.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2005-01-11</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
New file for French (Belgium) language (Thanks to Philippe Bajoit).
</notes>
</release>
<release>
<version>
<release>0.13.0</release>
<api>0.13.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2005-02-28</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
New files for Czech (thanks to Petr &apos;PePa&apos; Pavel) and Hebrew (thanks to Hadar Porat) languages.
</notes>
</release>
<release>
<version>
<release>0.13.1</release>
<api>0.13.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2005-03-09</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
Fixed a problem with no leading zero in fraction of the currency value (reported by geekdom at gmail dot com).
</notes>
</release>
<release>
<version>
<release>0.14.0</release>
<api>0.14.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2005-09-05</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
Fixed plural of pence (Thanks to Peter Dunham and Rob King). Added toCurrency method to en_GB language file. Fraction part can be written in digits (Thanks to Rob King).
</notes>
</release>
<release>
<version>
<release>0.15.0</release>
<api>0.15.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2006-06-13</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
* New file for Dutch language (Thanks to WHAM van Dinter);
* package.xml updated to version 2.0;
* Bugs fixed:
- #5618 locale name (and file name) for Estonian is changed from ee to et;
- #6654 bug in Russian translation;
* New feature added:
- #7339 new Numbers_Words::getLocales() method is available (Thanks to Bertrand Gugger).
</notes>
</release>
<release>
<version>
<release>0.16.0</release>
<api>0.16.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2009-03-10</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
* Added numerous language unit tests (Bulgarian, English 100, English GB, English US, French, French Belgium, German, Italian, Portuguese Brazilian);
* Swap all tests to PHPUnit 3;
* Bugs fixed:
- #10744 wrong getLocales() Docblock;
- #14988 bogus non-int parsing;
- #14667 bad trascription for 101 numbers and 102 thousands bug;
- incorrect values for 80 and 81 in French Belgium;
- #15260 uninitialized string offset in Brazilian Portuguese.
</notes>
</release>
<release>
<version>
<release>0.16.1</release>
<api>0.16.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2010-02-15</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
* Clean up package definition and tests;
* Better cast/sanitation of non-integer values;
* Fixed bug #16019 (incorrect trimming of vowels in the Italian extension).
</notes>
</release>
<release>
<version>
<release>0.16.2</release>
<api>0.16.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2010-05-10</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
* Fixed bug #16435 (improper use of substr() in Polish extension);
* Fixed bug #16667 (wrong spelling of 40 in Hungarian extension) (Vlajos);
* Fixed bug #16733 (incorrect rounding of cents);
* Added optional dependency on Math_BigInteger;
* Improved unit tests (Daniel O&apos;Connor).
</notes>
</release>
<release>
<version>
<release>0.16.3</release>
<api>0.16.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2011-12-11</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
QA Release
Bug #12512 Windows incorrect declaration of toWords() in lang.fr.php (and others!) ifeghali
Bug #17373 bug in toWords function for hungarian translation kouber
Bug #17392 bugs in toWords function for hungarian translation ifeghali
Bug #17754 Patch: Using explode instead of split ifeghali
Request #17763 Independent tr_TR Lang support ifeghali
Bug #17794 Patch: avoiding split in es_MX file ifeghali
Bug #18501 incorrect declaration of toWords() in lang.fr.php kouber
Bug #19013 remove error_reporting (for PEAR QA team) ifeghali
</notes>
</release>
<release>
<version>
<release>0.16.4</release>
<api>0.16.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2012-03-20</date>
<license uri="http://www.php.net/license/">PHP</license>
<notes>
Currency names for Dutch
Re-licensed to PHP 3.01 [ifeghali]
</notes>
</release>
<release>
<version>
<release>0.17.0</release>
<api>0.17.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2012-07-01</date>
<license uri="http://www.php.net/license/">PHP</license>
<notes>
Drop PHP 4
Drop PEAR dependency
Misc fixes and cleanup in Turkish driver
</notes>
</release>
</changelog>
</package>
Jump to Line
Something went wrong with that request. Please try again.