Overview

Packages

  • None
  • SyncMl

Classes

  • Horde_SyncMl
  • Horde_SyncMl_Backend
  • Horde_SyncMl_Backend_Horde
  • Horde_SyncMl_Command
  • Horde_SyncMl_Command_Alert
  • Horde_SyncMl_Command_Final
  • Horde_SyncMl_Command_Get
  • Horde_SyncMl_Command_Map
  • Horde_SyncMl_Command_Put
  • Horde_SyncMl_Command_Replace
  • Horde_SyncMl_Command_Results
  • Horde_SyncMl_Command_Status
  • Horde_SyncMl_Command_Sync
  • Horde_SyncMl_Command_SyncHdr
  • Horde_SyncMl_ContentHandler
  • Horde_SyncMl_DataStore
  • Horde_SyncMl_Device
  • Horde_SyncMl_Device_Nokia
  • Horde_SyncMl_Device_P800
  • Horde_SyncMl_Device_sync4j
  • Horde_SyncMl_Device_Sync4JMozilla
  • Horde_SyncMl_Device_Synthesis
  • Horde_SyncMl_DeviceInfo
  • Horde_SyncMl_Property
  • Horde_SyncMl_PropertyParameter
  • Horde_SyncMl_State
  • Horde_SyncMl_Sync
  • Horde_SyncMl_SyncElement
  • Horde_SyncMl_Translation
  • Horde_SyncMl_XmlOutput
  • 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:  * @package SyncMl
 9:  */
10: 
11: /**
12:  * Horde_SyncMl_Translation is the translation wrapper class for Horde_SyncMl.
13:  *
14:  * @author  Jan Schneider <jan@horde.org>
15:  * @package SyncMl
16:  */
17: class Horde_SyncMl_Translation extends Horde_Translation
18: {
19:     /**
20:      * Returns the translation of a message.
21:      *
22:      * @var string $message  The string to translate.
23:      *
24:      * @return string  The string translation, or the original string if no
25:      *                 translation exists.
26:      */
27:     static public function t($message)
28:     {
29:         self::$_domain = 'Horde_SyncMl';
30:         self::$_directory = '@data_dir@' == '@'.'data_dir'.'@' ? dirname(__FILE__) . '/../locale' : '@data_dir@/Horde_SyncMl/locale';
31:         return parent::t($message);
32:     }
33: 
34:     /**
35:      * Returns the plural translation of a message.
36:      *
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.
40:      *
41:      * @return string  The string translation, or the original string if no
42:      *                 translation exists.
43:      */
44:     static public function ngettext($singular, $plural, $number)
45:     {
46:         self::$_domain = 'Horde_SyncMl';
47:         self::$_directory = '@data_dir@' == '@'.'data_dir'.'@' ? dirname(__FILE__) . '/../locale' : '@data_dir@/Horde_SyncMl/locale';
48:         return parent::ngettext($singular, $plural, $number);
49:     }
50: }
51: 
API documentation generated by ApiGen