"ת" ) { $word = "־" . $word; } } return $word; } /** * Gets a number and uses the suited form of the word. * * @param $count Integer: the number of items * @param $forms Array with 3 items: the three plural forms * @return String: the suited form of word */ function convertPlural( $count, $forms ) { if ( !count( $forms ) ) { return ''; } $forms = $this->preConvertPlural( $forms, 3 ); if ( $count == '1' ) { return $forms[0]; } elseif ( $count == '2' && isset( $forms[2] ) ) { return $forms[2]; } else { return $forms[1]; } } }