Skip to content

Commit

Permalink
fr: Fix plural handling for "million" and suffixes above
Browse files Browse the repository at this point in the history
Because 400000000 should be "quatre cents millions" not "quatre cent millions"
since suffixes "million", "milliard" and above are names not adjectives, and
therefore must have the plural form.

Source: http://leconjugueur.lefigaro.fr/frlesnombres.php
  • Loading branch information
jjk-jacky committed Oct 30, 2014
1 parent 4eebaac commit 5e0ce18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Numbers/Words/Locale/fr.php
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ function _toWords($num = 0)
// skip processment for empty groups
if ($number!='000') {
if ($number!=1 || $pow!=2) {
$ret .= $this->_showDigitsGroup($number, $i+1==$sizeof_numgroups).$this->_sep;
$ret .= $this->_showDigitsGroup($number, $i+1==$sizeof_numgroups||$pow>2).$this->_sep;
}
$ret .= $this->_exponent[($pow-1)*3];
if ($pow>2 && $number>1) {
Expand Down

0 comments on commit 5e0ce18

Please sign in to comment.