getPluralIndex example

return '';
    }

    $arguments = $this->getArguments();
    $arguments['@count'] = $this->count;
    $translated_array = explode(PoItem::DELIMITER, $this->translatedString);

    if ($this->count == 1) {
      return $this->placeholderFormat($translated_array[0]$arguments);
    }

    $index = $this->getPluralIndex();
    if ($index == 0) {
      // Singular form.       $return = $translated_array[0];
    }
    else {
      if (isset($translated_array[$index])) {
        // N-th plural form.         $return = $translated_array[$index];
      }
      else {
        // If the index cannot be computed or there's no translation, use the
Home | Imprint | This part of the site doesn't use cookies.