Author: Jan Schneider (jan@horde.org)
Inheritance: extends Horde_Translation_Autodetect
Ejemplo n.º 1
0
 /**
  */
 public function __construct($app, $params = array())
 {
     parent::__construct($app, $params);
     $this->_name = Horde_Service_Scribd_Translation::t("Scribd Documents");
 }
Ejemplo n.º 2
0
 /**
  * Returns the plural translation of a message.
  *
  * @param string $singular  The singular version to translate.
  * @param string $plural    The plural version to translate.
  * @param integer $number   The number that determines singular vs. plural.
  *
  * @return string  The string translation, or the original string if no
  *                 translation exists.
  */
 public static function ngettext($singular, $plural, $number)
 {
     self::$_domain = 'Horde_Service_Scribd';
     self::$_directory = '@data_dir@' == '@' . 'data_dir' . '@' ? __DIR__ . '/../../../locale' : '@data_dir@/Horde_Service_Scribd/locale';
     return parent::ngettext($singular, $plural, $number);
 }