package.xml0000664000076600000240000010641212231336712010120 0ustar Horde_Alarm pear.horde.org Horde Alarm Libraries An interface to deal with reminders, alarms and notifications through a standardized API. The following notification methods are currently available: standard Horde notifications, popups, emails. Jan Schneider jan jan@horde.org yes 2013-10-21 2.0.5 1.0.0 stable stable LGPL-2.1 * [mjr] Fix initializing Alarms when using PDO_Oci or PDO_PostgreSQL. 5.3.0 1.7.0 Horde_Date pear.horde.org 2.0.0 3.0.0alpha1 3.0.0alpha1 Horde_Exception pear.horde.org 2.0.0 3.0.0alpha1 3.0.0alpha1 Horde_Translation pear.horde.org 2.0.0 3.0.0alpha1 3.0.0alpha1 Horde_Db pear.horde.org 2.0.0 3.0.0alpha1 3.0.0alpha1 Horde_Log pear.horde.org 2.0.0 3.0.0alpha1 3.0.0alpha1 Horde_Mail pear.horde.org 2.0.0 3.0.0alpha1 3.0.0alpha1 Horde_Mime pear.horde.org 2.0.0 3.0.0alpha1 3.0.0alpha1 Horde_Notification pear.horde.org 2.0.0 3.0.0alpha1 3.0.0alpha1 Horde_Perms pear.horde.org 2.0.0 3.0.0alpha1 3.0.0alpha1 Horde_Prefs pear.horde.org 2.0.0 3.0.0alpha1 3.0.0alpha1 Horde_Test pear.horde.org 2.1.0 3.0.0alpha1 3.0.0alpha1 1.0.0alpha1 1.0.0 alpha alpha 2011-03-08 LGPL-2.1 * First alpha release for Horde 4. 1.0.0beta1 1.0.0 beta beta 2011-03-16 LGPL-2.1 * First beta release for Horde 4. 1.0.0RC1 1.0.0 beta beta 2011-03-22 LGPL-2.1 * First release candidate for Horde 4. 1.0.0RC2 1.0.0 beta beta 2011-03-29 LGPL-2.1 * Second release candidate for Horde 4. * [jan] Fix fatal error in desktop notifications (Bug #9727). 1.0.0 1.0.0 stable stable 2011-04-06 LGPL-2.1 * First stable release for Horde 4. * [jan] Remove last bits of Core dependency. 1.0.1 1.0.0 stable stable 2011-05-18 LGPL-2.1 * [jan] Updated Spanish translation. 1.0.2 1.0.0 stable stable 2011-06-01 LGPL-2.1 * [jan] Updated Slovak translation. 1.0.3 1.0.0 stable stable 2011-07-05 LGPL-2.1 * [jan] Update Lithuanian translation. * [jan] Update Brazilian Portuguese translation. 1.0.4 1.0.0 stable stable 2011-07-27 LGPL-2.1 * [jan] Update Latvian translation. 1.0.5 1.0.0 stable stable 2011-11-08 LGPL-2.1 * [jan] Update Croatian translation. 1.0.6 1.0.0 stable stable 2011-11-22 LGPL-2.1 * [jan] Update Estonian translation. 1.0.7 1.0.0 stable stable 2011-12-06 LGPL-2.1 * [jan] Catch exceptions from Horde_Mime when sending alarm messages (Bug #10388). 1.0.8 1.0.0 stable stable 2011-12-06 LGPL-2.1 * [mjr] Fix issue that prevented Desktop Notifications from displaying. 2.0.0alpha1 1.0.0 alpha stable 2012-07-05 LGPL-2.1 * First alpha release for Horde 5. 2.0.0beta1 1.0.0 beta stable 2012-07-19 LGPL-2.1 * First beta release for Horde 5. 2.0.0beta2 1.0.0 beta stable 2012-08-29 LGPL-2.1 * [jan] Fix Desktop notifications (Bug #10810). 2.0.0RC1 1.0.0 beta stable 2012-10-26 LGPL-2.1 * [mjr] Fix a bug that broke Desktop Notifications. 2.0.0 1.0.0 stable stable 2012-10-30 LGPL-2.1 * First stable release for Horde 5. * [jan] Update Polish translation (Krzysztof Kozera <krzysztof113@o2.pl>). 2.0.1 1.0.0 stable stable 2012-11-06 LGPL-2.1 * [jan] Update Dutch translation (Arjen de Korte <build+horde@de-korte.org>). 2.0.2 1.0.0 stable stable 2012-11-19 LGPL-2.1 * [mms] Use new Horde_Test layout. 2.0.3 1.0.0 stable stable 2013-01-09 LGPL-2.1 * [jan] Update Basque translation (Ibon Igartua <ibon.igartua@ehu.es>). 2.0.4 1.0.0 stable stable 2013-03-05 LGPL-2.1 * [jan] Fix unit tests. 2.0.5 1.0.0 stable stable 2013-10-21 LGPL-2.1 * [mjr] Fix initializing Alarms when using PDO_Oci or PDO_PostgreSQL. Horde_Alarm-2.0.5/doc/Horde/Alarm/COPYING0000664000076600000240000005765612231336711014533 0ustar GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Horde_Alarm-2.0.5/lib/Horde/Alarm/Handler/Desktop.php0000664000076600000240000000515712231336711017165 0ustar * @package Alarm */ class Horde_Alarm_Handler_Desktop extends Horde_Alarm_Handler { /** * A notification callback. * * @var callback */ protected $_jsNotify; /** * An icon URL. * * @var string */ protected $_icon; /** * Constructor. * * @param array $params Any parameters that the handler might need. * Required parameter: * - js_notify: A Horde_Notification_Handler * instance. * Optional parameter: * - icon: URL of an icon to display. */ public function __construct(array $params = null) { if (!isset($params['js_notify'])) { throw new InvalidArgumentException('Parameter \'js_notify\' missing.'); } if (!is_callable($params['js_notify'])) { throw new Horde_Alarm_Exception('Parameter \'js_notify\' is not a valid callback.'); } $this->_jsNotify = $params['js_notify']; if (isset($params['icon'])) { $this->_icon = $params['icon']; } } /** * Notifies about an alarm through javscript. * * @param array $alarm An alarm hash. */ public function notify(array $alarm) { $js = sprintf('if(window.webkitNotifications)(function(){function show(){switch(window.webkitNotifications.checkPermission()){case 0:var notify=window.webkitNotifications.createNotification("%s",%s,%s);notify.show();(function(){notify.cancel()}).delay(5);break;case 1:window.webkitNotifications.requestPermission(function(){});break}}show()})()', $this->_icon, Horde_Serialize::serialize($alarm['title'], Horde_Serialize::JSON), isset($alarm['text']) ? Horde_Serialize::serialize($alarm['text'], Horde_Serialize::JSON) : "''"); call_user_func($this->_jsNotify, $js); } /** * Returns a human readable description of the handler. * * @return string */ public function getDescription() { return Horde_Alarm_Translation::t("Desktop notification (with certain browsers)"); } } Horde_Alarm-2.0.5/lib/Horde/Alarm/Handler/Mail.php0000664000076600000240000001107012231336711016425 0ustar * @package Alarm */ class Horde_Alarm_Handler_Mail extends Horde_Alarm_Handler { /** * An identity factory. * * @var Horde_Core_Factory_Identity */ protected $_identity; /** * A Horde_Mail_Transport object. * * @var Horde_Mail_Transport */ protected $_mail; /** * Constructor. * * @param array $params Any parameters that the handler might need. * Required parameter: * - identity: An identity factory that implements * create(). * - mail: A Horde_Mail_Transport instance. * * @throws Horde_Alarm_Exception */ public function __construct(array $params = null) { foreach (array('identity', 'mail') as $param) { if (!isset($params[$param])) { throw new Horde_Alarm_Exception('Parameter \'' . $param . '\' missing.'); } } if (!method_exists($params['identity'], 'create')) { throw new Horde_Alarm_Exception('Parameter \'identity\' does not have a method create().'); } if (!($params['mail'] instanceof Horde_Mail_Transport)) { throw new Horde_Alarm_Exception('Parameter \'mail\' is not a Horde_Mail_Transport object.'); } $this->_identity = $params['identity']; $this->_mail = $params['mail']; } /** * Notifies about an alarm by e-mail. * * @param array $alarm An alarm hash. * * @throws Horde_Alarm_Exception */ public function notify(array $alarm) { if (!empty($alarm['internal']['mail']['sent'])) { return; } if (empty($alarm['params']['mail']['email'])) { if (empty($alarm['user'])) { return; } $email = $this->_identity ->create($alarm['user']) ->getDefaultFromAddress(true); } else { $email = $alarm['params']['mail']['email']; } try { $mail = new Horde_Mime_Mail(array( 'Subject' => $alarm['title'], 'To' => $email, 'From' => $email, 'Auto-Submitted' => 'auto-generated', 'X-Horde-Alarm' => $alarm['title'])); if (isset($alarm['params']['mail']['mimepart'])) { $mail->setBasePart($alarm['params']['mail']['mimepart']); } elseif (empty($alarm['params']['mail']['body'])) { $mail->setBody($alarm['text']); } else { $mail->setBody($alarm['params']['mail']['body']); } $mail->send($this->_mail); } catch (Horde_Mime_Exception $e) { throw new Horde_Alarm_Exception($e); } $alarm['internal']['mail']['sent'] = true; $this->alarm->internal($alarm['id'], $alarm['user'], $alarm['internal']); } /** * Resets the internal status of the handler, so that alarm notifications * are sent again. * * @param array $alarm An alarm hash. */ public function reset(array $alarm) { $alarm['internal']['mail']['sent'] = false; $this->alarm->internal($alarm['id'], $alarm['user'], $alarm['internal']); } /** * Returns a human readable description of the handler. * * @return string */ public function getDescription() { return Horde_Alarm_Translation::t("Email"); } /** * Returns a hash of user-configurable parameters for the handler. * * The parameters are hashes with parameter names as keys and parameter * information as values. The parameter information is a hash with the * following keys: * - type: the parameter type as a preference type. * - desc: a parameter description. * - required: whether this parameter is required. * * @return array */ public function getParameters() { return array( 'email' => array( 'type' => 'text', 'desc' => Horde_Alarm_Translation::t("Email address (optional)"), 'required' => false)); } } Horde_Alarm-2.0.5/lib/Horde/Alarm/Handler/Notify.php0000664000076600000240000000610312231336711017014 0ustar * @package Alarm */ class Horde_Alarm_Handler_Notify extends Horde_Alarm_Handler { /** * A notification handler injector. * * @var object */ protected $_notification; /** * Whether a sound already had been played during the page request. * * @var boolean */ protected $_soundPlayed = false; /** * Constructor. * * @param array $params Any parameters that the handler might need. * Required parameter: * - notification: (object) A factory that implements create() and * returns a Notification object. * * @throws Horde_Alarm_Exception */ public function __construct(array $params = null) { if (!isset($params['notification'])) { throw new Horde_Alarm_Exception('Parameter \'notification\' missing.'); } if (!method_exists($params['notification'], 'create')) { throw new Horde_Alarm_Exception('Parameter \'notification\' does not have a method create().'); } $this->_notification = $params['notification']; } /** * Notifies about an alarm through Horde_Notification. * * @param array $alarm An alarm hash. */ public function notify(array $alarm) { $notification = $this->_notification->create(); $notification->push($alarm['title'], 'horde.alarm', array('alarm' => $alarm)); if (!empty($alarm['params']['notify']['sound']) && !isset($this->_soundPlayed[$alarm['params']['notify']['sound']])) { $notification->attach('audio'); $notification->push($alarm['params']['notify']['sound'], 'audio'); $this->_soundPlayed[$alarm['params']['notify']['sound']] = true; } } /** * Returns a human readable description of the handler. * * @return string */ public function getDescription() { return Horde_Alarm_Translation::t("Inline"); } /** * Returns a hash of user-configurable parameters for the handler. * * The parameters are hashes with parameter names as keys and parameter * information as values. The parameter information is a hash with the * following keys: * - type: the parameter type as a preference type. * - desc: a parameter description. * - required: whether this parameter is required. * * @return array */ public function getParameters() { return array( 'sound' => array( 'type' => 'sound', 'desc' => Horde_Alarm_Translation::t("Play a sound?"), 'required' => false)); } } Horde_Alarm-2.0.5/lib/Horde/Alarm/Exception.php0000664000076600000240000000065112231336711016127 0ustar * @category Horde * @package Alarm */ class Horde_Alarm_Exception extends Horde_Exception_Wrapped { } Horde_Alarm-2.0.5/lib/Horde/Alarm/Handler.php0000664000076600000240000000320512231336711015544 0ustar * @package Alarm */ abstract class Horde_Alarm_Handler { /** * The alarm object to that this handler is attached. * * Horde_Alarm */ public $alarm; /** * Notifies about an alarm. * * @param array $alarm An alarm hash. * * @throws Horde_Alarm_Exception */ abstract public function notify(array $alarm); /** * Resets the internal status of the handler, so that alarm notifications * are sent again. * * @param array $alarm An alarm hash. */ public function reset(array $alarm) { } /** * Returns a human readable description of the handler. * * @return string */ abstract public function getDescription(); /** * Returns a hash of user-configurable parameters for the handler. * * The parameters are hashes with parameter names as keys and parameter * information as values. The parameter information is a hash with the * following keys: * - type: the parameter type as a preference type. * - desc: a parameter description. * - required: whether this parameter is required. * * @return array */ public function getParameters() { return array(); } } Horde_Alarm-2.0.5/lib/Horde/Alarm/Null.php0000664000076600000240000001137612231336711015111 0ustar * @package Alarm */ class Horde_Alarm_Null extends Horde_Alarm { /** * Returns a list of alarms from the backend. * * @param Horde_Date $time The time when the alarms should be active. * @param string $user Return alarms for this user, all users if * null, or global alarms if empty. * * @return array A list of alarm hashes. * @throws Horde_Alarm_Exception */ protected function _list($user, Horde_Date $time) { return array(); } /** * Returns a list of all global alarms from the backend. * * @return array A list of alarm hashes. */ protected function _global() { return array(); } /** * Returns an alarm hash from the backend. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * * @return array An alarm hash. * @throws Horde_Alarm_Exception */ protected function _get($id, $user) { throw new Horde_Alarm_Exception('Alarm not found'); } /** * Adds an alarm hash to the backend. * * @param array $alarm An alarm hash. * * @throws Horde_Alarm_Exception */ protected function _add(array $alarm) { } /** * Updates an alarm hash in the backend. * * @param array $alarm An alarm hash. * @param boolean $keepsnooze Whether to keep the snooze value unchanged. * * @throws Horde_Alarm_Exception */ protected function _update(array $alarm, $keepsnooze = false) { } /** * Updates internal alarm properties, i.e. properties not determined by * the application setting the alarm. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * @param array $internal A hash with the internal data. * * @throws Horde_Alarm_Exception */ public function internal($id, $user, array $internal) { } /** * Returns whether an alarm with the given id exists already. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * * @return boolean True if the specified alarm exists. * @throws Horde_Alarm_Exception */ protected function _exists($id, $user) { return false; } /** * Delays (snoozes) an alarm for a certain period. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * @param Horde_Date $snooze The snooze time. * * @throws Horde_Alarm_Exception */ protected function _snooze($id, $user, Horde_Date $snooze) { } /** * Returns whether an alarm is snoozed. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * @param Horde_Date $time The time when the alarm may be snoozed. * * @return boolean True if the alarm is snoozed. * @throws Horde_Alarm_Exception */ protected function _isSnoozed($id, $user, Horde_Date $time) { return false; } /** * Dismisses an alarm. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * * @throws Horde_Alarm_Exception */ protected function _dismiss($id, $user) { } /** * Deletes an alarm from the backend. * * @param string $id The alarm's unique id. * @param string $user The alarm's user. All users' alarms if null. * * @throws Horde_Alarm_Exception */ protected function _delete($id, $user = null) { } /** * Garbage collects old alarms in the backend. * * @throws Horde_Alarm_Exception */ protected function _gc() { } /** * Attempts to initialize the backend. * * @throws Horde_Alarm_Exception */ public function initialize() { } /** * Converts a value from the driver's charset. * * @param mixed $value Value to convert. * * @return mixed Converted value. */ protected function _fromDriver($value) { return $value; } /** * Converts a value to the driver's charset. * * @param mixed $value Value to convert. * * @return mixed Converted value. */ protected function _toDriver($value) { return $value; } } Horde_Alarm-2.0.5/lib/Horde/Alarm/Object.php0000664000076600000240000001723412231336711015404 0ustar * @package Alarm */ class Horde_Alarm_Object extends Horde_Alarm { protected $_alarms = array(); /** * Returns a certain alarm. * * @param string $id The alarm's unique id. * @param string $user The alarm's user. * * @return array An alarm hash. */ protected function &_findAlarm($id, $user) { foreach ($this->_alarms as &$alarm) { if ($alarm['id'] == $id && $alarm['user'] === $user) { return $alarm; } } $result = null; return $result; } /** * Sorts a number of alarms in chronological order. */ protected function _sortAlarms($a, $b) { $cmp = $a['start']->compareDateTime($b['start']); if ($cmp) { return $cmp; } if (empty($a['end'])) { return -1; } if (empty($b['end'])) { return 1; } return $a['end']->compareDateTime($b['end']); } /** * Returns a list of alarms from the backend. * * @param Horde_Date $time The time when the alarms should be active. * @param string $user Return alarms for this user, all users if * null, or global alarms if empty. * * @return array A list of alarm hashes. * @throws Horde_Alarm_Exception */ protected function _list($user, Horde_Date $time) { $alarms = array(); foreach ($this->_alarms as $alarm) { if (empty($alarm['dismissed']) && ((empty($alarm['snooze']) && $alarm['start']->compareDateTime($time) <= 0) || $alarm['snooze']->compareDateTime($time) <= 0) && (empty($alarm['end']) || $alarm['end']->compareDateTime($time) >= 0) && (is_null($user) || empty($alarm['uid']) || $alarm['uid'] = $user)) { $alarms[] = $alarm; } } usort($alarms, array($this, '_sortAlarms')); return $alarms; } /** * Returns a list of all global alarms from the backend. * * @return array A list of alarm hashes. */ protected function _global() { return array(); } /** * Returns an alarm hash from the backend. * * @param string $id The alarm's unique id. * @param string $user The alarm's user. * * @return array An alarm hash. * @throws Horde_Alarm_Exception */ protected function _get($id, $user) { $alarm = $this->_findAlarm($id, $user); if (!$alarm) { throw new Horde_Alarm_Exception('Alarm not found'); } return $alarm; } /** * Adds an alarm hash to the backend. * * @param array $alarm An alarm hash. */ protected function _add(array $alarm) { $alarm = array_merge( array('user' => '', 'end' => null, 'text' => null, 'snooze' => null, 'internal' => null), $alarm); $this->_alarms[] = $alarm; } /** * Updates an alarm hash in the backend. * * @param array $alarm An alarm hash. * @param boolean $keepsnooze Whether to keep the snooze value unchanged. */ protected function _update(array $alarm, $keepsnooze = false) { $user = isset($alarm['user']) ? $alarm['user'] : null; $al = &$this->_findAlarm($alarm['id'], $user); foreach (array('start', 'end', 'methods', 'params', 'title', 'text') as $property) { $al[$property] = isset($alarm[$property]) ? $alarm[$property] : null; } if (!$keepsnooze) { $al['snooze'] = null; } } /** * Updates internal alarm properties, i.e. properties not determined by * the application setting the alarm. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * @param array $internal A hash with the internal data. * * @throws Horde_Alarm_Exception */ public function internal($id, $user, array $internal) { $alarm = &$this->_findAlarm($id, $user); $alarm['internal'] = $internal; } /** * Returns whether an alarm with the given id exists already. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * * @return boolean True if the specified alarm exists. * @throws Horde_Alarm_Exception */ protected function _exists($id, $user) { return (bool)$this->_findAlarm($id, $user); } /** * Delays (snoozes) an alarm for a certain period. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * @param Horde_Date $snooze The snooze time. * * @throws Horde_Alarm_Exception */ protected function _snooze($id, $user, Horde_Date $snooze) { $alarm = &$this->_findAlarm($id, $user); $alarm['snooze'] = $snooze; } /** * Returns whether an alarm is snoozed. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * @param Horde_Date $time The time when the alarm may be snoozed. * * @return boolean True if the alarm is snoozed. * @throws Horde_Alarm_Exception */ protected function _isSnoozed($id, $user, Horde_Date $time) { $alarm = $this->_findAlarm($id, $user); return !empty($alarm['dismissed']) || (isset($alarm['snooze']) && $alarm['snooze']->compareDateTime($time) >= 0); } /** * Dismisses an alarm. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * * @throws Horde_Alarm_Exception */ protected function _dismiss($id, $user) { $alarm = &$this->_findAlarm($id, $user); $alarm['dismissed'] = true; } /** * Deletes an alarm from the backend. * * @param string $id The alarm's unique id. * @param string $user The alarm's user. All users' alarms if null. * * @throws Horde_Alarm_Exception */ protected function _delete($id, $user = null) { $newAlarms = array(); foreach ($this->_alarms as &$alarm) { if ($alarm['id'] != $id || (!is_null($user) && $alarm['user'] != $user)) { $newAlarms[] = $alarm; } } $this->_alarms = $newAlarms; } /** * Garbage collects old alarms in the backend. * * @throws Horde_Alarm_Exception */ protected function _gc() { } /** * Attempts to initialize the backend. * * @throws Horde_Alarm_Exception */ public function initialize() { } /** * Converts a value from the driver's charset. * * @param mixed $value Value to convert. * * @return mixed Converted value. */ protected function _fromDriver($value) { return $value; } /** * Converts a value to the driver's charset. * * @param mixed $value Value to convert. * * @return mixed Converted value. */ protected function _toDriver($value) { return $value; } } Horde_Alarm-2.0.5/lib/Horde/Alarm/Sql.php0000664000076600000240000003453712231336711014742 0ustar * @package Alarm */ class Horde_Alarm_Sql extends Horde_Alarm { /** * Handle for the current database connection. * * @var Horde_Db_Adapter */ protected $_db; /** * Constructor. * * @param array $params Configuration parameters: *
     * 'db' - (Horde_Db_Adapter) [REQUIRED] The DB instance.
     * 'table' - (string) The name of the alarm table in 'database'.
     *           DEFAULT: 'horde_alarms'
     * 
* * @throws Horde_Alarm_Exception */ public function __construct(array $params = array()) { if (!isset($params['db'])) { throw new Horde_Alarm_Exception('Missing db parameter.'); } $this->_db = $params['db']; unset($params['db']); $params = array_merge(array( 'table' => 'horde_alarms' ), $params); parent::__construct($params); } /** * Returns a list of alarms from the backend. * * @param string $user Return alarms for this user, all users if * null, or global alarms if empty. * @param Horde_Date $time The time when the alarms should be active. * * @return array A list of alarm hashes. * @throws Horde_Alarm_Exception */ protected function _list($user, Horde_Date $time) { $query = sprintf('SELECT alarm_id, alarm_uid, alarm_start, alarm_end, alarm_methods, alarm_params, alarm_title, alarm_text, alarm_snooze, alarm_internal FROM %s WHERE alarm_dismissed = 0 AND ((alarm_snooze IS NULL AND alarm_start <= ?) OR alarm_snooze <= ?) AND (alarm_end IS NULL OR alarm_end >= ?)%s ORDER BY alarm_start, alarm_end', $this->_params['table'], is_null($user) ? '' : ' AND (alarm_uid IS NULL OR alarm_uid = ? OR alarm_uid = ?)'); $dt = $time->setTimezone('UTC')->format('Y-m-d\TH:i:s'); $values = array($dt, $dt, $dt); if (!is_null($user)) { $values[] = ''; $values[] = (string)$user; } try { $result = $this->_db->selectAll($query, $values); } catch (Horde_Db_Exception $e) { throw new Horde_Alarm_Exception($e); } $alarms = array(); foreach ($result as $val) { $alarms[] = $this->_getHash($val); } return $alarms; } /** * Returns a list of all global alarms from the backend. * * @return array A list of alarm hashes. * @throws Horde_Alarm_Exception */ protected function _global() { $query = sprintf('SELECT alarm_id, alarm_uid, alarm_start, alarm_end, alarm_methods, alarm_params, alarm_title, alarm_text, alarm_snooze, alarm_internal FROM %s WHERE alarm_uid IS NULL OR alarm_uid = \'\' ORDER BY alarm_start, alarm_end', $this->_params['table']); try { $result = $this->_db->selectAll($query); } catch (Horde_Db_Exception $e) { throw new Horde_Alarm_Exception($e); } $alarms = array(); foreach ($result as $val) { $alarms[] = $this->_getHash($val); } return $alarms; } /** */ protected function _getHash(array $alarm) { $params = base64_decode($alarm['alarm_params']); if (!strlen($params) && strlen($alarm['alarm_params'])) { $params = $alarm['alarm_params']; } return array( 'id' => $alarm['alarm_id'], 'user' => $alarm['alarm_uid'], 'start' => new Horde_Date($alarm['alarm_start'], 'UTC'), 'end' => empty($alarm['alarm_end']) ? null : new Horde_Date($alarm['alarm_end'], 'UTC'), 'methods' => @unserialize($alarm['alarm_methods']), 'params' => @unserialize($params), 'title' => $this->_fromDriver($alarm['alarm_title']), 'text' => $this->_fromDriver($alarm['alarm_text']), 'snooze' => empty($alarm['alarm_snooze']) ? null : new Horde_Date($alarm['alarm_snooze'], 'UTC'), 'internal' => empty($alarm['alarm_internal']) ? null : @unserialize($alarm['alarm_internal']) ); } /** * Returns an alarm hash from the backend. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * * @return array An alarm hash. * @throws Horde_Alarm_Exception */ protected function _get($id, $user) { $query = sprintf('SELECT alarm_id, alarm_uid, alarm_start, alarm_end, alarm_methods, alarm_params, alarm_title, alarm_text, alarm_snooze, alarm_internal FROM %s WHERE alarm_id = ? AND %s', $this->_params['table'], !empty($user) ? 'alarm_uid = ?' : '(alarm_uid = ? OR alarm_uid IS NULL)'); try { $alarm = $this->_db->selectOne($query, array($id, $user)); } catch (Horde_Db_Exception $e) { throw new Horde_Alarm_Exception($e); } if (empty($alarm)) { throw new Horde_Alarm_Exception('Alarm not found'); } return $this->_getHash($alarm); } /** * Adds an alarm hash to the backend. * * @param array $alarm An alarm hash. * * @throws Horde_Alarm_Exception */ protected function _add(array $alarm) { $query = sprintf('INSERT INTO %s (alarm_id, alarm_uid, alarm_start, alarm_end, alarm_methods, alarm_params, alarm_title, alarm_text, alarm_snooze) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)', $this->_params['table']); $values = array( $alarm['id'], isset($alarm['user']) ? $alarm['user'] : '', (string)$alarm['start']->setTimezone('UTC'), empty($alarm['end']) ? null : (string)$alarm['end']->setTimezone('UTC'), serialize($alarm['methods']), base64_encode(serialize($alarm['params'])), $this->_toDriver($alarm['title']), empty($alarm['text']) ? null : $this->_toDriver($alarm['text']), null ); try { $this->_db->insert($query, $values); } catch (Horde_Db_Exception $e) { throw new Horde_Alarm_Exception($e); } } /** * Updates an alarm hash in the backend. * * @param array $alarm An alarm hash. * @param boolean $keepsnooze Whether to keep the snooze value unchanged. * * @throws Horde_Alarm_Exception */ protected function _update(array $alarm, $keepsnooze = false) { $query = sprintf('UPDATE %s set alarm_start = ?, alarm_end = ?, alarm_methods = ?, alarm_params = ?, alarm_title = ?, alarm_text = ?%s WHERE alarm_id = ? AND %s', $this->_params['table'], $keepsnooze ? '' : ', alarm_snooze = NULL, alarm_dismissed = 0', isset($alarm['user']) ? 'alarm_uid = ?' : '(alarm_uid = ? OR alarm_uid IS NULL)'); $values = array((string)$alarm['start']->setTimezone('UTC'), empty($alarm['end']) ? null : (string)$alarm['end']->setTimezone('UTC'), serialize($alarm['methods']), base64_encode(serialize($alarm['params'])), $this->_toDriver($alarm['title']), empty($alarm['text']) ? null : $this->_toDriver($alarm['text']), $alarm['id'], isset($alarm['user']) ? $alarm['user'] : ''); try { $this->_db->update($query, $values); } catch (Horde_Db_Exception $e) { throw new Horde_Alarm_Exception($e); } } /** * Updates internal alarm properties, i.e. properties not determined by * the application setting the alarm. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * @param array $internal A hash with the internal data. * * @throws Horde_Alarm_Exception */ public function internal($id, $user, array $internal) { $query = sprintf('UPDATE %s set alarm_internal = ? WHERE alarm_id = ? AND %s', $this->_params['table'], !empty($user) ? 'alarm_uid = ?' : '(alarm_uid = ? OR alarm_uid IS NULL)'); $values = array(serialize($internal), $id, $user); try { $this->_db->update($query, $values); } catch (Horde_Db_Exception $e) { throw new Horde_Alarm_Exception($e); } } /** * Returns whether an alarm with the given id exists already. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * * @return boolean True if the specified alarm exists. * @throws Horde_Alarm_Exception */ protected function _exists($id, $user) { $query = sprintf('SELECT 1 FROM %s WHERE alarm_id = ? AND %s', $this->_params['table'], !empty($user) ? 'alarm_uid = ?' : '(alarm_uid = ? OR alarm_uid IS NULL)'); try { return ($this->_db->selectValue($query, array($id, $user)) == 1); } catch (Horde_Db_Exception $e) { throw new Horde_Alarm_Exception($e); } } /** * Delays (snoozes) an alarm for a certain period. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * @param Horde_Date $snooze The snooze time. * * @throws Horde_Alarm_Exception */ protected function _snooze($id, $user, Horde_Date $snooze) { $query = sprintf('UPDATE %s set alarm_snooze = ? WHERE alarm_id = ? AND %s', $this->_params['table'], !empty($user) ? 'alarm_uid = ?' : '(alarm_uid = ? OR alarm_uid IS NULL)'); $values = array((string)$snooze->setTimezone('UTC'), $id, $user); try { $this->_db->update($query, $values); } catch (Horde_Db_Exception $e) { throw new Horde_Alarm_Exception($e); } } /** * Returns whether an alarm is snoozed. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * @param Horde_Date $time The time when the alarm may be snoozed. * * @return boolean True if the alarm is snoozed. * @throws Horde_Alarm_Exception */ protected function _isSnoozed($id, $user, Horde_Date $time) { $query = sprintf('SELECT 1 FROM %s WHERE alarm_id = ? AND %s AND (alarm_dismissed = 1 OR (alarm_snooze IS NOT NULL AND alarm_snooze >= ?))', $this->_params['table'], !empty($user) ? 'alarm_uid = ?' : '(alarm_uid = ? OR alarm_uid IS NULL)'); try { return $this->_db->selectValue($query, array($id, $user, (string)$time->setTimezone('UTC'))); } catch (Horde_Db_Exception $e) { throw new Horde_Alarm_Exception($e); } } /** * Dismisses an alarm. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * * @throws Horde_Alarm_Exception */ protected function _dismiss($id, $user) { $query = sprintf('UPDATE %s set alarm_dismissed = 1 WHERE alarm_id = ? AND %s', $this->_params['table'], !empty($user) ? 'alarm_uid = ?' : '(alarm_uid = ? OR alarm_uid IS NULL)'); $values = array($id, $user); try { $this->_db->update($query, $values); } catch (Horde_Db_Exception $e) { throw new Horde_Alarm_Exception($e); } } /** * Deletes an alarm from the backend. * * @param string $id The alarm's unique id. * @param string $user The alarm's user. All users' alarms if null. * * @throws Horde_Alarm_Exception */ protected function _delete($id, $user = null) { $query = sprintf('DELETE FROM %s WHERE alarm_id = ?', $this->_params['table']); $values = array($id); if (!is_null($user)) { $query .= empty($user) ? ' AND (alarm_uid IS NULL OR alarm_uid = ?)' : ' AND alarm_uid = ?'; $values[] = $user; } try { $this->_db->delete($query, $values); } catch (Horde_Db_Exception $e) { throw new Horde_Alarm_Exception($e); } } /** * Garbage collects old alarms in the backend. */ protected function _gc() { $query = sprintf('DELETE FROM %s WHERE alarm_end IS NOT NULL AND alarm_end < ?', $this->_params['table']); $end = new Horde_Date(time()); $this->_db->delete($query, array((string)$end->setTimezone('UTC'))); } /** * Initialization tasks. * * @throws Horde_Alarm_Exception */ public function initialize() { /* Handle any database specific initialization code to run. */ switch ($this->_db->adapterName()) { case 'PDO_Oci': $query = "ALTER SESSION SET NLS_DATE_FORMAT = 'YYYY-MM-DD HH24:MI:SS'"; $this->_db->select($query); break; case 'PDO_PostgreSQL': $query = "SET datestyle TO 'iso'"; $this->_db->select($query); break; } } /** * Converts a value from the driver's charset. * * @param mixed $value Value to convert. * * @return mixed Converted value. */ protected function _fromDriver($value) { return Horde_String::convertCharset($value, $this->_params['charset'], 'UTF-8'); } /** * Converts a value to the driver's charset. * * @param mixed $value Value to convert. * * @return mixed Converted value. */ protected function _toDriver($value) { return Horde_String::convertCharset($value, 'UTF-8', $this->_params['charset']); } } Horde_Alarm-2.0.5/lib/Horde/Alarm/Translation.php0000664000076600000240000000321212231336711016463 0ustar * @package Alarm */ class Horde_Alarm_Translation extends Horde_Translation { /** * Returns the translation of a message. * * @var string $message The string to translate. * * @return string The string translation, or the original string if no * translation exists. */ static public function t($message) { self::$_domain = 'Horde_Alarm'; self::$_directory = '@data_dir@' == '@'.'data_dir'.'@' ? __DIR__ . '/../../../locale' : '@data_dir@/Horde_Alarm/locale'; return parent::t($message); } /** * Returns the plural translation of a message. * * @param string $singular The singular version to translate. * @param string $plural The plural version to translate. * @param integer $number The number that determines singular vs. plural. * * @return string The string translation, or the original string if no * translation exists. */ static public function ngettext($singular, $plural, $number) { self::$_domain = 'Horde_Alarm'; self::$_directory = '@data_dir@' == '@'.'data_dir'.'@' ? __DIR__ . '/../../../locale' : '@data_dir@/Horde_Alarm/locale'; return parent::ngettext($singular, $plural, $number); } } Horde_Alarm-2.0.5/lib/Horde/Alarm.php0000664000076600000240000003652112231336711014176 0ustar * @package Alarm */ abstract class Horde_Alarm { /** * Logger. * * @var Horde_Log_Logger */ protected $_logger; /** * Alarm loader callback. * * @var mixed */ protected $_loader; /** * Hash containing connection parameters. * * @var array */ protected $_params = array( 'ttl' => 300 ); /** * All registered notification handlers. * * @var array */ protected $_handlers = array(); /** * Whether handler classes have been dynamically loaded already. * * @var boolean */ protected $_handlersLoaded = false; /** * Constructor. * * @param array $params Configuration parameters: *
     * 'logger' - (Horde_Log_Logger) A logger instance.
     * 'ttl' - (integer) Time to live value, in seconds.
     * 
*/ public function __construct(array $params = array()) { if (isset($params['logger'])) { $this->_logger = $params['logger']; unset($params['logger']); } if (isset($params['loader'])) { $this->_loader = $params['loader']; unset($params['loader']); } $this->_params = array_merge($this->_params, $params); } /** * Returns a list of alarms from the backend. * * @param string $user Return alarms for this user, all users if * null, or global alarms if empty. * @param Horde_Date $time The time when the alarms should be active. * Defaults to now. * @param boolean $load Update active alarms from all applications? * @param boolean $preload Preload alarms that go off within the next * ttl time span? * * @return array A list of alarm hashes. * @throws Horde_Alarm_Exception */ public function listAlarms($user = null, Horde_Date $time = null, $load = false, $preload = true) { if (empty($time)) { $time = new Horde_Date(time()); } if ($load && is_callable($this->_loader)) { call_user_func($this->_loader, $user, $preload); } $alarms = $this->_list($user, $time); foreach (array_keys($alarms) as $alarm) { if (isset($alarms[$alarm]['mail']['body'])) { $alarms[$alarm]['mail']['body'] = $this->_fromDriver($alarms[$alarm]['mail']['body']); } } return $alarms; } /** * Returns a list of alarms from the backend. * * @param Horde_Date $time The time when the alarms should be active. * @param string $user Return alarms for this user, all users if * null, or global alarms if empty. * * @return array A list of alarm hashes. * @throws Horde_Alarm_Exception */ abstract protected function _list($user, Horde_Date $time); /** * Returns a list of all global alarms from the backend. * * @return array A list of alarm hashes. * @throws Horde_Alarm_Exception */ public function globalAlarms() { $alarms = $this->_global(); foreach (array_keys($alarms) as $alarm) { if (isset($alarms[$alarm]['mail']['body'])) { $alarms[$alarm]['mail']['body'] = $this->_fromDriver($alarms[$alarm]['mail']['body']); } } return $alarms; } /** * Returns a list of all global alarms from the backend. * * @return array A list of alarm hashes. */ abstract protected function _global(); /** * Returns an alarm hash from the backend. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * * @return array An alarm hash. Contains the following: *
     * id: Unique alarm id.
     * user: The alarm's user. Empty if a global alarm.
     * start: The alarm start as a Horde_Date.
     * end: The alarm end as a Horde_Date.
     * methods: The notification methods for this alarm.
     * params: The paramters for the notification methods.
     * title: The alarm title.
     * text: An optional alarm description.
     * snooze: The snooze time (next time) of the alarm as a Horde_Date.
     * internal: Holds internally used data.
     * 
* @throws Horde_Alarm_Exception */ public function get($id, $user) { $alarm = $this->_get($id, $user); if (isset($alarm['mail']['body'])) { $alarm['mail']['body'] = $this->_fromDriver($alarm['mail']['body']); } return $alarm; } /** * Returns an alarm hash from the backend. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * * @return array An alarm hash. * @throws Horde_Alarm_Exception */ abstract protected function _get($id, $user); /** * Stores an alarm hash in the backend. * * The alarm will be added if it doesn't exist, and updated otherwise. * * @param array $alarm An alarm hash. See self::get() for format. * @param boolean $keep Whether to keep the snooze value and notification * status unchanged. If true, the alarm will get * "un-snoozed", and notifications (like mails) are * sent again. * * @throws Horde_Alarm_Exception */ public function set(array $alarm, $keep = false) { if (isset($alarm['mail']['body'])) { $alarm['mail']['body'] = $this->_toDriver($alarm['mail']['body']); } if ($this->exists($alarm['id'], isset($alarm['user']) ? $alarm['user'] : '')) { $this->_update($alarm, $keep); if (!$keep) { foreach ($this->_handlers as &$handler) { $handler->reset($alarm); } } } else { $this->_add($alarm); } } /** * Adds an alarm hash to the backend. * * @param array $alarm An alarm hash. * * @throws Horde_Alarm_Exception */ abstract protected function _add(array $alarm); /** * Updates an alarm hash in the backend. * * @param array $alarm An alarm hash. * @param boolean $keepsnooze Whether to keep the snooze value unchanged. * * @throws Horde_Alarm_Exception */ abstract protected function _update(array $alarm, $keepsnooze = false); /** * Updates internal alarm properties, i.e. properties not determined by * the application setting the alarm. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * @param array $internal A hash with the internal data. * * @throws Horde_Alarm_Exception */ abstract public function internal($id, $user, array $internal); /** * Returns whether an alarm with the given id exists already. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * * @return boolean True if the specified alarm exists. */ public function exists($id, $user) { try { return $this->_exists($id, $user); } catch (Horde_Alarm_Exception $e) { return false; } } /** * Returns whether an alarm with the given id exists already. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * * @return boolean True if the specified alarm exists. * @throws Horde_Alarm_Exception */ abstract protected function _exists($id, $user); /** * Delays (snoozes) an alarm for a certain period. * * @param string $id The alarm's unique id. * @param string $user The notified user. * @param integer $minutes The delay in minutes. A negative value * dismisses the alarm completely. * * @throws Horde_Alarm_Exception */ public function snooze($id, $user, $minutes) { if (empty($user)) { throw new Horde_Alarm_Exception('This alarm cannot be snoozed.'); } $alarm = $this->get($id, $user); if ($alarm) { if ($minutes > 0) { $alarm['snooze'] = new Horde_Date(time()); $alarm['snooze']->min += $minutes; $this->_snooze($id, $user, $alarm['snooze']); return; } $this->_dismiss($id, $user); } } /** * Delays (snoozes) an alarm for a certain period. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * @param Horde_Date $snooze The snooze time. * * @throws Horde_Alarm_Exception */ abstract protected function _snooze($id, $user, Horde_Date $snooze); /** * Returns whether an alarm is snoozed. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * @param Horde_Date $time The time when the alarm may be snoozed. * Defaults to now. * * @return boolean True if the alarm is snoozed. * * @throws Horde_Alarm_Exception */ public function isSnoozed($id, $user, Horde_Date $time = null) { if (is_null($time)) { $time = new Horde_Date(time()); } return (bool)$this->_isSnoozed($id, $user, $time); } /** * Returns whether an alarm is snoozed. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * @param Horde_Date $time The time when the alarm may be snoozed. * * @return boolean True if the alarm is snoozed. * @throws Horde_Alarm_Exception */ abstract protected function _isSnoozed($id, $user, Horde_Date $time); /** * Dismisses an alarm. * * @param string $id The alarm's unique id. * @param string $user The alarm's user * * @throws Horde_Alarm_Exception */ abstract protected function _dismiss($id, $user); /** * Deletes an alarm from the backend. * * @param string $id The alarm's unique id. * @param string $user The alarm's user. All users' alarms if null. * * @throws Horde_Alarm_Exception */ function delete($id, $user = null) { $this->_delete($id, $user); } /** * Deletes an alarm from the backend. * * @param string $id The alarm's unique id. * @param string $user The alarm's user. All users' alarms if null. * * @throws Horde_Alarm_Exception */ abstract protected function _delete($id, $user = null); /** * Notifies the user about any active alarms. * * @param string $user Notify this user, all users if null, or guest * users if empty. * @param boolean $load Update active alarms from all applications? * @param boolean $preload Preload alarms that go off within the next * ttl time span? * @param array $exclude Don't notify with these methods. * * @throws Horde_Alarm_Exception */ public function notify($user = null, $load = true, $preload = true, array $exclude = array()) { try { $alarms = $this->listAlarms($user, null, $load, $preload); } catch (Horde_Alarm_Exception $e) { if ($this->_logger) { $this->_logger->log($e, 'ERR'); } throw $e; } if (empty($alarms)) { return; } $handlers = $this->handlers(); foreach ($alarms as $alarm) { foreach ($alarm['methods'] as $alarm_method) { if (isset($handlers[$alarm_method]) && !in_array($alarm_method, $exclude)) { $handlers[$alarm_method]->notify($alarm); } } } } /** * Registers a notification handler. * * @param string $name A handler name. * @param Horde_Alarm_Handler $handler A notification handler. */ public function addHandler($name, Horde_Alarm_Handler $handler) { $this->_handlers[$name] = $handler; $handler->alarm = $this; } /** * Returns a list of available notification handlers and parameters. * * The returned list is a hash with method names as the keys and * optionally associated parameters as values. The parameters are hashes * again with parameter names as keys and parameter information as * values. The parameter information is hash with the following keys: * 'desc' contains a parameter description; 'required' specifies whether * this parameter is required. * * @return array List of methods and parameters. */ public function handlers() { if (!$this->_handlersLoaded) { foreach (new DirectoryIterator(__DIR__ . '/Alarm/Handler') as $file) { if (!$file->isFile() || substr($file->getFilename(), -4) != '.php') { continue; } $handler = Horde_String::lower($file->getBasename('.php')); if (isset($this->_handlers[$handler])) { continue; } require_once $file->getPathname(); $class = 'Horde_Alarm_Handler_' . $file->getBasename('.php'); if (class_exists($class, false)) { $this->addHandler($handler, new $class()); } } $this->_handlerLoaded = true; } return $this->_handlers; } /** * Garbage collects old alarms in the backend. * * @param boolean $force Force garbace collection? If false, GC happens * with a 1% chance. * * @throws Horde_Alarm_Exception */ public function gc($force = false) { /* A 1% chance we will run garbage collection during a call. */ if ($force || rand(0, 99) == 0) { $this->_gc(); } } /** * Garbage collects old alarms in the backend. * * @throws Horde_Alarm_Exception */ abstract protected function _gc(); /** * Attempts to initialize the backend. * * @throws Horde_Alarm_Exception */ abstract public function initialize(); /** * Converts a value from the driver's charset. * * @param mixed $value Value to convert. * * @return mixed Converted value. */ abstract protected function _fromDriver($value); /** * Converts a value to the driver's charset. * * @param mixed $value Value to convert. * * @return mixed Converted value. */ abstract protected function _toDriver($value); } Horde_Alarm-2.0.5/locale/ar/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000067412231336711016762 0ustar ,<PQBW!EmailProject-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit البريد الإلكترونيHorde_Alarm-2.0.5/locale/ar/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000177512231336711016770 0ustar # Arabic translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "البريد الإلكتروني" #: lib/Horde/Alarm/Handler/Mail.php:138 msgid "Email address (optional)" msgstr "" #: lib/Horde/Alarm/Handler/Notify.php:81 msgid "Inline" msgstr "" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "" Horde_Alarm-2.0.5/locale/bg/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000064512231336711016746 0ustar ,<PQBW EmailProject-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ПисмоHorde_Alarm-2.0.5/locale/bg/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000204012231336711016740 0ustar # Bulgarian translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "Писмо" #: lib/Horde/Alarm/Handler/Mail.php:138 #, fuzzy msgid "Email address (optional)" msgstr "Еmail адрес" #: lib/Horde/Alarm/Handler/Notify.php:81 #, fuzzy msgid "Inline" msgstr "Подчертани" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "" Horde_Alarm-2.0.5/locale/bs/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000057412231336711016763 0ustar $,8B9Project-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Horde_Alarm-2.0.5/locale/bs/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000177712231336711016774 0ustar # Bosnian translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:138 #, fuzzy msgid "Email address (optional)" msgstr "Email adresa" #: lib/Horde/Alarm/Handler/Notify.php:81 #, fuzzy msgid "Inline" msgstr "none" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "" Horde_Alarm-2.0.5/locale/ca/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000065512231336711016742 0ustar ,<PQBWEmailProject-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Correu electrònicHorde_Alarm-2.0.5/locale/ca/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000203512231336711016737 0ustar # Catalan translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "Correu electrònic" #: lib/Horde/Alarm/Handler/Mail.php:138 #, fuzzy msgid "Email address (optional)" msgstr "Adreça electrònica" #: lib/Horde/Alarm/Handler/Notify.php:81 #, fuzzy msgid "Inline" msgstr "insereix" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "" Horde_Alarm-2.0.5/locale/cs/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000074612231336711016765 0ustar ,<PQWEmailProject-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2; EmailHorde_Alarm-2.0.5/locale/cs/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000212412231336711016760 0ustar # Czech translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "Email" #: lib/Horde/Alarm/Handler/Mail.php:138 #, fuzzy msgid "Email address (optional)" msgstr "Emailová adresa" #: lib/Horde/Alarm/Handler/Notify.php:81 #, fuzzy msgid "Inline" msgstr "v řadě" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "" Horde_Alarm-2.0.5/locale/da/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000071312231336711016736 0ustar ,<PQmWEmailProject-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); eMailHorde_Alarm-2.0.5/locale/da/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000207112231336711016740 0ustar # Danish translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "eMail" #: lib/Horde/Alarm/Handler/Mail.php:138 #, fuzzy msgid "Email address (optional)" msgstr "e-mail-adresse" #: lib/Horde/Alarm/Handler/Notify.php:81 #, fuzzy msgid "Inline" msgstr "indlejret" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "" Horde_Alarm-2.0.5/locale/de/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000136612231336711016747 0ustar L |, x 2Desktop notification (with certain browsers)EmailEmail address (optional)InlinePlay a sound?Project-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2012-02-22 11:20+0100 PO-Revision-Date: 2011-01-27 14:51+0100 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org Language: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); Desktop-Benachrichtigung (mit bestimmten Browsern)E-MailE-Mail-Adresse (optional)Im TextEinen Klang abspielen?Horde_Alarm-2.0.5/locale/de/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000220712231336711016745 0ustar # German translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2012-02-22 11:20+0100\n" "PO-Revision-Date: 2011-01-27 14:51+0100\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/Horde/Alarm/Handler/Desktop.php:79 msgid "Desktop notification (with certain browsers)" msgstr "Desktop-Benachrichtigung (mit bestimmten Browsern)" #: lib/Horde/Alarm/Handler/Mail.php:129 msgid "Email" msgstr "E-Mail" #: lib/Horde/Alarm/Handler/Mail.php:149 msgid "Email address (optional)" msgstr "E-Mail-Adresse (optional)" #: lib/Horde/Alarm/Handler/Notify.php:79 msgid "Inline" msgstr "Im Text" #: lib/Horde/Alarm/Handler/Notify.php:99 msgid "Play a sound?" msgstr "Einen Klang abspielen?" Horde_Alarm-2.0.5/locale/el/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000073612231336711016757 0ustar ,<PQmWEmailProject-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); ΑλληλογραφίαHorde_Alarm-2.0.5/locale/el/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000214412231336712016756 0ustar # Greek translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "Αλληλογραφία" #: lib/Horde/Alarm/Handler/Mail.php:138 #, fuzzy msgid "Email address (optional)" msgstr "Διεύθυνση Email" #: lib/Horde/Alarm/Handler/Notify.php:81 #, fuzzy msgid "Inline" msgstr "ενσωματωμένο" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "" Horde_Alarm-2.0.5/locale/en/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000133112231336712016752 0ustar L |, m ,x Desktop notification (with certain browsers)EmailEmail address (optional)InlinePlay a sound?Project-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=ASCII Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); Desktop notification (with certain browsers)EmailEmail address (optional)InlinePlay a sound?Horde_Alarm-2.0.5/locale/en/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000215012231336712016755 0ustar # English translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ASCII\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "Desktop notification (with certain browsers)" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "Email" #: lib/Horde/Alarm/Handler/Mail.php:138 msgid "Email address (optional)" msgstr "Email address (optional)" #: lib/Horde/Alarm/Handler/Notify.php:81 msgid "Inline" msgstr "Inline" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "Play a sound?" Horde_Alarm-2.0.5/locale/es/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000146612231336712016770 0ustar L |,  8 Desktop notification (with certain browsers)EmailEmail address (optional)InlinePlay a sound?Project-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2012-02-22 11:20+0100 PO-Revision-Date: 2013-06-11 20:26+0200 Last-Translator: Manuel P. Ayala , Juan C. Blanco Language-Team: i18n@lists.horde.org Language: es MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); Notificación en el escritorio (con ciertos navegadores)CorreoDirección de correo (opcional)En línea¿Reproducir un sonido?Horde_Alarm-2.0.5/locale/es/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000231412231336712016764 0ustar # Spanish translations for Horde_Alarm package. # Copyright (C) 2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm package. # Automatically generated, 2013. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm \n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2012-02-22 11:20+0100\n" "PO-Revision-Date: 2013-06-11 20:26+0200\n" "Last-Translator: Manuel P. Ayala , Juan C. Blanco " "\n" "Language-Team: i18n@lists.horde.org\n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/Horde/Alarm/Handler/Desktop.php:79 msgid "Desktop notification (with certain browsers)" msgstr "Notificación en el escritorio (con ciertos navegadores)" #: lib/Horde/Alarm/Handler/Mail.php:129 msgid "Email" msgstr "Correo" #: lib/Horde/Alarm/Handler/Mail.php:149 msgid "Email address (optional)" msgstr "Dirección de correo (opcional)" #: lib/Horde/Alarm/Handler/Notify.php:79 msgid "Inline" msgstr "En línea" #: lib/Horde/Alarm/Handler/Notify.php:99 msgid "Play a sound?" msgstr "¿Reproducir un sonido?" Horde_Alarm-2.0.5/locale/et/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000135312231336712016764 0ustar L |, } , Desktop notification (with certain browsers)EmailEmail address (optional)InlinePlay a sound?Project-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2011-04-05 13:52+0200 PO-Revision-Date: 2010-11-09 01:27+0200 Last-Translator: Alar Sing Language-Team: i18n@lists.horde.org Language: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); Töölaua teavitus (osade veeblehitsejatega)E-postE-posti aadress (valikuline)SeesMängi heli?Horde_Alarm-2.0.5/locale/et/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000217612231336712016773 0ustar # Estonian translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2011-04-05 13:52+0200\n" "PO-Revision-Date: 2010-11-09 01:27+0200\n" "Last-Translator: Alar Sing \n" "Language-Team: i18n@lists.horde.org\n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/Horde/Alarm/Handler/Desktop.php:79 msgid "Desktop notification (with certain browsers)" msgstr "Töölaua teavitus (osade veeblehitsejatega)" #: lib/Horde/Alarm/Handler/Mail.php:121 msgid "Email" msgstr "E-post" #: lib/Horde/Alarm/Handler/Mail.php:141 msgid "Email address (optional)" msgstr "E-posti aadress (valikuline)" #: lib/Horde/Alarm/Handler/Notify.php:77 msgid "Inline" msgstr "Sees" #: lib/Horde/Alarm/Handler/Notify.php:97 msgid "Play a sound?" msgstr "Mängi heli?" Horde_Alarm-2.0.5/locale/eu/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000140412231336712016762 0ustar L |,  .  Desktop notification (with certain browsers)EmailEmail address (optional)InlinePlay a sound?Project-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2012-02-22 11:20+0100 PO-Revision-Date: 2013-03-13 09:17+0100 Last-Translator: Ibon Igartua Language-Team: i18n@lists.horde.org Language: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); Mahaigainean (nabigatzaile batzuekin bakarrik)Posta elektronikozHelbide elektronikoa (aukerakoa)BarneanSoinua jo?Horde_Alarm-2.0.5/locale/eu/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000222512231336712016767 0ustar # Basque translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2012-02-22 11:20+0100\n" "PO-Revision-Date: 2013-03-13 09:17+0100\n" "Last-Translator: Ibon Igartua \n" "Language-Team: i18n@lists.horde.org\n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/Horde/Alarm/Handler/Desktop.php:79 msgid "Desktop notification (with certain browsers)" msgstr "Mahaigainean (nabigatzaile batzuekin bakarrik)" #: lib/Horde/Alarm/Handler/Mail.php:129 msgid "Email" msgstr "Posta elektronikoz" #: lib/Horde/Alarm/Handler/Mail.php:149 msgid "Email address (optional)" msgstr "Helbide elektronikoa (aukerakoa)" #: lib/Horde/Alarm/Handler/Notify.php:79 msgid "Inline" msgstr "Barnean" #: lib/Horde/Alarm/Handler/Notify.php:99 msgid "Play a sound?" msgstr "Soinua jo?" Horde_Alarm-2.0.5/locale/fa/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000067012231336712016743 0ustar ,<PQBWEmailProject-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit نامه الکترونیکیHorde_Alarm-2.0.5/locale/fa/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000207412231336712016746 0ustar # Persian translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "نامه الکترونیکی" #: lib/Horde/Alarm/Handler/Mail.php:138 #, fuzzy msgid "Email address (optional)" msgstr "آدرس نامهٔ الکترونیکی" #: lib/Horde/Alarm/Handler/Notify.php:81 #, fuzzy msgid "Inline" msgstr "درخط" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "" Horde_Alarm-2.0.5/locale/fi/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000143012231336712016746 0ustar L |,  2   Desktop notification (with certain browsers)EmailEmail address (optional)InlinePlay a sound?Project-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2012-02-22 11:20+0100 PO-Revision-Date: 2012-03-07 15:04:08+0200 Last-Translator: Leena Heino Language-Team: Finnish Language: fi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); Työpöytähälytykset (vain joillakin selaimilla)SähköpostiSähköpostiosoite (valinnainen)SisällytettySoitetaanko ääni?Horde_Alarm-2.0.5/locale/fi/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000226212231336712016755 0ustar # Finnish translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Leena Heino , 2010-2012. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2012-02-22 11:20+0100\n" "PO-Revision-Date: 2012-03-07 15:04:08+0200\n" "Last-Translator: Leena Heino \n" "Language-Team: Finnish \n" "Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/Horde/Alarm/Handler/Desktop.php:79 msgid "Desktop notification (with certain browsers)" msgstr "Työpöytähälytykset (vain joillakin selaimilla)" #: lib/Horde/Alarm/Handler/Mail.php:129 msgid "Email" msgstr "Sähköposti" #: lib/Horde/Alarm/Handler/Mail.php:149 msgid "Email address (optional)" msgstr "Sähköpostiosoite (valinnainen)" #: lib/Horde/Alarm/Handler/Notify.php:79 msgid "Inline" msgstr "Sisällytetty" #: lib/Horde/Alarm/Handler/Notify.php:99 msgid "Play a sound?" msgstr "Soitetaanko ääni?" Horde_Alarm-2.0.5/locale/fr/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000147312231336712016766 0ustar L |,  '# ! -Desktop notification (with certain browsers)EmailEmail address (optional)InlinePlay a sound?Project-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2012-02-22 11:20+0100 PO-Revision-Date: 2013-01-14 10:12+0100 Last-Translator: Paul De Vlieger Language-Team: French Language: fr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n > 1); X-Generator: Lokalize 1.4 Notification (sur certains navigateurs)CourrielAdresse électronique (facultative)incorporéeJouer un son?Horde_Alarm-2.0.5/locale/fr/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000242512231336712016767 0ustar # French translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # Paul De Vlieger , 2013 msgid "" msgstr "" "Project-Id-Version: Horde_Alarm \n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2012-02-22 11:20+0100\n" "PO-Revision-Date: 2013-01-14 10:12+0100\n" "Last-Translator: Paul De Vlieger \n" "Language-Team: French \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Generator: Lokalize 1.4\n" #: lib/Horde/Alarm/Handler/Desktop.php:79 msgid "Desktop notification (with certain browsers)" msgstr "Notification (sur certains navigateurs)" #: lib/Horde/Alarm/Handler/Mail.php:129 msgid "Email" msgstr "Courriel" #: lib/Horde/Alarm/Handler/Mail.php:149 msgid "Email address (optional)" msgstr "Adresse électronique (facultative)" #: lib/Horde/Alarm/Handler/Notify.php:79 msgid "Inline" msgstr "incorporée" #: lib/Horde/Alarm/Handler/Notify.php:99 msgid "Play a sound?" msgstr "Jouer un son?" Horde_Alarm-2.0.5/locale/gl/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000065612231336712016763 0ustar ,<PQBWEmailProject-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Correo electrónicoHorde_Alarm-2.0.5/locale/gl/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000176112231336712016764 0ustar # Galician translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "Correo electrónico" #: lib/Horde/Alarm/Handler/Mail.php:138 msgid "Email address (optional)" msgstr "" #: lib/Horde/Alarm/Handler/Notify.php:81 msgid "Inline" msgstr "" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "" Horde_Alarm-2.0.5/locale/he/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000064712231336712016755 0ustar $,8m9Project-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); Horde_Alarm-2.0.5/locale/he/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000201312231336712016745 0ustar # Hebrew translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:138 msgid "Email address (optional)" msgstr "" #: lib/Horde/Alarm/Handler/Notify.php:81 msgid "Inline" msgstr "" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "" Horde_Alarm-2.0.5/locale/hr/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000151612231336712016766 0ustar L |,  04=Desktop notification (with certain browsers)EmailEmail address (optional)InlinePlay a sound?Project-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2011-04-05 13:52+0200 PO-Revision-Date: 2011-11-08 16:49+0200 Last-Translator: Valentin Vidic Language-Team: i18n@lists.horde.org Language: hr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); Dekstop obavijesti (sa određenim preglednicima)E-mailE-mail adresa (opcionalno)DirektnoUključiti zvuk?Horde_Alarm-2.0.5/locale/hr/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000243012231336712016765 0ustar # Croatian translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Valentin Vidic , 2011. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2011-04-05 13:52+0200\n" "PO-Revision-Date: 2011-11-08 16:49+0200\n" "Last-Translator: Valentin Vidic \n" "Language-Team: i18n@lists.horde.org\n" "Language: hr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #: lib/Horde/Alarm/Handler/Desktop.php:79 msgid "Desktop notification (with certain browsers)" msgstr "Dekstop obavijesti (sa određenim preglednicima)" # E-pošta ? #: lib/Horde/Alarm/Handler/Mail.php:121 msgid "Email" msgstr "E-mail" #: lib/Horde/Alarm/Handler/Mail.php:141 msgid "Email address (optional)" msgstr "E-mail adresa (opcionalno)" # u ravnini, unutra? #: lib/Horde/Alarm/Handler/Notify.php:77 msgid "Inline" msgstr "Direktno" #: lib/Horde/Alarm/Handler/Notify.php:97 msgid "Play a sound?" msgstr "Uključiti zvuk?" Horde_Alarm-2.0.5/locale/hu/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000071312231336712016767 0ustar ,<PQmWEmailProject-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); EmailHorde_Alarm-2.0.5/locale/hu/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000213512231336712016772 0ustar # Hungarian translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "Email" #: lib/Horde/Alarm/Handler/Mail.php:138 #, fuzzy msgid "Email address (optional)" msgstr "Email cím" #: lib/Horde/Alarm/Handler/Notify.php:81 #, fuzzy msgid "Inline" msgstr "beillesztett" #: lib/Horde/Alarm/Handler/Notify.php:101 #, fuzzy msgid "Play a sound?" msgstr "Kérem válasszon hangot." Horde_Alarm-2.0.5/locale/id/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000057412231336712016754 0ustar $,8B9Project-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=ASCII Content-Transfer-Encoding: 8bit Horde_Alarm-2.0.5/locale/id/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000202412231336712016747 0ustar # Indonesian translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ASCII\n" "Content-Transfer-Encoding: 8bit\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:138 #, fuzzy msgid "Email address (optional)" msgstr "Alamat Email" #: lib/Horde/Alarm/Handler/Notify.php:81 #, fuzzy msgid "Inline" msgstr "masih di dalam antrian" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "" Horde_Alarm-2.0.5/locale/is/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000057412231336712016773 0ustar $,8B9Project-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Horde_Alarm-2.0.5/locale/is/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000177612231336712017003 0ustar # Icelandic translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:138 #, fuzzy msgid "Email address (optional)" msgstr "Netfang" #: lib/Horde/Alarm/Handler/Notify.php:81 #, fuzzy msgid "Inline" msgstr "enginn" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "" Horde_Alarm-2.0.5/locale/it/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000071312231336712016767 0ustar ,<PQmWEmailProject-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); PostaHorde_Alarm-2.0.5/locale/it/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000213112231336712016766 0ustar # Italian translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "Posta" #: lib/Horde/Alarm/Handler/Mail.php:138 #, fuzzy msgid "Email address (optional)" msgstr "Indirizzo di Posta" #: lib/Horde/Alarm/Handler/Notify.php:81 #, fuzzy msgid "Inline" msgstr "inline" #: lib/Horde/Alarm/Handler/Notify.php:101 #, fuzzy msgid "Play a sound?" msgstr "Selezionare un Suono." Horde_Alarm-2.0.5/locale/ja/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000151512231336712016746 0ustar L |,  60!1Desktop notification (with certain browsers)EmailEmail address (optional)InlinePlay a sound?Project-Id-Version: Horde_Alerm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2012-02-22 11:20+0100 PO-Revision-Date: 2013-05-23 20:40+0900 Last-Translator: Hiromi Kimura Language-Team: i18n@lists.horde.org Language: ja MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; X-Generator: Poedit 1.5.4 デスクトップ通知(特定のブラウザで)電子メール電子メールアドレス(オプション)インライン音を鳴らしますか?Horde_Alarm-2.0.5/locale/ja/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000233312231336712016750 0ustar # Japanese translation for Horde. # Copyright 2004-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde package. # Hiromi Kimura # msgid "" msgstr "" "Project-Id-Version: Horde_Alerm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2012-02-22 11:20+0100\n" "PO-Revision-Date: 2013-05-23 20:40+0900\n" "Last-Translator: Hiromi Kimura \n" "Language-Team: i18n@lists.horde.org\n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 1.5.4\n" #: lib/Horde/Alarm/Handler/Desktop.php:79 msgid "Desktop notification (with certain browsers)" msgstr "デスクトップ通知(特定のブラウザで)" #: lib/Horde/Alarm/Handler/Mail.php:129 msgid "Email" msgstr "電子メール" #: lib/Horde/Alarm/Handler/Mail.php:149 msgid "Email address (optional)" msgstr "電子メールアドレス(オプション)" #: lib/Horde/Alarm/Handler/Notify.php:79 msgid "Inline" msgstr "インライン" #: lib/Horde/Alarm/Handler/Notify.php:99 msgid "Play a sound?" msgstr "音を鳴らしますか?" Horde_Alarm-2.0.5/locale/km/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000065512231336712016767 0ustar ,<PQBWEmailProject-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit អ៊ីមែលHorde_Alarm-2.0.5/locale/km/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000214212231336712016763 0ustar # Khmer translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "អ៊ីមែល" #: lib/Horde/Alarm/Handler/Mail.php:138 #, fuzzy msgid "Email address (optional)" msgstr "អាសយដ្ឋាន​អ៊ីមែល" #: lib/Horde/Alarm/Handler/Notify.php:81 #, fuzzy msgid "Inline" msgstr "គូស​បន្ទាត់​ក្រោម" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "" Horde_Alarm-2.0.5/locale/ko/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000071012231336712016761 0ustar ,<PQfW EmailProject-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; 이메일Horde_Alarm-2.0.5/locale/ko/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000206612231336712016772 0ustar # Korean translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "이메일" #: lib/Horde/Alarm/Handler/Mail.php:138 #, fuzzy msgid "Email address (optional)" msgstr "이메일 주소:" #: lib/Horde/Alarm/Handler/Notify.php:81 #, fuzzy msgid "Inline" msgstr "없음" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "" Horde_Alarm-2.0.5/locale/lt/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000151112231336712016767 0ustar L |,  ;   ,8Desktop notification (with certain browsers)EmailEmail address (optional)InlinePlay a sound?Project-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2011-05-28 01:09+0300 PO-Revision-Date: 2011-06-27 22:21+0300 Last-Translator: Vilius Šumskas Language-Team: Lithuanian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2); Pranešimai ant darbalaukio (su kai kuriomis naršyklėmis)El. paštuEl. pašto adresas (nebūtinas)PuslapiuosePranešti garsu?Horde_Alarm-2.0.5/locale/lt/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000234512231336712017000 0ustar # Lithuanian translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Vilius Šumskas , 2011. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2011-05-28 01:09+0300\n" "PO-Revision-Date: 2011-06-27 22:21+0300\n" "Last-Translator: Vilius Šumskas \n" "Language-Team: Lithuanian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n" "%100<10 || n%100>=20) ? 1 : 2);\n" #: lib/Horde/Alarm/Handler/Desktop.php:79 msgid "Desktop notification (with certain browsers)" msgstr "Pranešimai ant darbalaukio (su kai kuriomis naršyklėmis)" #: lib/Horde/Alarm/Handler/Mail.php:121 msgid "Email" msgstr "El. paštu" #: lib/Horde/Alarm/Handler/Mail.php:141 msgid "Email address (optional)" msgstr "El. pašto adresas (nebūtinas)" #: lib/Horde/Alarm/Handler/Notify.php:77 msgid "Inline" msgstr "Puslapiuose" #: lib/Horde/Alarm/Handler/Notify.php:97 msgid "Play a sound?" msgstr "Pranešti garsu?" Horde_Alarm-2.0.5/locale/lv/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000157612231336712017004 0ustar L |,  :9A `lDesktop notification (with certain browsers)EmailEmail address (optional)InlinePlay a sound?Project-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2011-04-05 13:52+0200 PO-Revision-Date: 2011-10-16 15:21+0300 Last-Translator: Jānis Eisaks Language-Team: i18n@lists.horde.org Language: lv MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2); X-Poedit-Language: Latvian X-Poedit-Country: LATVIA X-Poedit-SourceCharset: utf-8 Informēšana caur darba virsmu (atsevišķiem parlūkiem)E-pastsE-pasta adrese (nav obligāti)IekļautaisAtskaņot skaņu?Horde_Alarm-2.0.5/locale/lv/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000244112231336712016777 0ustar # Latvian translations for Horde_Alarm package. # Copyright 2011-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm package. # Automatically generated, 2011. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2011-04-05 13:52+0200\n" "PO-Revision-Date: 2011-10-16 15:21+0300\n" "Last-Translator: Jānis Eisaks \n" "Language-Team: i18n@lists.horde.org\n" "Language: lv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " "2);\n" "X-Poedit-Language: Latvian\n" "X-Poedit-Country: LATVIA\n" "X-Poedit-SourceCharset: utf-8\n" #: lib/Horde/Alarm/Handler/Desktop.php:79 msgid "Desktop notification (with certain browsers)" msgstr "Informēšana caur darba virsmu (atsevišķiem parlūkiem)" #: lib/Horde/Alarm/Handler/Mail.php:121 msgid "Email" msgstr "E-pasts" #: lib/Horde/Alarm/Handler/Mail.php:141 msgid "Email address (optional)" msgstr "E-pasta adrese (nav obligāti)" #: lib/Horde/Alarm/Handler/Notify.php:77 msgid "Inline" msgstr "Iekļautais" #: lib/Horde/Alarm/Handler/Notify.php:97 msgid "Play a sound?" msgstr "Atskaņot skaņu?" Horde_Alarm-2.0.5/locale/mk/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000065012231336712016762 0ustar ,<PQBW EmailProject-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit е-поштаHorde_Alarm-2.0.5/locale/mk/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000175512231336712016774 0ustar # Macedonian translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "е-пошта" #: lib/Horde/Alarm/Handler/Mail.php:138 msgid "Email address (optional)" msgstr "" #: lib/Horde/Alarm/Handler/Notify.php:81 msgid "Inline" msgstr "" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "" Horde_Alarm-2.0.5/locale/nb/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000071412231336712016753 0ustar ,<PQmWEmailProject-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); E-postHorde_Alarm-2.0.5/locale/nb/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000210012231336712016745 0ustar # Norwegian Bokmal translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "E-post" #: lib/Horde/Alarm/Handler/Mail.php:138 #, fuzzy msgid "Email address (optional)" msgstr "E-postadresse" #: lib/Horde/Alarm/Handler/Notify.php:81 #, fuzzy msgid "Inline" msgstr "inline" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "" Horde_Alarm-2.0.5/locale/nl/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000145012231336712016763 0ustar L |,  7Desktop notification (with certain browsers)EmailEmail address (optional)InlinePlay a sound?Project-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2012-02-22 11:20+0100 PO-Revision-Date: 2012-11-03 11:28+0100 Last-Translator: Arjen de Korte Language-Team: Dutch Language: nl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); X-Generator: Lokalize 1.4 Weergeven van pop-up notificatie (met sommige browsers)E-mailE-mailadres (optioneel)inlineGeluid afspelen?Horde_Alarm-2.0.5/locale/nl/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000231612231336712016770 0ustar # Dutch translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # # Arjen de Korte , 2012. msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2012-02-22 11:20+0100\n" "PO-Revision-Date: 2012-11-03 11:28+0100\n" "Last-Translator: Arjen de Korte \n" "Language-Team: Dutch \n" "Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Lokalize 1.4\n" #: lib/Horde/Alarm/Handler/Desktop.php:79 msgid "Desktop notification (with certain browsers)" msgstr "Weergeven van pop-up notificatie (met sommige browsers)" #: lib/Horde/Alarm/Handler/Mail.php:129 msgid "Email" msgstr "E-mail" #: lib/Horde/Alarm/Handler/Mail.php:149 msgid "Email address (optional)" msgstr "E-mailadres (optioneel)" #: lib/Horde/Alarm/Handler/Notify.php:79 msgid "Inline" msgstr "inline" #: lib/Horde/Alarm/Handler/Notify.php:99 msgid "Play a sound?" msgstr "Geluid afspelen?" Horde_Alarm-2.0.5/locale/nn/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000071412231336712016767 0ustar ,<PQmWEmailProject-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); E-postHorde_Alarm-2.0.5/locale/nn/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000203412231336712016767 0ustar # Norwegian Nynorsk translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "E-post" #: lib/Horde/Alarm/Handler/Mail.php:138 msgid "Email address (optional)" msgstr "" #: lib/Horde/Alarm/Handler/Notify.php:81 msgid "Inline" msgstr "" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "" Horde_Alarm-2.0.5/locale/pl/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000144512231336712016771 0ustar L |,  % Desktop notification (with certain browsers)EmailEmail address (optional)InlinePlay a sound?Project-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2012-10-29 21:17+0100 Last-Translator: Krzysztof Kozera Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); Na pulpicie (niektóre przeglądarki)EmailAdres email (opcjonalne)W treściOdtworzyć dźwięk?Horde_Alarm-2.0.5/locale/pl/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000230412231336712016767 0ustar # Polish translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Krzysztof Kozera , 2012. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2012-10-29 21:17+0100\n" "Last-Translator: Krzysztof Kozera \n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2);\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "Na pulpicie (niektóre przeglądarki)" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "Email" #: lib/Horde/Alarm/Handler/Mail.php:138 msgid "Email address (optional)" msgstr "Adres email (opcjonalne)" #: lib/Horde/Alarm/Handler/Notify.php:81 msgid "Inline" msgstr "W treści" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "Odtworzyć dźwięk?" Horde_Alarm-2.0.5/locale/pt/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000073212231336712016777 0ustar ,<PQmWEmailProject-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); Correio ElectrónicoHorde_Alarm-2.0.5/locale/pt/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000213612231336712017002 0ustar # Portuguese translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "Correio Electrónico" #: lib/Horde/Alarm/Handler/Mail.php:138 #, fuzzy msgid "Email address (optional)" msgstr "Endereço de Correio Electrónico" #: lib/Horde/Alarm/Handler/Notify.php:81 #, fuzzy msgid "Inline" msgstr "em linha" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "" Horde_Alarm-2.0.5/locale/pt_BR/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000141112231336712017355 0ustar L |,  1 Desktop notification (with certain browsers)EmailEmail address (optional)InlinePlay a sound?Project-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2012-02-22 11:20+0100 PO-Revision-Date: 2011-06-11 20:15-0300 Last-Translator: Luis Felipe Marzagao Language-Team: i18n@lists.horde.org Language: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n > 1); Notificação no Desktop (com alguns navegadores)E-mailEndereço de e-mail (opcional)Em linhaTocar um som?Horde_Alarm-2.0.5/locale/pt_BR/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000223612231336712017366 0ustar # Portuguese translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2012-02-22 11:20+0100\n" "PO-Revision-Date: 2011-06-11 20:15-0300\n" "Last-Translator: Luis Felipe Marzagao \n" "Language-Team: i18n@lists.horde.org\n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: lib/Horde/Alarm/Handler/Desktop.php:79 msgid "Desktop notification (with certain browsers)" msgstr "Notificação no Desktop (com alguns navegadores)" #: lib/Horde/Alarm/Handler/Mail.php:129 msgid "Email" msgstr "E-mail" #: lib/Horde/Alarm/Handler/Mail.php:149 msgid "Email address (optional)" msgstr "Endereço de e-mail (opcional)" #: lib/Horde/Alarm/Handler/Notify.php:79 msgid "Inline" msgstr "Em linha" #: lib/Horde/Alarm/Handler/Notify.php:99 msgid "Play a sound?" msgstr "Tocar um som?" Horde_Alarm-2.0.5/locale/ro/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000077112231336712016777 0ustar ,<PQWEmailProject-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=ASCII Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2; EmailHorde_Alarm-2.0.5/locale/ro/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000210312231336712016771 0ustar # Romanian translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ASCII\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < " "20)) ? 1 : 2;\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "Email" #: lib/Horde/Alarm/Handler/Mail.php:138 msgid "Email address (optional)" msgstr "" #: lib/Horde/Alarm/Handler/Notify.php:81 msgid "Inline" msgstr "" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "" Horde_Alarm-2.0.5/locale/ru/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000114412231336712017000 0ustar 4L`ag8%>EmailEmail address (optional)Project-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); EmailВаш Email (опционально)Horde_Alarm-2.0.5/locale/ru/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000232412231336712017004 0ustar # Russian translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" "10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "Email" #: lib/Horde/Alarm/Handler/Mail.php:138 msgid "Email address (optional)" msgstr "Ваш Email (опционально)" # fuzzy #: lib/Horde/Alarm/Handler/Notify.php:81 #, fuzzy msgid "Inline" msgstr "в текст" # fuzzy #: lib/Horde/Alarm/Handler/Notify.php:101 #, fuzzy msgid "Play a sound?" msgstr "Укажите хранилище:" Horde_Alarm-2.0.5/locale/sk/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000145512231336712016774 0ustar L |,  <Desktop notification (with certain browsers)EmailEmail address (optional)InlinePlay a sound?Project-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2011-04-05 13:52+0200 PO-Revision-Date: 2011-05-20 15:17+0100 Last-Translator: Martin Matuška Language-Team: i18n@lists.horde.org Language: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2; Upozornenie na pracovnej ploche (iba niektoré prehliadače)E-mailE-Mailová adresa (voliteľné)V prehliadačiPrehrať zvuk?Horde_Alarm-2.0.5/locale/sk/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000227612231336712017001 0ustar # Slovak translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2011-04-05 13:52+0200\n" "PO-Revision-Date: 2011-05-20 15:17+0100\n" "Last-Translator: Martin Matuška \n" "Language-Team: i18n@lists.horde.org\n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" #: lib/Horde/Alarm/Handler/Desktop.php:79 msgid "Desktop notification (with certain browsers)" msgstr "Upozornenie na pracovnej ploche (iba niektoré prehliadače)" #: lib/Horde/Alarm/Handler/Mail.php:121 msgid "Email" msgstr "E-mail" #: lib/Horde/Alarm/Handler/Mail.php:141 msgid "Email address (optional)" msgstr "E-Mailová adresa (voliteľné)" #: lib/Horde/Alarm/Handler/Notify.php:77 msgid "Inline" msgstr "V prehliadači" #: lib/Horde/Alarm/Handler/Notify.php:97 msgid "Play a sound?" msgstr "Prehrať zvuk?" Horde_Alarm-2.0.5/locale/sl/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000101412231336712016764 0ustar ,<PQWEmailProject-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3); Elektronska poštaHorde_Alarm-2.0.5/locale/sl/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000221012231336712016766 0ustar # Slovenian translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" "%100==4 ? 2 : 3);\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "Elektronska pošta" #: lib/Horde/Alarm/Handler/Mail.php:138 #, fuzzy msgid "Email address (optional)" msgstr "Elektronski naslov" #: lib/Horde/Alarm/Handler/Notify.php:81 #, fuzzy msgid "Inline" msgstr "med vrsticami" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "" Horde_Alarm-2.0.5/locale/sv/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000071412231336712017004 0ustar ,<PQmWEmailProject-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); E-postHorde_Alarm-2.0.5/locale/sv/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000206712231336712017012 0ustar # Swedish translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "E-post" #: lib/Horde/Alarm/Handler/Mail.php:138 #, fuzzy msgid "Email address (optional)" msgstr "E-post adress" #: lib/Horde/Alarm/Handler/Notify.php:81 #, fuzzy msgid "Inline" msgstr "inline" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "" Horde_Alarm-2.0.5/locale/tr/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000070512231336712017001 0ustar ,<PQfWEmailProject-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; EpostaHorde_Alarm-2.0.5/locale/tr/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000214512231336712017004 0ustar # Turkish translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "Eposta" #: lib/Horde/Alarm/Handler/Mail.php:138 #, fuzzy msgid "Email address (optional)" msgstr "Elektronik Posta Adresi" #: lib/Horde/Alarm/Handler/Notify.php:81 #, fuzzy msgid "Inline" msgstr "Metne gömülü" #: lib/Horde/Alarm/Handler/Notify.php:101 #, fuzzy msgid "Play a sound?" msgstr "Lütfen bir ses seçiniz." Horde_Alarm-2.0.5/locale/uk/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000117212231336712016772 0ustar 4L`ag 83FEmailEmail address (optional)Project-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); Е-поштаАдреса е-пошти (опціонально)Horde_Alarm-2.0.5/locale/uk/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000226312231336712016777 0ustar # Ukrainian translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "Е-пошта" #: lib/Horde/Alarm/Handler/Mail.php:138 msgid "Email address (optional)" msgstr "Адреса е-пошти (опціонально)" #: lib/Horde/Alarm/Handler/Notify.php:81 #, fuzzy msgid "Inline" msgstr "в тексті" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "" Horde_Alarm-2.0.5/locale/zh_CN/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000064712231336712017362 0ustar ,<PQBW EmailProject-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 电子邮件Horde_Alarm-2.0.5/locale/zh_CN/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000202612231336712017356 0ustar # Chinese translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "电子邮件" #: lib/Horde/Alarm/Handler/Mail.php:138 #, fuzzy msgid "Email address (optional)" msgstr "电子邮件地址" #: lib/Horde/Alarm/Handler/Notify.php:81 #, fuzzy msgid "Inline" msgstr "嵌入式" #: lib/Horde/Alarm/Handler/Notify.php:101 msgid "Play a sound?" msgstr "" Horde_Alarm-2.0.5/locale/zh_TW/LC_MESSAGES/Horde_Alarm.mo0000664000076600000240000000064712231336712017414 0ustar ,<PQBW EmailProject-Id-Version: Horde_Alarm Report-Msgid-Bugs-To: dev@lists.horde.org POT-Creation-Date: 2010-10-13 01:27+0200 PO-Revision-Date: 2010-10-13 01:27+0200 Last-Translator: Automatically generated Language-Team: i18n@lists.horde.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 電子郵件Horde_Alarm-2.0.5/locale/zh_TW/LC_MESSAGES/Horde_Alarm.po0000664000076600000240000000210412231336712017405 0ustar # Chinese translations for Horde_Alarm module. # Copyright 2010-2013 Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm module. # Automatically generated, 2010. # msgid "" msgstr "" "Project-Id-Version: Horde_Alarm\n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2010-10-13 01:27+0200\n" "PO-Revision-Date: 2010-10-13 01:27+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: i18n@lists.horde.org\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: lib/Horde/Alarm/Handler/Desktop.php:86 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:118 msgid "Email" msgstr "電子郵件" #: lib/Horde/Alarm/Handler/Mail.php:138 #, fuzzy msgid "Email address (optional)" msgstr "電子郵件住址" #: lib/Horde/Alarm/Handler/Notify.php:81 #, fuzzy msgid "Inline" msgstr "直接顯示於本文區" #: lib/Horde/Alarm/Handler/Notify.php:101 #, fuzzy msgid "Play a sound?" msgstr "請選擇一種鈴聲." Horde_Alarm-2.0.5/locale/Horde_Alarm.pot0000664000076600000240000000175112231336712014760 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Horde LLC (http://www.horde.org/) # This file is distributed under the same license as the Horde_Alarm package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Horde_Alarm \n" "Report-Msgid-Bugs-To: dev@lists.horde.org\n" "POT-Creation-Date: 2012-02-22 11:20+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: lib/Horde/Alarm/Handler/Desktop.php:79 msgid "Desktop notification (with certain browsers)" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:129 msgid "Email" msgstr "" #: lib/Horde/Alarm/Handler/Mail.php:149 msgid "Email address (optional)" msgstr "" #: lib/Horde/Alarm/Handler/Notify.php:79 msgid "Inline" msgstr "" #: lib/Horde/Alarm/Handler/Notify.php:99 msgid "Play a sound?" msgstr "" Horde_Alarm-2.0.5/migration/Horde/Alarm/1_horde_alarms_table.php0000664000076600000240000000270412231336712021445 0ustar tables())) { $t = $this->createTable('horde_alarms'); $t->column('alarm_id', 'string', array('limit' => 255, 'null' => false)); $t->column('alarm_uid', 'string', array('limit' => 255)); $t->column('alarm_start', 'datetime', array('null' => false)); $t->column('alarm_end', 'datetime'); $t->column('alarm_methods', 'string', array('limit' => 255)); $t->column('alarm_params', 'text'); $t->column('alarm_title', 'string', array('limit' => 255, 'null' => false)); $t->column('alarm_text', 'text'); $t->column('alarm_snooze', 'datetime'); $t->column('alarm_dismissed', 'integer', array('limit' => 1, 'null' => false, 'default' => 0)); $t->column('alarm_internal', 'text'); $t->end(); $this->addIndex('horde_alarms', array('alarm_id')); $this->addIndex('horde_alarms', array('alarm_uid')); $this->addIndex('horde_alarms', array('alarm_start')); $this->addIndex('horde_alarms', array('alarm_end')); $this->addIndex('horde_alarms', array('alarm_snooze')); $this->addIndex('horde_alarms', array('alarm_dismissed')); } } public function down() { $this->dropTable('horde_alarms'); } } Horde_Alarm-2.0.5/test/Horde/Alarm/AllTests.php0000664000076600000240000000013212231336712016130 0ustar run(); Horde_Alarm-2.0.5/test/Horde/Alarm/bootstrap.php0000664000076600000240000000014312231336712016414 0ustar * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @category Horde * @package Alarm * @subpackage UnitTests */ class Horde_Alarm_HandlerTest extends PHPUnit_Framework_TestCase { protected static $alarm; protected static $storage; protected static $mail; public function setUp() { if (!class_exists('Horde_Notification')) { $this->markTestSkipped('Horde_Notification not installed'); return; } if (!class_exists('Horde_Mail_Transport_Mock')) { $this->markTestSkipped('Horde_Mail not installed'); return; } self::$alarm = new Horde_Alarm_Object(); $now = time(); $hash = array('id' => 'personalalarm', 'user' => 'john', 'start' => new Horde_Date($now), 'end' => new Horde_Date($now + 3600), 'methods' => array(), 'params' => array(), 'title' => 'This is a personal alarm.', 'text' => 'Action is required.'); self::$alarm->set($hash); self::$storage = new Horde_Notification_Storage_Object(); $notification = new Horde_Alarm_HandlerTest_NotificationFactory(self::$storage); $handler = new Horde_Alarm_Handler_Notify(array('notification' => $notification)); self::$alarm->addHandler('notify', $handler); $handler = new Horde_Alarm_Handler_Desktop(array('js_notify' => array($this, 'desktopCallback'), 'icon' => 'test.png')); self::$alarm->addHandler('desktop', $handler); self::$mail = new Horde_Mail_Transport_Mock(); $factory = new Horde_Alarm_HandlerTest_IdentityFactory(); $handler = new Horde_Alarm_Handler_Mail(array('mail' => self::$mail, 'identity' => $factory, 'charset' => 'us-ascii')); self::$alarm->addHandler('mail', $handler); } public function testNotify() { $alarm = self::$alarm->get('personalalarm', 'john'); $alarm['methods'] = array('notify'); self::$alarm->set($alarm); self::$alarm->notify('john', false); $this->assertEquals(1, count(self::$storage->notifications['_unattached'])); $this->assertEquals('This is a personal alarm.', self::$storage->notifications['_unattached'][0]->message); $this->assertEquals('horde.alarm', self::$storage->notifications['_unattached'][0]->type); } public function testMail() { $header = 'Subject: This is a personal alarm. To: john@example.com From: john@example.com Auto-Submitted: auto-generated X-Horde-Alarm: This is a personal alarm. Message-ID: <%d.Horde.%s@%s> User-Agent: Horde Application Framework 5 Date: %s, %d %s %s %d:%d:%d %s%d Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0'; $body = "Action is required.\n"; $alarm = self::$alarm->get('personalalarm', 'john'); $alarm['methods'] = array('mail'); self::$alarm->set($alarm); self::$alarm->notify('john', false); $last_sent = end(self::$mail->sentMessages); $this->assertStringMatchesFormat( $header, trim(str_replace("\r\n", "\n", $last_sent['header_text'])) ); $this->assertEquals($body, $last_sent['body']); self::$mail->sentMessages = array(); self::$alarm->notify('john', false); $this->assertEquals(self::$mail->sentMessages, array()); /* Test re-sending mails after changing the alarm. */ self::$alarm->set(self::$alarm->get('personalalarm', 'john')); self::$alarm->notify('john', false); $last_sent = end(self::$mail->sentMessages); $this->assertStringMatchesFormat( $header, trim(str_replace("\r\n", "\n", $last_sent['header_text'])) ); $this->assertEquals($body, $last_sent['body']); } public function testDesktop() { $alarm = self::$alarm->get('personalalarm', 'john'); $alarm['methods'] = array('desktop'); self::$alarm->set($alarm); self::$alarm->notify('john', false); } public function desktopCallback($js) { $this->assertEquals( "if(window.webkitNotifications)(function(){function show(){switch(window.webkitNotifications.checkPermission()){case 0:var notify=window.webkitNotifications.createNotification(\"test.png\",\"This is a personal alarm.\",\"Action is required.\");notify.show();(function(){notify.cancel()}).delay(5);break;case 1:window.webkitNotifications.requestPermission(function(){});break}}show()})()", $js); } } class Horde_Alarm_HandlerTest_IdentityFactory { public function create() { return new Horde_Alarm_HandlerTest_Identity(); } } class Horde_Alarm_HandlerTest_Identity { public function getDefaultFromAddress() { return 'john@example.com'; } } class Horde_Alarm_HandlerTest_NotificationFactory { private $storage; public function __construct($storage) { $this->storage = $storage; } public function create() { return new Horde_Notification_Handler($this->storage); } } Horde_Alarm-2.0.5/test/Horde/Alarm/NullTest.php0000664000076600000240000000631312231336712016156 0ustar * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @category Horde * @package Alarm * @subpackage UnitTests */ class Horde_Alarm_NullTest extends PHPUnit_Framework_TestCase { protected static $alarm; protected static $date; protected static $end; public function testFactory() { self::$alarm = new Horde_Alarm_Null(); } /** * @depends testFactory */ public function testSet() { $now = time(); self::$date = new Horde_Date($now); self::$end = new Horde_Date($now + 3600); $hash = array('id' => 'personalalarm', 'user' => 'john', 'start' => self::$date, 'end' => self::$end, 'methods' => array(), 'params' => array(), 'title' => 'This is a personal alarm.'); self::$alarm->set($hash); } /** * @depends testFactory */ public function testExists() { $this->assertFalse(self::$alarm->exists('personalalarm', 'john')); } /** * @depends testFactory * @expectedException Horde_Alarm_Exception */ public function testGet() { $alarm = self::$alarm->get('personalalarm', 'john'); } /** * @depends testFactory */ public function testListAlarms() { self::$alarm->set(array('id' => 'publicalarm', 'start' => self::$date, 'end' => self::$end, 'methods' => array(), 'params' => array(), 'title' => 'This is a public alarm.')); self::$date->min--; $list = self::$alarm->listAlarms('john'); $this->assertEquals(0, count($list)); } /** * @depends testFactory */ public function testDelete() { self::$alarm->delete('publicalarm', ''); $list = self::$alarm->listAlarms('john'); $this->assertEquals(0, count($list)); } /** * @depends testFactory * @expectedException Horde_Alarm_Exception */ public function testSnoozeException() { self::$alarm->snooze('personalalarm', 'jane', 30); } /** * @depends testFactory */ public function testSnooze() { $this->assertFalse(self::$alarm->isSnoozed('personalalarm', 'john')); } /** * @depends testFactory */ public function testAlarmWithoutEnd() { self::$alarm->set(array('id' => 'noend', 'user' => 'john', 'start' => self::$date, 'methods' => array('notify'), 'params' => array(), 'title' => 'This is an alarm without end.')); $list = self::$alarm->listAlarms('john', self::$end); $this->assertEquals(0, count($list)); } /** * @depends testFactory */ public function testCleanUp() { self::$alarm->delete('noend', 'john'); self::$alarm->delete('personalalarm', 'john'); } } Horde_Alarm-2.0.5/test/Horde/Alarm/ObjectTest.php0000664000076600000240000001201412231336712016445 0ustar * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @category Horde * @package Alarm * @subpackage UnitTests */ class Horde_Alarm_ObjectTest extends PHPUnit_Framework_TestCase { protected static $alarm; protected static $date; protected static $end; public function testFactory() { self::$alarm = new Horde_Alarm_Object(); } /** * @depends testFactory */ public function testSet() { $now = time(); self::$date = new Horde_Date($now); self::$end = new Horde_Date($now + 3600); $hash = array('id' => 'personalalarm', 'user' => 'john', 'start' => self::$date, 'end' => self::$end, 'methods' => array(), 'params' => array(), 'title' => 'This is a personal alarm.'); self::$alarm->set($hash); } /** * @depends testSet */ public function testExists() { $this->assertTrue(self::$alarm->exists('personalalarm', 'john')); } /** * @depends testExists */ public function testGet() { $alarm = self::$alarm->get('personalalarm', 'john'); $this->assertInternalType('array', $alarm); $this->assertEquals('personalalarm', $alarm['id']); $this->assertEquals('john', $alarm['user']); $this->assertEquals(array(), $alarm['methods']); $this->assertEquals(array(), $alarm['params']); $this->assertEquals('This is a personal alarm.', $alarm['title']); $this->assertNull($alarm['text']); $this->assertNull($alarm['snooze']); $this->assertNull($alarm['internal']); $this->assertThat($alarm['start'], $this->isInstanceOf('Horde_Date')); $this->assertThat($alarm['end'], $this->isInstanceOf('Horde_Date')); $this->assertEquals(0, $alarm['start']->compareDateTime(self::$date)); return $alarm; } /** * @depends testGet */ public function testUpdate($alarm) { $alarm['title'] = 'Changed alarm text'; self::$alarm->set($alarm); } /** * @depends testUpdate */ public function testListAlarms() { self::$alarm->set(array('id' => 'publicalarm', 'start' => self::$date, 'end' => self::$end, 'methods' => array(), 'params' => array(), 'title' => 'This is a public alarm.')); self::$date->min--; $list = self::$alarm->listAlarms('john'); $this->assertEquals(2, count($list)); $this->assertEquals('publicalarm', $list[0]['id']); $this->assertEquals('personalalarm', $list[1]['id']); } /** * @depends testListAlarms */ public function testDelete() { self::$alarm->delete('publicalarm', ''); $list = self::$alarm->listAlarms('john'); $this->assertEquals(1, count($list)); $this->assertEquals('personalalarm', $list[0]['id']); } /** * @depends testDelete * @expectedException Horde_Alarm_Exception */ public function testSnoozeException() { self::$alarm->snooze('personalalarm', 'jane', 30); } /** * @depends testDelete */ public function testSnooze() { self::$alarm->snooze('personalalarm', 'john', 30); $this->assertTrue(self::$alarm->isSnoozed('personalalarm', 'john')); $list = self::$alarm->listAlarms('john'); $this->assertEquals(0, count($list)); $list = self::$alarm->listAlarms('john', self::$end); $this->assertEquals(1, count($list)); $this->assertEquals('personalalarm', $list[0]['id']); /* Test resetting snooze after changing the alarm. */ $alarm = self::$alarm->get('personalalarm', 'john'); self::$alarm->set($alarm, true); $this->assertTrue(self::$alarm->isSnoozed('personalalarm', 'john')); self::$alarm->set($alarm); $this->assertFalse(self::$alarm->isSnoozed('personalalarm', 'john')); } /** * @depends testSnooze */ public function testAlarmWithoutEnd() { self::$alarm->set(array('id' => 'noend', 'user' => 'john', 'start' => self::$date, 'methods' => array('notify'), 'params' => array(), 'title' => 'This is an alarm without end.')); $list = self::$alarm->listAlarms('john', self::$end); $this->assertEquals(2, count($list)); $this->assertEquals('noend', $list[0]['id']); $this->assertEquals('personalalarm', $list[1]['id']); } /** * @depends testAlarmWithoutEnd */ public function testCleanUp() { self::$alarm->delete('noend', 'john'); self::$alarm->delete('personalalarm', 'john'); } } Horde_Alarm-2.0.5/test/Horde/Alarm/phpunit.xml0000664000076600000240000000005612231336712016102 0ustar Horde_Alarm-2.0.5/test/Horde/Alarm/SqlTest.php0000664000076600000240000001430412231336712016002 0ustar * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @category Horde * @package Alarm * @subpackage UnitTests */ class Horde_Alarm_SqlTest extends Horde_Test_Case { protected static $skip = false; protected static $db; protected static $migrator; protected static $alarm; protected static $date; protected static $end; public static function setUpBeforeClass() { // @fixme $GLOBALS['language'] = 'en_US'; $conf = self::getConfig('ALARM_TEST_CONFIG'); if (!isset($conf['alarm']['test'])) { self::$skip = true; return; } $adapter = str_replace(' ', '_' , ucwords(str_replace('_', ' ', basename($conf['alarm']['test']['horde']['adapter'])))); $class = 'Horde_Db_Adapter_' . $adapter; self::$db = new $class($conf['alarm']['test']['horde']); self::$migrator = new Horde_Db_Migration_Migrator(self::$db, null, array('migrationsPath' => dirname(dirname(dirname(__DIR__))) . '/migration/Horde/Alarm')); self::$migrator->up(); } public static function tearDownAfterClass() { if (self::$migrator) { self::$migrator->down(); } } public function setUp() { if (self::$skip) { $this->markTestSkipped('No configuration for Horde_Alarm test.'); } } public function testFactory() { self::$alarm = new Horde_Alarm_Sql(array('db' => self::$db, 'charset' => 'UTF-8')); self::$alarm->initialize(); self::$alarm->gc(true); } /** * @depends testFactory */ public function testSet() { $now = time(); self::$date = new Horde_Date($now); self::$end = new Horde_Date($now + 3600); $hash = array('id' => 'personalalarm', 'user' => 'john', 'start' => self::$date, 'end' => self::$end, 'methods' => array(), 'params' => array(), 'title' => 'This is a personal alarm.'); self::$alarm->set($hash); } /** * @depends testSet */ public function testExists() { $this->assertTrue(self::$alarm->exists('personalalarm', 'john')); } /** * @depends testExists */ public function testGet() { $alarm = self::$alarm->get('personalalarm', 'john'); $this->assertInternalType('array', $alarm); $this->assertEquals('personalalarm', $alarm['id']); $this->assertEquals('john', $alarm['user']); $this->assertEquals(array(), $alarm['methods']); $this->assertEquals(array(), $alarm['params']); $this->assertEquals('This is a personal alarm.', $alarm['title']); $this->assertNull($alarm['text']); $this->assertNull($alarm['snooze']); $this->assertNull($alarm['internal']); $this->assertThat($alarm['start'], $this->isInstanceOf('Horde_Date')); $this->assertThat($alarm['end'], $this->isInstanceOf('Horde_Date')); $this->assertEquals(0, $alarm['start']->compareDateTime(self::$date)); return $alarm; } /** * @depends testGet */ public function testUpdate($alarm) { $alarm['title'] = 'Changed alarm text'; self::$alarm->set($alarm); } /** * @depends testUpdate */ public function testListAlarms() { self::$date->min--; self::$alarm->set(array('id' => 'publicalarm', 'start' => self::$date, 'end' => self::$end, 'methods' => array(), 'params' => array(), 'title' => 'This is a public alarm.')); $list = self::$alarm->listAlarms('john'); $this->assertEquals(2, count($list)); $this->assertEquals('publicalarm', $list[0]['id']); $this->assertEquals('personalalarm', $list[1]['id']); } /** * @depends testListAlarms */ public function testDelete() { self::$alarm->delete('publicalarm', ''); $list = self::$alarm->listAlarms('john'); $this->assertEquals(1, count($list)); $this->assertEquals('personalalarm', $list[0]['id']); } /** * @depends testDelete * @expectedException Horde_Alarm_Exception */ public function testSnoozeException() { self::$alarm->snooze('personalalarm', 'jane', 30); } /** * @depends testDelete */ public function testSnooze() { self::$alarm->snooze('personalalarm', 'john', 30); $this->assertTrue(self::$alarm->isSnoozed('personalalarm', 'john')); $list = self::$alarm->listAlarms('john'); $this->assertEquals(0, count($list)); $list = self::$alarm->listAlarms('john', self::$end); $this->assertEquals(1, count($list)); $this->assertEquals('personalalarm', $list[0]['id']); /* Test resetting snooze after changing the alarm. */ $alarm = self::$alarm->get('personalalarm', 'john'); self::$alarm->set($alarm, true); $this->assertTrue(self::$alarm->isSnoozed('personalalarm', 'john')); self::$alarm->set($alarm); $this->assertFalse(self::$alarm->isSnoozed('personalalarm', 'john')); } /** * @depends testSnooze */ public function testAlarmWithoutEnd() { self::$alarm->set(array('id' => 'noend', 'user' => 'john', 'start' => self::$date, 'methods' => array('notify'), 'params' => array(), 'title' => 'This is an alarm without end.')); $list = self::$alarm->listAlarms('john', self::$end); $this->assertEquals(2, count($list)); $this->assertEquals('noend', $list[0]['id']); $this->assertEquals('personalalarm', $list[1]['id']); } /** * @depends testAlarmWithoutEnd */ public function testCleanUp() { self::$alarm->delete('noend', 'john'); self::$alarm->delete('personalalarm', 'john'); } }