Overview

Packages

  • Kolab
    • Cli

Classes

  • Horde_Kolab_Cli
  • Horde_Kolab_Cli_Data_Ledger
  • Horde_Kolab_Cli_Exception
  • Horde_Kolab_Cli_Module_Account
  • Horde_Kolab_Cli_Module_Base
  • Horde_Kolab_Cli_Module_Data
  • Horde_Kolab_Cli_Module_Folder
  • Horde_Kolab_Cli_Module_Format
  • Horde_Kolab_Cli_Module_Ledger
  • Horde_Kolab_Cli_Module_List
  • Horde_Kolab_Cli_Translation

Interfaces

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