src/Translator.php
public function choice($key, $number, array $replace = array(), $locale = null, $useDB = null)
    {
        $inplaceEditMode = $this->manager->config('inplace_edit_mode');
        if ($this->inPlaceEditing() && $inplaceEditMode == 2) {
            if (!in_array($key, $this->usedKeys)) {
                $this->usedKeys[] = $key;
            }
        }
        if (!$this->suspendInPlaceEdit && $this->inPlaceEditing() && $inplaceEditMode == 1) {
            return $this->get($key, $replace, $locale, true, $useDB);
        } else {
            if ($useDB !== null) {
                $oldUseDB = $this->useDB;
                $this->useDB = $useDB;
                $retVal = parent::choice($key, $number, $replace, $locale);
                $this->useDB = $oldUseDB;
                return $retVal;
            } else {
                return parent::choice($key, $number, $replace, $locale);
            }
        }
    }
public function choice($key, $number, array $replace = array(), $locale = null, $useDB = null)
    {
        $inplaceEditMode = $this->manager->config('inplace_edit_mode');
        if ($this->inPlaceEditing() && $inplaceEditMode == 2) {
            if (!in_array($key, $this->usedKeys)) {
                $this->usedKeys[] = $key;
            }
        }
        if (!$this->suspendInPlaceEdit && $this->inPlaceEditing() && $inplaceEditMode == 1) {
            return $this->get($key, $replace, $locale, true, $useDB);
        } else {
            if ($useDB !== null) {
                $oldUseDB = $this->useDB;
                $this->useDB = $useDB;
                $retVal = parent::choice($key, $number, $replace, $locale);
                $this->useDB = $oldUseDB;
                return $retVal;
            } else {
                return parent::choice($key, $number, $replace, $locale);
            }
        }
    }
Get a translation according to an integer value.

@param  string $key
@param  int $number
@param  array $replace
@param  string $locale

@return string