public function translate(array $units = array(), $direction = 0)
    {
        $lang = $this->loadLanguage();
        if (empty($units)) {
            return $lang['now'];
        }

        $translation = array();
        foreach ($units as $unit => $v) {
            if ($v == 1) {
                $translation[] = sprintf($lang[$unit]['singular'], $v);
            } else {
                $translation[] = sprintf($lang[$unit]['plural'], $v);
            }
        }

        $string = implode($this->config['separator'], $translation);
        if (!$this->config['suffix']) {
            return $string;
        }

        if ($direction > 0) {
            return sprintf($lang['ago'], $string);
        } else {
            return sprintf($lang['left'], $string);
        }
    }