5
* Copyright 2010-2013 Horde LLC (http://www.horde.org/)
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.
12
* Horde_Icalendar_Translation is the translation wrapper class for Horde_Icalendar.
14
* @author Jan Schneider <jan@horde.org>
17
class Horde_Icalendar_Translation extends Horde_Translation
20
* Returns the translation of a message.
22
* @var string $message The string to translate.
24
* @return string The string translation, or the original string if no
27
static public function t($message)
29
self::$_domain = 'Horde_Icalendar';
30
self::$_directory = '@data_dir@' == '@'.'data_dir'.'@' ? __DIR__ . '/../../../locale' : '@data_dir@/Horde_Icalendar/locale';
31
return parent::t($message);
35
* Returns the plural translation of a message.
37
* @param string $singular The singular version to translate.
38
* @param string $plural The plural version to translate.
39
* @param integer $number The number that determines singular vs. plural.
41
* @return string The string translation, or the original string if no
44
static public function ngettext($singular, $plural, $number)
46
self::$_domain = 'Horde_Icalendar';
47
self::$_directory = '@data_dir@' == '@'.'data_dir'.'@' ? __DIR__ . '/../../../locale' : '@data_dir@/Horde_Icalendar/locale';
48
return parent::ngettext($singular, $plural, $number);