[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/horde/framework/Horde/Translation/ -> Handler.php (source)

   1  <?php
   2  /**
   3   * @package Translation
   4   *
   5   * Copyright 2010-2014 Horde LLC (http://www.horde.org/)
   6   *
   7   * See the enclosed file COPYING for license information (LGPL). If you
   8   * did not receive this file, see http://www.horde.org/licenses/lgpl21.
   9   */
  10  
  11  /**
  12   * The Horde_Translation_Handler interface defines the interface for any
  13   * classes providing translations.
  14   *
  15   * @author  Jan Schneider <jan@horde.org>
  16   * @package Translation
  17   */
  18  interface Horde_Translation_Handler
  19  {
  20      /**
  21       * Returns the translation of a message.
  22       *
  23       * @var string $message  The string to translate.
  24       *
  25       * @return string  The string translation, or the original string if no
  26       *                 translation exists.
  27       */
  28      public function t($message);
  29  
  30      /**
  31       * Returns the plural translation of a message.
  32       *
  33       * @param string $singular  The singular version to translate.
  34       * @param string $plural    The plural version to translate.
  35       * @param integer $number   The number that determines singular vs. plural.
  36       *
  37       * @return string  The string translation, or the original string if no
  38       *                 translation exists.
  39       */
  40      public function ngettext($singular, $plural, $number);
  41  }


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1