[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Copyright 2010-2014 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 * @copyright 2010-2014 Horde LLC 10 * @license http://www.horde.org/licenses/lgpl21 LGPL 11 * @package Imap_Client 12 */ 13 14 /** 15 * Translation wrapper class for Horde_Imap_Client. 16 * 17 * @author Michael Slusarz <slusarz@horde.org> 18 * @category Horde 19 * @copyright 2010-2014 Horde LLC 20 * @license http://www.horde.org/licenses/lgpl21 LGPL 21 * @package Imap_Client 22 */ 23 class Horde_Imap_Client_Translation extends Horde_Translation 24 { 25 /** 26 * Returns the translation of a message. 27 * 28 * @var string $message The string to translate. 29 * 30 * @return string The string translation, or the original string if no 31 * translation exists. 32 */ 33 static public function t($message) 34 { 35 self::$_domain = 'Horde_Imap_Client'; 36 self::$_directory = '@data_dir@' == '@'.'data_dir'.'@' ? __DIR__ . '/../../../../locale' : '@data_dir@/Horde_Imap_Client/locale'; 37 return parent::t($message); 38 } 39 40 /** 41 * Returns the plural translation of a message. 42 * 43 * @param string $singular The singular version to translate. 44 * @param string $plural The plural version to translate. 45 * @param integer $number The number that determines singular vs. plural. 46 * 47 * @return string The string translation, or the original string if no 48 * translation exists. 49 */ 50 static public function ngettext($singular, $plural, $number) 51 { 52 self::$_domain = 'Horde_Imap_Client'; 53 self::$_directory = '@data_dir@' == '@'.'data_dir'.'@' ? __DIR__ . '/../../../../locale' : '@data_dir@/Horde_Imap_Client/locale'; 54 return parent::ngettext($singular, $plural, $number); 55 } 56 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |