Overview

Packages

  • Compress

Classes

  • Horde_Compress
  • Horde_Compress_Base
  • Horde_Compress_Dbx
  • Horde_Compress_Exception
  • Horde_Compress_Gzip
  • Horde_Compress_Rar
  • Horde_Compress_Tar
  • Horde_Compress_Tnef
  • Horde_Compress_Translation
  • Horde_Compress_Zip
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * Copyright 2010-2012 Horde LLC (http://www.horde.org/)
 4:  *
 5:  * See the enclosed file COPYING for license information (LGPL). If you
 6:  * did not receive this file, see http://www.horde.org/licenses/lgpl21.
 7:  *
 8:  * @category Horde
 9:  * @license  http://www.horde.org/licenses/lgpl21 LGPL 2.1
10:  * @package  Compress
11:  */
12: 
13: /**
14:  * Horde_Compress_Translation is the translation wrapper class for
15:  * horde/Compress.
16:  *
17:  * @author   Jan Schneider <jan@horde.org>
18:  * @category Horde
19:  * @package  Compress
20:  */
21: class Horde_Compress_Translation extends Horde_Translation
22: {
23:     /**
24:      * Returns the translation of a message.
25:      *
26:      * @var string $message  The string to translate.
27:      *
28:      * @return string  The string translation, or the original string if no
29:      *                 translation exists.
30:      */
31:     static public function t($message)
32:     {
33:         self::$_domain = 'Horde_Compress';
34:         self::$_directory = '@data_dir@' == '@'.'data_dir'.'@' ? dirname(__FILE__) . '/../../../locale' : '@data_dir@/Horde_Compress/locale';
35:         return parent::t($message);
36:     }
37: 
38:     /**
39:      * Returns the plural translation of a message.
40:      *
41:      * @param string $singular  The singular version to translate.
42:      * @param string $plural    The plural version to translate.
43:      * @param integer $number   The number that determines singular vs. plural.
44:      *
45:      * @return string  The string translation, or the original string if no
46:      *                 translation exists.
47:      */
48:     static public function ngettext($singular, $plural, $number)
49:     {
50:         self::$_domain = 'Horde_Compress';
51:         self::$_directory = '@data_dir@' == '@'.'data_dir'.'@' ? dirname(__FILE__) . '/../../../locale' : '@data_dir@/Horde_Compress/locale';
52:         return parent::ngettext($singular, $plural, $number);
53:     }
54: }
55: 
API documentation generated by ApiGen