Permalink
Browse files

Fix E_NOTICE - Turkish only has the singular form

  • Loading branch information...
1 parent 1adb76d commit 9420307f7f02d47d26a8e14beb7cc5a47d539425 @CloCkWeRX CloCkWeRX committed Jul 1, 2012
Showing with 2 additions and 8 deletions.
  1. +2 −8 Numbers/Words/lang.tr_TR.php
@@ -76,7 +76,7 @@ class Numbers_Words_tr_TR extends Numbers_Words
var $_minus = 'eksi';
/**
- * The sufixes for exponents (singular and plural)
+ * The sufixes for exponents - singular only
* @var array
* @access private
*/
@@ -304,13 +304,7 @@ function _toWords($num, $power = 0)
return null;
}
- // if it's only one use the singular suffix
- if (($d == 1) and ($t == 0) and ($h == 0)) {
- $suffix = $lev[0];
- }
- else {
- $suffix = $lev[1];
- }
+ $suffix = $lev[0];
if ($num != 0) {
$ret .= $this->_sep . $suffix;
}

0 comments on commit 9420307

Please sign in to comment.