pax_global_header00006660000000000000000000000064126404706620014521gustar00rootroot0000000000000052 comment=7b431aa8de82e1fcbb5a0cd1e18e994cdde733e3 gbirthday-0.6.10/000077500000000000000000000000001264047066200135625ustar00rootroot00000000000000gbirthday-0.6.10/.gitignore000066400000000000000000000001021264047066200155430ustar00rootroot00000000000000*.tar* *.pyc *.src.rpm noarch gbirthday.spec .coverage *.swp dist gbirthday-0.6.10/.tx/000077500000000000000000000000001264047066200142735ustar00rootroot00000000000000gbirthday-0.6.10/.tx/config000066400000000000000000000002221264047066200154570ustar00rootroot00000000000000[main] host = https://www.transifex.net [gbirthday.master] file_filter = po/.po source_file = po/gbirthday.pot source_lang = en type = PO gbirthday-0.6.10/COPYING000066400000000000000000000431331264047066200146210ustar00rootroot00000000000000GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 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. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, 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 or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's 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 give any other recipients of the Program a copy of this License along with the Program. 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 Program or any portion of it, thus forming a work based on the Program, 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) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, 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 Program, 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 Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) 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; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, 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 executable. However, as a special exception, the source code 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. If distribution of executable or 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 counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program 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. 5. 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 Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program 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 to this License. 7. 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 Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program 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 Program. 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. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program 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. 9. The Free Software Foundation may publish revised and/or new versions of the 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 Program 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 Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, 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 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "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 PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. 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 PROGRAM 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 PROGRAM (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 PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. gbirthday-0.6.10/Changelog000066400000000000000000000115661264047066200154050ustar00rootroot000000000000000.6.10 - Fix to minor fix in last release... 0.6.9 - Minor fixes related to installation 0.6.8 - Remove Evolution as supported DB 0.6.7 - Fix bug if two birthdates same D-M different Y - Fix bug in .ics export (UID must be unique) - Translation updates: Cesky, Italian, French - Tarball generation improvement in Makefile 0.6.6 - GUI revamp - Hide from taskbar - Store config in XDG_CONFIG_HOME or ~/.config - Export gbirthday list as iCalendar file - Use datetime instead of strings - Translation updates: Italian, Finnish 0.6.5 - Reload addressbook, when clickint on 'Save & Close' - Properly close about-dialog on 'X' - Internal code clean up - Translation update: Czech, Danish, Hebrew - Fedora bugs: #598240 Fix crash, when adding person to cvs file 0.6.4 Bugfixing: - Fedora bugs: #563405 Fix lightning crash #568190 Make csv_files variable optional in config #570196 When there is no evolution addressbook, silently abort parsing. #579097 sunbird 1.0 moved the database 0.6.3 Internal code clean up Apply most suggestions from 2to3 script (all python2.6 can understand) 0.6.2 Fix annoying translation bug (worth an own new version) 0.6.1 MySQL was wrong initialized (fedora #556210) Fixed fedora bugs: #554780 0.6 Partly implement some new languages Bugfixing Don't blink anymore, instead show red icon Show notification of todays' birthdays Show notification of next birthdays (configurable) Fixed fedora bugs: #551795, #552642, #552946, #553571 0.5.6 Without evolution addressbook, don't crash (fedora bug #548007) 0.5.5 On double click, don't blink anymore. Don't show 'don't blink', when not blinking atm Bugfixing (fedora bug #546539) Bugfixing (fedora bug #546869): wrong format of date from evolution Use gnome-python2-evolution for getting vcards 0.5.4 Fix 00:00 bug Don't show 'do not blink', when nobody has birthday today Should be done better, but the best for now. If made dynamically gtk mixes things around... 0.5.3 Install into python_sitelib Follow indention as described in PEP8 Bugfixing (fedora bug #539774) 0.5.2 Added gettext support for easier translation Translation system added at: http://www.transifex.net/projects/p/gbirthday/ Use python class ConfigParser for handling the config file !!! now in a different format !!! 0.5.1 Fixed bug with Categories in Lightning-SQLite-Database 0.5.0 Created 'Database'-Structure Sdded support for CSV-files (comma-seperated value) Added support for MySQL Added support for Thunderbird/Icedove Lightning Added support for Sunbrid / IceOwl Fixed minor bugs 0.4.2 Added Makefile for (un)install instead bash script Added License file with GPLv2+ Pics are now installed into /usr/share/pixmaps Swiched to .tar.lzma 0.4.1 Fixed bug with month text and python 2.4. Fixed bug with birthdays in same day and year. Forced pygtk version to 2. It needs 2.10 to work. Added support for multiple evolution addressbooks, by Stefan Jurco. Inproved title box background color, now gets value from gtk theme. Set greyscale when no birthdays in selected period. Added Slovak translation, by Stefan Jurco. Added Italian translation, by Alex Mallo. 0.4.0 Added internationalization, by Robert Wildburger. Added languages: German, Spanish, French, Portuguese and Galician. Fixed stop blinking bug which made it start to blink again each minute. 0.3.4 Fixed bug with data format that mades gbirthday to crash. 0.3.3 Rewrote about window with gtk.AboutDialog. Added function to check and blink if there are birthdays today at midnight. Improved preference spinners signals. Set Past birthdays spinner as a reverse spinner. 0.3.2 Added preferences window to set past and next birthdays range. Improved birthday data window when no birthday with message. 0.3.1 Fixed file as "lastname, firstname" backslash character issue. Added configuration File: ~/.gbirthday.conf. 0.3.0 Set birthday data fake title background to label bg color. Added birthday window fake frame. Some about window lesser look improvements. New icon set trying to follow tango guidelines Changed stop blinking icon. 0.2.4 Erased negative sign in lost birthdays. Fixed double click bug that aviod birthday data window close. Set birthday data window icon. Deleted lots of obsolete debugging lines. Added About window. 0.2.3 Changed name shown from "Full Name" to "File as". Best Alignement on birthday bindow. Bold text on today birthdays. Grey text on lost birthdays. 0.2.2 Added path to resources folder on image loading. Added ugly install script. 0.2.1 Added years to birthdays window. Best title look. 0.2.0 Moved birthday data to frameless left click (fake menu) window. Splited data into a table. 0.1.2 Added "Reload" option. Added "Stop blinking" option. 0.1.1 Fixed issue with 2 character months. 0.1.0 First version, Just a popup menu with birthday data and quit. gbirthday-0.6.10/Makefile000066400000000000000000000036601264047066200152270ustar00rootroot00000000000000bindir = /usr/bin datadir = /usr/share sitelib = $(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)") pixmaps = $(datadir)/pixmaps version = 0.6.10 DIST_DIR = dist install = install -p mkdir = mkdir -p cp = cp -a rm = rm -f tar = tar --exclude=.git --exclude=*.pyc python = /usr/bin/python default: echo Nothing to do. clean: $(rm) po/untitled.pot $(rm) *.tar.* $(rm) gbirthday.desktop $(rm) -r gbirthday-$(version) BUILDROOT noarch $(rm) gbirthday*.src.rpm find . -name \*.pyc -delete install: intltool-merge -d ./po ./gbirthday.desktop.in ./gbirthday.desktop sed -i "s|@VER@|$(version)|g" src/gbirthday/__init__.py sed -i "s|/usr/bin/python|$(python)|g" src/gb $(mkdir) $(DESTDIR)$(pixmaps) $(install) -m 644 pics/gbirthday.png $(DESTDIR)$(pixmaps) $(mkdir) $(DESTDIR)$(sitelib) $(cp) src/gbirthday/ $(DESTDIR)$(sitelib) $(rm) $(DESTDIR)$(sitelib)/gbirthday/test*.py $(mkdir) $(DESTDIR)$(datadir)/applications/ $(install) -m 644 gbirthday.desktop \ $(DESTDIR)$(datadir)/applications/ $(mkdir) $(DESTDIR)$(bindir) $(install) -m 755 src/gb $(DESTDIR)$(bindir)/gbirthday cd po && $(python) install_po.py $(DESTDIR) uninstall: $(rm) $(DESTDIR)$(bindir)/gbirthday $(rm) $(DESTDIR)$(datadir)/applications/gbirthday.desktop $(rm) $(DESTDIR)$(datadir)/locale/*/LC_MESSAGES/gbirthday.mo $(rm) $(DESTDIR)$(pixmaps)/gbirthday.png $(rm) -r $(DESTDIR)$(sitelib)/gbirthday snapshot: clean mkdir -p $(DIST_DIR)/gbirthday-$(version) rsync -avz --exclude=.* --exclude=$(DIST_DIR) ./ $(DIST_DIR)/gbirthday-$(version) tar.gz: snapshot cd $(DIST_DIR) && $(tar) -zcf gbirthday-$(version).tar.gz gbirthday-$(version) tar.xz: snapshot cd $(DIST_DIR) && $(tar) -Jcf gbirthday-$(version).tar.xz gbirthday-$(version) test: nosetests -v --with-coverage --cover-package=gbirthday pot: cd po && intltool-update --pot -g gbirthday rpm: tar.xz cp gbirthday-*.tar.xz ~/rpmbuild/SOURCES rpmbuild -ba gbirthday.spec gbirthday-0.6.10/README000066400000000000000000000002411264047066200144370ustar00rootroot00000000000000Required packages for proper working: (when imported, exceptions won't always be caugth in a try-except) gnome-python2-gnome, MySQLdb, pygtk, gtk, configparser gbirthday-0.6.10/TODO000066400000000000000000000014611264047066200142540ustar00rootroot00000000000000TODO for gbirthday [BUGFIX] icons in rightclick-Menu [TESTS] extended tests for databases [FEATURE] save dialog/export birthdays [FEATURE] backup-functions [FEATURE] configuration window for lightning [FEATURE] configuration window for sunbird [FEATURE] input multiple birthdays [FEATURE] deployment/install scripts [XXX] Better (more consist) way to reload (see the rest of this commit for a reason) [NICE-TO-HAVE] get birthdays from pidgin tomspur: Why? There is a pidgin and evolution integration. Then you'll have your pidin contacts in evolution and can get it from there. [OTHER_UPSTREAM_WORK] improve python2-evolution to emit contact.props.birth_date and use that instead of the vcard DONE: [XXX] set AdressBook for each database in constructor (?) [BUGFIX] close about-dialog with X gbirthday-0.6.10/gbirthday.desktop.in000066400000000000000000000002631264047066200175400ustar00rootroot00000000000000[Desktop Entry] Name=GBirthday _Comment=Birthday reminder for E-Mail contacts Exec=gbirthday Terminal=false Type=Application Categories=Office; StartupNotify=false Icon=gbirthday gbirthday-0.6.10/pics/000077500000000000000000000000001264047066200145205ustar00rootroot00000000000000gbirthday-0.6.10/pics/gbirthday.png000066400000000000000000000114171264047066200172070ustar00rootroot00000000000000PNG  IHDR@@iqsBIT|d pHYsttfxtEXtSoftwarewww.inkscape.org<IDATxyp\ŝ?5F7%Ydl1`g+!)V U,n6YlˆJ#`am}4y?fFY#k$V7M~߷G(LFoB3ϠVJ(gO1R6X-N+%D <>*躾_,]ibS &O~Np]B&0KB@UqGDƍM<3%%p-dW8 +N_H$hiiȘ⟂@Kp4#(GN0(!D^byF$lȫ V^] 8KgOp潁MD6˽p8L4I04M*uvgL+b+J\WMcZiWjF("OmtJ{[F[k˖#h5򞣏!KR"/8uÆ |pBɘ!74iZ׿<@{[]]]yED!Szf$Zr3 eC.UU(D"ؔp'јS@ӴT/]]]޵μCee%XYGGaѷ T RxJ*SZB_*2jkk欳/..+FIXVx I"vl7e..Z=$)H&+4Mb+HdfQ?m;;ձ bYH)#֭+ݸqcWBi)m>00'Aoo9[T>`~cc#4;@L"$ĉ@\gxt=+oa< aӚ9{ )%v294ȵ"'1(//' xd @.cX)q7x#B|k_{>'Xl39˓9π3gD ۶7+KNWN(<3ba'J!;Ԁ׮]{W>7N~F mJJIVT2Ϛ.  rw ;~zdɹ+vځV .]֮q/NIعc{!60@mX{H{e' 0 ?V*{B3<fWSCu;::\u?R޴qs3"X~93(?s_i-5WF0 н!<ÚjlANi@Zر.>cZ^|3TJaE^ qw{op72/l۾\Ayyiл)^QP?Wv^p`u*BO5/QHm<: M~h2@)4  j3!r9Mhe@U[!~vzȵ'f)nl*O>T&GkB Ϙ׋<ɋX)V~ .13Q)e7ߠcS]V*.{"p#4mzII ==O>t@)3a8 R0TZqKҁO ~ n>z:jGnVSuK4B3͋nH<ɂ!eRg;8s`Pο}ey(|}O2RsW_}5/2W\qH)SJ ݟ,c"H/<@>&7V+*'s\UN`벰Pu-[Ӄ?d1eaeM#'Di+0BxV^=?RJq*++ٽ{VJҠ LmlYI>A r >]/0]E4XxdHưy7`YrmbvUBxo  !fb6EEEl۶)0 ?"$:@h+o)T| ٓE F xKR;Bhr\S)5<0l^tEsuK$B+lz@5 &d훑^ j[V(9:?uԽP e3ɛj(,FD?>TyK c+G*=밤t@˲|AIIɄh;\ô'T]pl}.LR"$4)l =9x_RbGOAѽ{4yPtL(4-AT۷omkkkkkijj i֎^_W\A).x Pa+?E~oZ,e~1èLzv.-)+cߣS}w^t3}o`ZAO! VZ骪*}x4Ho/tq!0 unchZljԻB¿֣ 4L%pp\ESyQ^r];y>xNknB4M+RJeָ ʕbˋ9g˞w P`x, ^=@")s\LnZaGu >(m/6e!שw͎YJ4of4H|,6mKÉ 섎Mk\)8 $見hBa5z:4ڎ8t7ohN)Σ7M)1s}MS|zAcϝoX]]Ss#E= J Jl _"4@O T Cϕ+H5݂NM| t fsV'Wvj㳗RJB'Cx-d%(/UsBsތRvD|l!t7h^/W8|?uMm[ A"Oخ'Qxbg-cz1"XNCeӋ񅮏_"x3 XZ^shW\-6kS˃t۴t 3ۇ]vDF3цFQEKq}eؾJ_*E|.᠟2?S"*t%x=[>T>~'[g:ç'^"3%LJ~yݥ3KkČBRN0pI$]$eߣ9u:E^B~Ǣ^ys@:kG:wn>H֨gqLX(=#SyP+.ϛQ!J> ^ &!ߣc'#q%p'H3`mo[T,tX{_9s'z[=g,~\O7eEfqa NQ"B 0u#E qMml\v5==y~뎥\3 RNP dCҞ(6f0 |V?R[)(:ɁmEۻ;tt,vdZD CSF.\R\2[Zcdps) l(1u7d .u= sRT Q`ZIENDB`gbirthday-0.6.10/pics/gbirthday.svg000066400000000000000000001371741264047066200172330ustar00rootroot00000000000000 image/svg+xml Calendar Jakub Steiner http://jimmac.musichall.cz calendar date time cal gbirthday-0.6.10/pics/pie.svg000066400000000000000000001026631264047066200160260ustar00rootroot00000000000000 image/svg+xml gbirthday-0.6.10/po/000077500000000000000000000000001264047066200142005ustar00rootroot00000000000000gbirthday-0.6.10/po/.gitignore000066400000000000000000000000151264047066200161640ustar00rootroot00000000000000untitled.pot gbirthday-0.6.10/po/POTFILES.in000066400000000000000000000005001264047066200157500ustar00rootroot00000000000000src/gbirthday/gtk_funcs.py src/gbirthday/addressbook.py src/gbirthday/__init__.py src/gbirthday/status_icon.py src/gbirthday/databases/sunbird.py src/gbirthday/databases/csv.py src/gbirthday/databases/__init__.py src/gbirthday/databases/mysql.py src/gbirthday/databases/lightning.py src/gbirthday/databases/evolution.py gbirthday-0.6.10/po/cs.po000066400000000000000000000134421264047066200151510ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # , 2012. # Zdeněk Jurka , 2010. msgid "" msgstr "" "Project-Id-Version: gbirthday\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-05-10 01:00+0200\n" "PO-Revision-Date: 2012-08-28 07:10+0000\n" "Last-Translator: jui \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: cs\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" #: ../src/gbirthday/addressbook.py:148 ../src/gbirthday/status_icon.py:779 msgid "Birthday" msgstr "Narozeniny" #: ../src/gbirthday/addressbook.py:149 ../src/gbirthday/addressbook.py:160 msgid "Birthday: " msgstr "Narozeniny:" #: ../src/gbirthday/status_icon.py:88 msgid "Birthday today:" msgstr "Dnešní narozeniny:" #: ../src/gbirthday/status_icon.py:91 msgid "Birthday tomorrow:" msgstr "Zítřejší narozeniny:" #: ../src/gbirthday/status_icon.py:93 #, python-format msgid "Birthday in %s Days:" msgstr "Narozeniny během %s dní:" #: ../src/gbirthday/status_icon.py:141 msgid "Birthday reminder" msgstr "Připomenutí narozenin" #: ../src/gbirthday/status_icon.py:173 msgid "translator-credit" msgstr "překlad Blonďák " #: ../src/gbirthday/status_icon.py:178 msgid "" "There are no translations or the translator doesn't want to get credits for " "that." msgstr "Nejsou zde zádné překlady, nebo zde nejsou žádné poznámky k překladu." #: ../src/gbirthday/status_icon.py:227 msgid "Birthdays" msgstr "Narozeniny" #: ../src/gbirthday/status_icon.py:230 msgid "No birthdays in specified period" msgstr "Ve zvoleném období nejsou žádné narozeniny" #: ../src/gbirthday/status_icon.py:250 #, python-format msgid "%s Years" msgstr "%s let" #: ../src/gbirthday/status_icon.py:261 ../src/gbirthday/status_icon.py:262 msgid "Today" msgstr "dnes" #: ../src/gbirthday/status_icon.py:279 ../src/gbirthday/status_icon.py:282 msgid "Yesterday" msgstr "včera" #: ../src/gbirthday/status_icon.py:284 #, python-format msgid "%s Days ago" msgstr "před %s dny" #: ../src/gbirthday/status_icon.py:295 msgid "Tomorrow" msgstr "zítra" #: ../src/gbirthday/status_icon.py:297 #, python-format msgid "%s Days" msgstr "%s dní" #: ../src/gbirthday/status_icon.py:344 msgid "Preferences" msgstr "Předvolby" #: ../src/gbirthday/status_icon.py:353 msgid "Past birthdays" msgstr "Uplynulé narozeniny" #: ../src/gbirthday/status_icon.py:357 msgid "Next birthdays" msgstr "Příští narozeniny" #: ../src/gbirthday/status_icon.py:361 msgid "Notification: Future birthdays" msgstr "Oznámení blížících se narozenin" #: ../src/gbirthday/status_icon.py:365 msgid "ICS Calendar export" msgstr "Export ICS kalendáře" #: ../src/gbirthday/status_icon.py:369 msgid "Database" msgstr "Databáze" #: ../src/gbirthday/status_icon.py:424 msgid "Database Configuration" msgstr "Nastavení databáze" #: ../src/gbirthday/status_icon.py:546 msgid "ICS Export configuration" msgstr "Nastavení ICS exportu" #: ../src/gbirthday/status_icon.py:573 msgid "Export birthday list in iCalendar file:" msgstr "Export seznamu narozenin v iCalendar souboru:" #: ../src/gbirthday/status_icon.py:583 msgid "Browse" msgstr "Prohlížet" #: ../src/gbirthday/status_icon.py:605 msgid "Set alarms" msgstr "Nastavit alarmy" #: ../src/gbirthday/status_icon.py:617 msgid "days before each birthday" msgstr "dnů před každými narozeninami" #. Custom properties #: ../src/gbirthday/status_icon.py:634 msgid "Use this if you know what you're doing. See RFC 2445." msgstr "Použít tuto možnost, pokud víte, co děláte. Viz RFC 2445." #. ICS VEVENT custom properties #: ../src/gbirthday/status_icon.py:638 msgid "Custom ICS properties for VEVENT" msgstr "Vlastní ICS vlastnosti pro VEVENT" #. ICS VALARM custom properties #: ../src/gbirthday/status_icon.py:660 msgid "Custom ICS properties for VALARM" msgstr "Vlastní ICS vlastnosti pro VALARM" #: ../src/gbirthday/status_icon.py:765 msgid "Add" msgstr "Přidat" #: ../src/gbirthday/status_icon.py:774 msgid "Name" msgstr "Jméno" #: ../src/gbirthday/status_icon.py:784 msgid "Save to file/database" msgstr "Uložit do souboru/databáze" #: ../src/gbirthday/databases/sunbird.py:42 msgid "Neither iceowl nor sunbird is installed" msgstr "Iceowl ani Sunbird není nainstalován" #: ../src/gbirthday/databases/csv.py:49 msgid "Could not load CSV-file:" msgstr "Nelze načíst CSV-soubor:" #: ../src/gbirthday/databases/csv.py:57 msgid "CSV-file does not exist" msgstr "CVS soubor neexistuje" #: ../src/gbirthday/databases/csv.py:94 msgid "File" msgstr "Soubor" #: ../src/gbirthday/databases/mysql.py:42 #: ../src/gbirthday/databases/lightning.py:79 #, python-format msgid "Package %s is not installed." msgstr "Balíček %s není nainstalován," #: ../src/gbirthday/databases/mysql.py:51 msgid "Could not connect to MySQL-Server" msgstr "Nemohu se připojit na MySQL server" #: ../src/gbirthday/databases/mysql.py:70 #: ../src/gbirthday/databases/mysql.py:83 msgid "Could not execute MySQL-query" msgstr "Nemohu spusti MySQL dotaz" #: ../src/gbirthday/databases/lightning.py:65 #, python-format msgid "Error reading profile file: %s" msgstr "Chyba čtení souboru profilu: %s" #: ../src/gbirthday/databases/lightning.py:84 #, python-format msgid "sqlite3 could not connect: %s" msgstr "Nemohu se připojit na sqlite3: %s" #: ../src/gbirthday/databases/lightning.py:149 msgid "Could not execute SQLite-query" msgstr "Nemohu spusti SQLite dotaz" #: ../src/gbirthday/databases/evolution.py:41 msgid "You need to install python-evolution to use the evolution module" msgstr "Je třeba nainstalovat python-evolution pro použítí evolution modulu" gbirthday-0.6.10/po/da.po000066400000000000000000000126601264047066200151310ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Joe Hansen , 2010. msgid "" msgstr "" "Project-Id-Version: gbirthday\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-05-10 01:00+0200\n" "PO-Revision-Date: 2012-05-09 23:01+0000\n" "Last-Translator: Jerometransifex \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: da\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" #: ../src/gbirthday/addressbook.py:148 ../src/gbirthday/status_icon.py:779 msgid "Birthday" msgstr "Fødselsdag" #: ../src/gbirthday/addressbook.py:149 ../src/gbirthday/addressbook.py:160 msgid "Birthday: " msgstr "" #: ../src/gbirthday/status_icon.py:88 msgid "Birthday today:" msgstr "Dagens fødselsdage:" #: ../src/gbirthday/status_icon.py:91 msgid "Birthday tomorrow:" msgstr "Fødselsdage i morgen:" #: ../src/gbirthday/status_icon.py:93 #, python-format msgid "Birthday in %s Days:" msgstr "Fødselsdage om %s dage:" #: ../src/gbirthday/status_icon.py:141 msgid "Birthday reminder" msgstr "Fødselsdagshusker" #: ../src/gbirthday/status_icon.py:173 msgid "translator-credit" msgstr "Joe Hansen, 2010.\n\nDansk-gruppen \nMere info: http://www.dansk-gruppen.dk" #: ../src/gbirthday/status_icon.py:178 msgid "" "There are no translations or the translator doesn't want to get credits for " "that." msgstr "Der er ingen oversættelser eller oversætteren ønsker ikke at blive krediteret." #: ../src/gbirthday/status_icon.py:227 msgid "Birthdays" msgstr "Fødselsdage" #: ../src/gbirthday/status_icon.py:230 msgid "No birthdays in specified period" msgstr "Ingen fødselsdage i angivet periode" #: ../src/gbirthday/status_icon.py:250 #, python-format msgid "%s Years" msgstr "%s år" #: ../src/gbirthday/status_icon.py:261 ../src/gbirthday/status_icon.py:262 msgid "Today" msgstr "I dag" #: ../src/gbirthday/status_icon.py:279 ../src/gbirthday/status_icon.py:282 msgid "Yesterday" msgstr "I går" #: ../src/gbirthday/status_icon.py:284 #, python-format msgid "%s Days ago" msgstr "%s dage siden" #: ../src/gbirthday/status_icon.py:295 msgid "Tomorrow" msgstr "I morgen" #: ../src/gbirthday/status_icon.py:297 #, python-format msgid "%s Days" msgstr "%s dage" #: ../src/gbirthday/status_icon.py:344 msgid "Preferences" msgstr "Indstillinger" #: ../src/gbirthday/status_icon.py:353 msgid "Past birthdays" msgstr "Tidligere fødselsdage" #: ../src/gbirthday/status_icon.py:357 msgid "Next birthdays" msgstr "Næste fødselsdage" #: ../src/gbirthday/status_icon.py:361 msgid "Notification: Future birthdays" msgstr "Meddelelse: Fremtidige fødselsdage" #: ../src/gbirthday/status_icon.py:365 msgid "ICS Calendar export" msgstr "" #: ../src/gbirthday/status_icon.py:369 msgid "Database" msgstr "Database" #: ../src/gbirthday/status_icon.py:424 msgid "Database Configuration" msgstr "Databasekonfiguration" #: ../src/gbirthday/status_icon.py:546 msgid "ICS Export configuration" msgstr "" #: ../src/gbirthday/status_icon.py:573 msgid "Export birthday list in iCalendar file:" msgstr "" #: ../src/gbirthday/status_icon.py:583 msgid "Browse" msgstr "" #: ../src/gbirthday/status_icon.py:605 msgid "Set alarms" msgstr "" #: ../src/gbirthday/status_icon.py:617 msgid "days before each birthday" msgstr "" #. Custom properties #: ../src/gbirthday/status_icon.py:634 msgid "Use this if you know what you're doing. See RFC 2445." msgstr "" #. ICS VEVENT custom properties #: ../src/gbirthday/status_icon.py:638 msgid "Custom ICS properties for VEVENT" msgstr "" #. ICS VALARM custom properties #: ../src/gbirthday/status_icon.py:660 msgid "Custom ICS properties for VALARM" msgstr "" #: ../src/gbirthday/status_icon.py:765 msgid "Add" msgstr "Tilføj" #: ../src/gbirthday/status_icon.py:774 msgid "Name" msgstr "Navn" #: ../src/gbirthday/status_icon.py:784 msgid "Save to file/database" msgstr "Gem til fil/database" #: ../src/gbirthday/databases/sunbird.py:42 msgid "Neither iceowl nor sunbird is installed" msgstr "Hverken iceowl eller sunbird er installeret" #: ../src/gbirthday/databases/csv.py:49 msgid "Could not load CSV-file:" msgstr "" #: ../src/gbirthday/databases/csv.py:57 msgid "CSV-file does not exist" msgstr "CSV-fil findes ikke" #: ../src/gbirthday/databases/csv.py:94 msgid "File" msgstr "" #: ../src/gbirthday/databases/mysql.py:42 #: ../src/gbirthday/databases/lightning.py:79 #, python-format msgid "Package %s is not installed." msgstr "Pakke %s er ikke installeret." #: ../src/gbirthday/databases/mysql.py:51 msgid "Could not connect to MySQL-Server" msgstr "Kunne ikke forbinde til MySQL-server" #: ../src/gbirthday/databases/mysql.py:70 #: ../src/gbirthday/databases/mysql.py:83 msgid "Could not execute MySQL-query" msgstr "Kunne ikke udføre MySQL-forespørgsel" #: ../src/gbirthday/databases/lightning.py:65 #, python-format msgid "Error reading profile file: %s" msgstr "Fejl under læsning af fil for profil: %s" #: ../src/gbirthday/databases/lightning.py:84 #, python-format msgid "sqlite3 could not connect: %s" msgstr "sqlite3 kunne ikke forbinde: %s" #: ../src/gbirthday/databases/lightning.py:149 msgid "Could not execute SQLite-query" msgstr "Kunne ikke udføre SQLite-forespørgsel" #: ../src/gbirthday/databases/evolution.py:41 msgid "You need to install python-evolution to use the evolution module" msgstr "" gbirthday-0.6.10/po/de.po000066400000000000000000000136621264047066200151400ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # , 2012. # Thomas Spura , 2009, 2012. msgid "" msgstr "" "Project-Id-Version: gbirthday\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-05-10 01:00+0200\n" "PO-Revision-Date: 2012-05-15 11:30+0000\n" "Last-Translator: Jerometransifex \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: de\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" #: ../src/gbirthday/addressbook.py:148 ../src/gbirthday/status_icon.py:779 msgid "Birthday" msgstr "Geburtstag" #: ../src/gbirthday/addressbook.py:149 ../src/gbirthday/addressbook.py:160 msgid "Birthday: " msgstr "Geburtstag:" #: ../src/gbirthday/status_icon.py:88 msgid "Birthday today:" msgstr "Heute hat Geburtstag:" #: ../src/gbirthday/status_icon.py:91 msgid "Birthday tomorrow:" msgstr "Morgen hat Geburtstag:" #: ../src/gbirthday/status_icon.py:93 #, python-format msgid "Birthday in %s Days:" msgstr "Geburtstag in %s Tagen:" #: ../src/gbirthday/status_icon.py:141 msgid "Birthday reminder" msgstr "Geburtstagserinnerer" #: ../src/gbirthday/status_icon.py:173 msgid "translator-credit" msgstr "Thomas Spura " #: ../src/gbirthday/status_icon.py:178 msgid "" "There are no translations or the translator doesn't want to get credits for " "that." msgstr "Es sind keine Übersetzungen verfügbar oder der Übersetzer möchte seinen Namen nicht angeben." #: ../src/gbirthday/status_icon.py:227 msgid "Birthdays" msgstr "Geburtstage" #: ../src/gbirthday/status_icon.py:230 msgid "No birthdays in specified period" msgstr "Keine Geburtstage in angegebener Zeitspanne." #: ../src/gbirthday/status_icon.py:250 #, python-format msgid "%s Years" msgstr "%s Jahre" #: ../src/gbirthday/status_icon.py:261 ../src/gbirthday/status_icon.py:262 msgid "Today" msgstr "Heute" #: ../src/gbirthday/status_icon.py:279 ../src/gbirthday/status_icon.py:282 msgid "Yesterday" msgstr "Gestern" #: ../src/gbirthday/status_icon.py:284 #, python-format msgid "%s Days ago" msgstr "vor %s Tagen" #: ../src/gbirthday/status_icon.py:295 msgid "Tomorrow" msgstr "Morgen" #: ../src/gbirthday/status_icon.py:297 #, python-format msgid "%s Days" msgstr "%s Tage" #: ../src/gbirthday/status_icon.py:344 msgid "Preferences" msgstr "Einstellungen" #: ../src/gbirthday/status_icon.py:353 msgid "Past birthdays" msgstr "Letzte Geburtstage" #: ../src/gbirthday/status_icon.py:357 msgid "Next birthdays" msgstr "Nächste Geburtstage" #: ../src/gbirthday/status_icon.py:361 msgid "Notification: Future birthdays" msgstr "Mitteilung: Zukünftige Geburtstage" #: ../src/gbirthday/status_icon.py:365 msgid "ICS Calendar export" msgstr "ICS-Kalender exportieren" #: ../src/gbirthday/status_icon.py:369 msgid "Database" msgstr "Datenbank" #: ../src/gbirthday/status_icon.py:424 msgid "Database Configuration" msgstr "Datenbank-Konfiguration" #: ../src/gbirthday/status_icon.py:546 msgid "ICS Export configuration" msgstr "ICS-Exportkonfiguration" #: ../src/gbirthday/status_icon.py:573 msgid "Export birthday list in iCalendar file:" msgstr "Geburtstagsliste in iCalendar-Datei exportieren:" #: ../src/gbirthday/status_icon.py:583 msgid "Browse" msgstr "Durchsuchen" #: ../src/gbirthday/status_icon.py:605 msgid "Set alarms" msgstr "Alarm setzen" #: ../src/gbirthday/status_icon.py:617 msgid "days before each birthday" msgstr "Tage vor jedem Geburtstag" #. Custom properties #: ../src/gbirthday/status_icon.py:634 msgid "Use this if you know what you're doing. See RFC 2445." msgstr "Verwenden Sie diese Option, wenn Sie wissen, was sie tun. Siehe RFC 2445." #. ICS VEVENT custom properties #: ../src/gbirthday/status_icon.py:638 msgid "Custom ICS properties for VEVENT" msgstr "Custom ICS-Eigenschaften für VEVENT" #. ICS VALARM custom properties #: ../src/gbirthday/status_icon.py:660 msgid "Custom ICS properties for VALARM" msgstr "Custom ICS-Eigenschaften für VALARM" #: ../src/gbirthday/status_icon.py:765 msgid "Add" msgstr "Hinzufügen" #: ../src/gbirthday/status_icon.py:774 msgid "Name" msgstr "Name" #: ../src/gbirthday/status_icon.py:784 msgid "Save to file/database" msgstr "In Datei/Datenbank speichern" #: ../src/gbirthday/databases/sunbird.py:42 msgid "Neither iceowl nor sunbird is installed" msgstr "Weder Iceowl noch Sunbird ist installiert." #: ../src/gbirthday/databases/csv.py:49 msgid "Could not load CSV-file:" msgstr "CSV-Datei konnte nicht geladen werden:" #: ../src/gbirthday/databases/csv.py:57 msgid "CSV-file does not exist" msgstr "CVS-Datei existiert nicht." #: ../src/gbirthday/databases/csv.py:94 msgid "File" msgstr "Datei" #: ../src/gbirthday/databases/mysql.py:42 #: ../src/gbirthday/databases/lightning.py:79 #, python-format msgid "Package %s is not installed." msgstr "Paket %s ist nicht installiert." #: ../src/gbirthday/databases/mysql.py:51 msgid "Could not connect to MySQL-Server" msgstr "Zum MySQL-Server konnte keine Verbindung hergestellt werden." #: ../src/gbirthday/databases/mysql.py:70 #: ../src/gbirthday/databases/mysql.py:83 msgid "Could not execute MySQL-query" msgstr "MySQL-Anfrage konnte nicht ausgeführt werden." #: ../src/gbirthday/databases/lightning.py:65 #, python-format msgid "Error reading profile file: %s" msgstr "Fehler beim Lesen der Profile-Datei: %s" #: ../src/gbirthday/databases/lightning.py:84 #, python-format msgid "sqlite3 could not connect: %s" msgstr "sqlite3 konnte keine Verbindung herstellen: %s" #: ../src/gbirthday/databases/lightning.py:149 msgid "Could not execute SQLite-query" msgstr "SQLite-Anfrage konnte nicht ausgeführt werden." #: ../src/gbirthday/databases/evolution.py:41 msgid "You need to install python-evolution to use the evolution module" msgstr "Sie müssen das Packet python-evolution installieren, um das Evolution-Modul zu benutzen." gbirthday-0.6.10/po/en.po000066400000000000000000000053061264047066200151460ustar00rootroot00000000000000msgid "" msgstr "" "Project-Id-Version: gbirthday\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit" #: ../gbirthday.desktop.in.h:1 #, fuzzy msgid "Birthday reminder for E-Mail contacts" msgstr "Birthday reminder for Evolution contacts" #: ../gbirthday.py:235 msgid "Could not execute SQLite-query" msgstr "" #: ../gbirthday.py:261 msgid "Neither iceowl nor sunbird is installed" msgstr "" #: ../gbirthday.py:343 msgid "Could not save, CVS-file not set." msgstr "" #: ../gbirthday.py:351 msgid "CSV-file does not exist" msgstr "" #: ../gbirthday.py:456 msgid "MySQLdb is not installed. Please install MySQL for Python" msgstr "" #: ../gbirthday.py:465 msgid "Could not connect to MySQL-Server" msgstr "" #: ../gbirthday.py:478 ../gbirthday.py:491 msgid "Could not execute MySQL-query" msgstr "" #: ../gbirthday.py:520 msgid "MySQL-Database" msgstr "" #: ../gbirthday.py:681 msgid "Reload" msgstr "" #: ../gbirthday.py:688 msgid "Stop blinking" msgstr "" #: ../gbirthday.py:696 ../gbirthday.py:1094 ../gbirthday.py:1151 msgid "Add" msgstr "" #: ../gbirthday.py:704 ../gbirthday.py:959 msgid "Preferences" msgstr "" #: ../gbirthday.py:712 msgid "About" msgstr "" #: ../gbirthday.py:720 msgid "Quit" msgstr "" #: ../gbirthday.py:770 msgid "Birthdays" msgstr "" #: ../gbirthday.py:772 msgid "No birthdays in specified period" msgstr "" #: ../gbirthday.py:832 ../gbirthday.py:833 msgid "Today" msgstr "" #: ../gbirthday.py:835 ../gbirthday.py:837 msgid "Yesterday" msgstr "" #: ../gbirthday.py:839 #, python-format msgid "%s Days ago" msgstr "" #: ../gbirthday.py:843 msgid "Tomorrow" msgstr "" #: ../gbirthday.py:845 msgid "Days" msgstr "" #: ../gbirthday.py:852 msgid "Years" msgstr "" #: ../gbirthday.py:890 msgid "Birthday reminder" msgstr "" #: ../gbirthday.py:918 msgid "translator-credit" msgstr "" #: ../gbirthday.py:943 msgid "Database Configuration" msgstr "" #: ../gbirthday.py:969 msgid "Past birthdays" msgstr "" #: ../gbirthday.py:973 msgid "Next birthdays" msgstr "" #: ../gbirthday.py:977 ../gbirthday.py:1182 msgid "Database" msgstr "" #: ../gbirthday.py:1006 msgid "Configure" msgstr "" #: ../gbirthday.py:1018 ../gbirthday.py:1137 ../gbirthday.py:1206 msgid "Save & Close" msgstr "" #: ../gbirthday.py:1033 #, python-format msgid "Internal Error: Option %s not valid." msgstr "" #: ../gbirthday.py:1104 msgid "Name" msgstr "" #: ../gbirthday.py:1108 msgid "Birthday" msgstr "" #: ../gbirthday.py:1112 msgid "Save to file/database" msgstr "" #: ../gbirthday.py:1174 msgid "Import Settings" msgstr "" #: ../gbirthday.py:1198 msgid "Export Settings" msgstr "" #: ../gbirthday.py:1311 #, python-format msgid "Unhandled value in gbirthday.conf: %s" msgstr "" gbirthday-0.6.10/po/es.po000066400000000000000000000113621264047066200151520ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: gbirthday\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-05-10 01:00+0200\n" "PO-Revision-Date: 2012-05-09 23:01+0000\n" "Last-Translator: Jerometransifex \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: es\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" #: ../src/gbirthday/addressbook.py:148 ../src/gbirthday/status_icon.py:779 msgid "Birthday" msgstr "" #: ../src/gbirthday/addressbook.py:149 ../src/gbirthday/addressbook.py:160 msgid "Birthday: " msgstr "" #: ../src/gbirthday/status_icon.py:88 msgid "Birthday today:" msgstr "" #: ../src/gbirthday/status_icon.py:91 msgid "Birthday tomorrow:" msgstr "" #: ../src/gbirthday/status_icon.py:93 #, python-format msgid "Birthday in %s Days:" msgstr "" #: ../src/gbirthday/status_icon.py:141 msgid "Birthday reminder" msgstr "" #: ../src/gbirthday/status_icon.py:173 msgid "translator-credit" msgstr "" #: ../src/gbirthday/status_icon.py:178 msgid "" "There are no translations or the translator doesn't want to get credits for " "that." msgstr "" #: ../src/gbirthday/status_icon.py:227 msgid "Birthdays" msgstr "Cumpleaños" #: ../src/gbirthday/status_icon.py:230 msgid "No birthdays in specified period" msgstr "No hay cumpleaños en el periodo especificado" #: ../src/gbirthday/status_icon.py:250 #, python-format msgid "%s Years" msgstr "" #: ../src/gbirthday/status_icon.py:261 ../src/gbirthday/status_icon.py:262 msgid "Today" msgstr "Hoy" #: ../src/gbirthday/status_icon.py:279 ../src/gbirthday/status_icon.py:282 msgid "Yesterday" msgstr "Ayer" #: ../src/gbirthday/status_icon.py:284 #, python-format msgid "%s Days ago" msgstr "Hace %s dias" #: ../src/gbirthday/status_icon.py:295 msgid "Tomorrow" msgstr "Mañana" #: ../src/gbirthday/status_icon.py:297 #, python-format msgid "%s Days" msgstr "" #: ../src/gbirthday/status_icon.py:344 msgid "Preferences" msgstr "Preferencias" #: ../src/gbirthday/status_icon.py:353 msgid "Past birthdays" msgstr "Cumpleaños pasados" #: ../src/gbirthday/status_icon.py:357 msgid "Next birthdays" msgstr "Proximos Cumpleaños" #: ../src/gbirthday/status_icon.py:361 msgid "Notification: Future birthdays" msgstr "" #: ../src/gbirthday/status_icon.py:365 msgid "ICS Calendar export" msgstr "" #: ../src/gbirthday/status_icon.py:369 msgid "Database" msgstr "" #: ../src/gbirthday/status_icon.py:424 msgid "Database Configuration" msgstr "" #: ../src/gbirthday/status_icon.py:546 msgid "ICS Export configuration" msgstr "" #: ../src/gbirthday/status_icon.py:573 msgid "Export birthday list in iCalendar file:" msgstr "" #: ../src/gbirthday/status_icon.py:583 msgid "Browse" msgstr "" #: ../src/gbirthday/status_icon.py:605 msgid "Set alarms" msgstr "" #: ../src/gbirthday/status_icon.py:617 msgid "days before each birthday" msgstr "" #. Custom properties #: ../src/gbirthday/status_icon.py:634 msgid "Use this if you know what you're doing. See RFC 2445." msgstr "" #. ICS VEVENT custom properties #: ../src/gbirthday/status_icon.py:638 msgid "Custom ICS properties for VEVENT" msgstr "" #. ICS VALARM custom properties #: ../src/gbirthday/status_icon.py:660 msgid "Custom ICS properties for VALARM" msgstr "" #: ../src/gbirthday/status_icon.py:765 msgid "Add" msgstr "" #: ../src/gbirthday/status_icon.py:774 msgid "Name" msgstr "" #: ../src/gbirthday/status_icon.py:784 msgid "Save to file/database" msgstr "" #: ../src/gbirthday/databases/sunbird.py:42 msgid "Neither iceowl nor sunbird is installed" msgstr "" #: ../src/gbirthday/databases/csv.py:49 msgid "Could not load CSV-file:" msgstr "" #: ../src/gbirthday/databases/csv.py:57 msgid "CSV-file does not exist" msgstr "" #: ../src/gbirthday/databases/csv.py:94 msgid "File" msgstr "" #: ../src/gbirthday/databases/mysql.py:42 #: ../src/gbirthday/databases/lightning.py:79 #, python-format msgid "Package %s is not installed." msgstr "" #: ../src/gbirthday/databases/mysql.py:51 msgid "Could not connect to MySQL-Server" msgstr "" #: ../src/gbirthday/databases/mysql.py:70 #: ../src/gbirthday/databases/mysql.py:83 msgid "Could not execute MySQL-query" msgstr "" #: ../src/gbirthday/databases/lightning.py:65 #, python-format msgid "Error reading profile file: %s" msgstr "" #: ../src/gbirthday/databases/lightning.py:84 #, python-format msgid "sqlite3 could not connect: %s" msgstr "" #: ../src/gbirthday/databases/lightning.py:149 msgid "Could not execute SQLite-query" msgstr "" #: ../src/gbirthday/databases/evolution.py:41 msgid "You need to install python-evolution to use the evolution module" msgstr "" gbirthday-0.6.10/po/fi.po000066400000000000000000000126071264047066200151440ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: gbirthday\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-05-10 01:00+0200\n" "PO-Revision-Date: 2012-05-09 23:01+0000\n" "Last-Translator: Jerometransifex \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: fi\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" #: ../src/gbirthday/addressbook.py:148 ../src/gbirthday/status_icon.py:779 msgid "Birthday" msgstr "Syntymäpäivä" #: ../src/gbirthday/addressbook.py:149 ../src/gbirthday/addressbook.py:160 msgid "Birthday: " msgstr "" #: ../src/gbirthday/status_icon.py:88 msgid "Birthday today:" msgstr "Syntymäpäivä tänään:" #: ../src/gbirthday/status_icon.py:91 msgid "Birthday tomorrow:" msgstr "Syntymäpäivä huomenna:" #: ../src/gbirthday/status_icon.py:93 #, python-format msgid "Birthday in %s Days:" msgstr "Syntymäpäivä %s:n päivän päästä:" #: ../src/gbirthday/status_icon.py:141 msgid "Birthday reminder" msgstr "Syntymäpäivämuistutin" #: ../src/gbirthday/status_icon.py:173 msgid "translator-credit" msgstr "jiri.gronroos@iki.fi" #: ../src/gbirthday/status_icon.py:178 msgid "" "There are no translations or the translator doesn't want to get credits for " "that." msgstr "Käännöksiä ei ole tai kääntäjä ei halua julkaista tietojaan." #: ../src/gbirthday/status_icon.py:227 msgid "Birthdays" msgstr "Syntymäpäivät" #: ../src/gbirthday/status_icon.py:230 msgid "No birthdays in specified period" msgstr "Ei syntymäpäiviä määritellyllä aikavälillä" #: ../src/gbirthday/status_icon.py:250 #, python-format msgid "%s Years" msgstr "%s vuotta" #: ../src/gbirthday/status_icon.py:261 ../src/gbirthday/status_icon.py:262 msgid "Today" msgstr "Tänään" #: ../src/gbirthday/status_icon.py:279 ../src/gbirthday/status_icon.py:282 msgid "Yesterday" msgstr "Eilen" #: ../src/gbirthday/status_icon.py:284 #, python-format msgid "%s Days ago" msgstr "%s päivää sitten" #: ../src/gbirthday/status_icon.py:295 msgid "Tomorrow" msgstr "Huomenna" #: ../src/gbirthday/status_icon.py:297 #, python-format msgid "%s Days" msgstr "%s päivää" #: ../src/gbirthday/status_icon.py:344 msgid "Preferences" msgstr "Asetukset" #: ../src/gbirthday/status_icon.py:353 msgid "Past birthdays" msgstr "Menneet syntymäpäivät" #: ../src/gbirthday/status_icon.py:357 msgid "Next birthdays" msgstr "Tulevat syntymäpäivät" #: ../src/gbirthday/status_icon.py:361 msgid "Notification: Future birthdays" msgstr "Ilmoitus: Tulevat syntymäpäivät" #: ../src/gbirthday/status_icon.py:365 msgid "ICS Calendar export" msgstr "" #: ../src/gbirthday/status_icon.py:369 msgid "Database" msgstr "Tietokanta" #: ../src/gbirthday/status_icon.py:424 msgid "Database Configuration" msgstr "Tietokannan asetukset" #: ../src/gbirthday/status_icon.py:546 msgid "ICS Export configuration" msgstr "" #: ../src/gbirthday/status_icon.py:573 msgid "Export birthday list in iCalendar file:" msgstr "" #: ../src/gbirthday/status_icon.py:583 msgid "Browse" msgstr "" #: ../src/gbirthday/status_icon.py:605 msgid "Set alarms" msgstr "" #: ../src/gbirthday/status_icon.py:617 msgid "days before each birthday" msgstr "" #. Custom properties #: ../src/gbirthday/status_icon.py:634 msgid "Use this if you know what you're doing. See RFC 2445." msgstr "" #. ICS VEVENT custom properties #: ../src/gbirthday/status_icon.py:638 msgid "Custom ICS properties for VEVENT" msgstr "" #. ICS VALARM custom properties #: ../src/gbirthday/status_icon.py:660 msgid "Custom ICS properties for VALARM" msgstr "" #: ../src/gbirthday/status_icon.py:765 msgid "Add" msgstr "Lisää" #: ../src/gbirthday/status_icon.py:774 msgid "Name" msgstr "Nimi" #: ../src/gbirthday/status_icon.py:784 msgid "Save to file/database" msgstr "Tallenna tiedostoon/tietokantaan" #: ../src/gbirthday/databases/sunbird.py:42 msgid "Neither iceowl nor sunbird is installed" msgstr "iceowl:ää saati sunbirdiä ei ole asennettu" #: ../src/gbirthday/databases/csv.py:49 msgid "Could not load CSV-file:" msgstr "" #: ../src/gbirthday/databases/csv.py:57 msgid "CSV-file does not exist" msgstr "CVS-tiedostoa ei ole olemassa" #: ../src/gbirthday/databases/csv.py:94 msgid "File" msgstr "" #: ../src/gbirthday/databases/mysql.py:42 #: ../src/gbirthday/databases/lightning.py:79 #, python-format msgid "Package %s is not installed." msgstr "Pakettia %s ei ole asennettu." #: ../src/gbirthday/databases/mysql.py:51 msgid "Could not connect to MySQL-Server" msgstr "Yhteys MySQL-palvelimeen epäonnistui" #: ../src/gbirthday/databases/mysql.py:70 #: ../src/gbirthday/databases/mysql.py:83 msgid "Could not execute MySQL-query" msgstr "MySQL-kyselyn suoritus epäonnistui" #: ../src/gbirthday/databases/lightning.py:65 #, python-format msgid "Error reading profile file: %s" msgstr "Virhe luettaessa profiilitiedostoa: %s" #: ../src/gbirthday/databases/lightning.py:84 #, python-format msgid "sqlite3 could not connect: %s" msgstr "sqlite3:een ei saatu yhteyttä: %s" #: ../src/gbirthday/databases/lightning.py:149 msgid "Could not execute SQLite-query" msgstr "SQLite-kyselyn suoritus epäonnistui" #: ../src/gbirthday/databases/evolution.py:41 msgid "You need to install python-evolution to use the evolution module" msgstr "" gbirthday-0.6.10/po/fr.po000066400000000000000000000136461264047066200151610ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # , 2012. msgid "" msgstr "" "Project-Id-Version: gbirthday\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-05-10 01:00+0200\n" "PO-Revision-Date: 2012-11-16 18:19+0000\n" "Last-Translator: Jerometransifex \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: fr\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: ../src/gbirthday/addressbook.py:148 ../src/gbirthday/status_icon.py:779 msgid "Birthday" msgstr "Anniversaire" #: ../src/gbirthday/addressbook.py:149 ../src/gbirthday/addressbook.py:160 msgid "Birthday: " msgstr "Anniversaire : " #: ../src/gbirthday/status_icon.py:88 msgid "Birthday today:" msgstr "Anniversaire aujourd'hui :" #: ../src/gbirthday/status_icon.py:91 msgid "Birthday tomorrow:" msgstr "Anniversaire demain :" #: ../src/gbirthday/status_icon.py:93 #, python-format msgid "Birthday in %s Days:" msgstr "Anniversaire dans %s jours :" #: ../src/gbirthday/status_icon.py:141 msgid "Birthday reminder" msgstr "Rappel d'anniversaire" #: ../src/gbirthday/status_icon.py:173 msgid "translator-credit" msgstr "Jérôme Lafréchoux" #: ../src/gbirthday/status_icon.py:178 msgid "" "There are no translations or the translator doesn't want to get credits for " "that." msgstr "Il n'y a pas de traduction, ou bien le traducteur n'a pas souhaité être crédité pour cela." #: ../src/gbirthday/status_icon.py:227 msgid "Birthdays" msgstr "Anniversaires" #: ../src/gbirthday/status_icon.py:230 msgid "No birthdays in specified period" msgstr "Il n'y a pas d'anniversaire dans la période spécifiée" #: ../src/gbirthday/status_icon.py:250 #, python-format msgid "%s Years" msgstr "%s ans" #: ../src/gbirthday/status_icon.py:261 ../src/gbirthday/status_icon.py:262 msgid "Today" msgstr "Aujourd'hui" #: ../src/gbirthday/status_icon.py:279 ../src/gbirthday/status_icon.py:282 msgid "Yesterday" msgstr "Hier" #: ../src/gbirthday/status_icon.py:284 #, python-format msgid "%s Days ago" msgstr "Il y a %s jours" #: ../src/gbirthday/status_icon.py:295 msgid "Tomorrow" msgstr "Demain" #: ../src/gbirthday/status_icon.py:297 #, python-format msgid "%s Days" msgstr "%s jours" #: ../src/gbirthday/status_icon.py:344 msgid "Preferences" msgstr "Préférences" #: ../src/gbirthday/status_icon.py:353 msgid "Past birthdays" msgstr "Anniversaires passés" #: ../src/gbirthday/status_icon.py:357 msgid "Next birthdays" msgstr "Prochains anniversaires" #: ../src/gbirthday/status_icon.py:361 msgid "Notification: Future birthdays" msgstr "Notification : anniversaires futurs" #: ../src/gbirthday/status_icon.py:365 msgid "ICS Calendar export" msgstr "Export calendrier ICS" #: ../src/gbirthday/status_icon.py:369 msgid "Database" msgstr "Base de données" #: ../src/gbirthday/status_icon.py:424 msgid "Database Configuration" msgstr "Configuration de la base de donnée" #: ../src/gbirthday/status_icon.py:546 msgid "ICS Export configuration" msgstr "Configuration de l'export de calendrier ICS" #: ../src/gbirthday/status_icon.py:573 msgid "Export birthday list in iCalendar file:" msgstr "Exporter la liste d'anniversaires dans le fichier iCalendar : " #: ../src/gbirthday/status_icon.py:583 msgid "Browse" msgstr "Parcourir" #: ../src/gbirthday/status_icon.py:605 msgid "Set alarms" msgstr "Créer des alarmes" #: ../src/gbirthday/status_icon.py:617 msgid "days before each birthday" msgstr "jours avant chaque anniversaire" #. Custom properties #: ../src/gbirthday/status_icon.py:634 msgid "Use this if you know what you're doing. See RFC 2445." msgstr "N'utilisez ceci que si vous savez ce que vous faites. Voir RFC 2445." #. ICS VEVENT custom properties #: ../src/gbirthday/status_icon.py:638 msgid "Custom ICS properties for VEVENT" msgstr "Propriétés ICS personnalisées pour VEVENT" #. ICS VALARM custom properties #: ../src/gbirthday/status_icon.py:660 msgid "Custom ICS properties for VALARM" msgstr "Propriétés ICS personnalisées pour VALARM" #: ../src/gbirthday/status_icon.py:765 msgid "Add" msgstr "Ajouter" #: ../src/gbirthday/status_icon.py:774 msgid "Name" msgstr "Nom" #: ../src/gbirthday/status_icon.py:784 msgid "Save to file/database" msgstr "Enregistrer dans le fichier / la base de données" #: ../src/gbirthday/databases/sunbird.py:42 msgid "Neither iceowl nor sunbird is installed" msgstr "Ni iceowl ni sunbird n'est installé" #: ../src/gbirthday/databases/csv.py:49 msgid "Could not load CSV-file:" msgstr "Impossible de charger le fichier CSV : " #: ../src/gbirthday/databases/csv.py:57 msgid "CSV-file does not exist" msgstr "Le fichier CSV n'existe pas" #: ../src/gbirthday/databases/csv.py:94 msgid "File" msgstr "Fichier" #: ../src/gbirthday/databases/mysql.py:42 #: ../src/gbirthday/databases/lightning.py:79 #, python-format msgid "Package %s is not installed." msgstr "Le paquet %s n'est pas installé." #: ../src/gbirthday/databases/mysql.py:51 msgid "Could not connect to MySQL-Server" msgstr "Connexion à MySQL-Server impossible" #: ../src/gbirthday/databases/mysql.py:70 #: ../src/gbirthday/databases/mysql.py:83 msgid "Could not execute MySQL-query" msgstr "Impossible d'exécuter la requête MySQL" #: ../src/gbirthday/databases/lightning.py:65 #, python-format msgid "Error reading profile file: %s" msgstr "Erreur de lecture du fichier profil : %s" #: ../src/gbirthday/databases/lightning.py:84 #, python-format msgid "sqlite3 could not connect: %s" msgstr "Connexion impossible à sqlite3 : %s" #: ../src/gbirthday/databases/lightning.py:149 msgid "Could not execute SQLite-query" msgstr "Impossible d'exécuter la requête SQLite" #: ../src/gbirthday/databases/evolution.py:41 msgid "You need to install python-evolution to use the evolution module" msgstr "Vous devez installer python-evolution pour utiliser le module evolution." gbirthday-0.6.10/po/gbirthday.pot000066400000000000000000000111311264047066200166760ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-05-10 01:00+0200\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" #: ../src/gbirthday/addressbook.py:148 ../src/gbirthday/status_icon.py:779 msgid "Birthday" msgstr "" #: ../src/gbirthday/addressbook.py:149 ../src/gbirthday/addressbook.py:160 msgid "Birthday: " msgstr "" #: ../src/gbirthday/status_icon.py:88 msgid "Birthday today:" msgstr "" #: ../src/gbirthday/status_icon.py:91 msgid "Birthday tomorrow:" msgstr "" #: ../src/gbirthday/status_icon.py:93 #, python-format msgid "Birthday in %s Days:" msgstr "" #: ../src/gbirthday/status_icon.py:141 msgid "Birthday reminder" msgstr "" #: ../src/gbirthday/status_icon.py:173 msgid "translator-credit" msgstr "" #: ../src/gbirthday/status_icon.py:178 msgid "" "There are no translations or the translator doesn't want to get credits for " "that." msgstr "" #: ../src/gbirthday/status_icon.py:227 msgid "Birthdays" msgstr "" #: ../src/gbirthday/status_icon.py:230 msgid "No birthdays in specified period" msgstr "" #: ../src/gbirthday/status_icon.py:250 #, python-format msgid "%s Years" msgstr "" #: ../src/gbirthday/status_icon.py:261 ../src/gbirthday/status_icon.py:262 msgid "Today" msgstr "" #: ../src/gbirthday/status_icon.py:279 ../src/gbirthday/status_icon.py:282 msgid "Yesterday" msgstr "" #: ../src/gbirthday/status_icon.py:284 #, python-format msgid "%s Days ago" msgstr "" #: ../src/gbirthday/status_icon.py:295 msgid "Tomorrow" msgstr "" #: ../src/gbirthday/status_icon.py:297 #, python-format msgid "%s Days" msgstr "" #: ../src/gbirthday/status_icon.py:344 msgid "Preferences" msgstr "" #: ../src/gbirthday/status_icon.py:353 msgid "Past birthdays" msgstr "" #: ../src/gbirthday/status_icon.py:357 msgid "Next birthdays" msgstr "" #: ../src/gbirthday/status_icon.py:361 msgid "Notification: Future birthdays" msgstr "" #: ../src/gbirthday/status_icon.py:365 msgid "ICS Calendar export" msgstr "" #: ../src/gbirthday/status_icon.py:369 msgid "Database" msgstr "" #: ../src/gbirthday/status_icon.py:424 msgid "Database Configuration" msgstr "" #: ../src/gbirthday/status_icon.py:546 msgid "ICS Export configuration" msgstr "" #: ../src/gbirthday/status_icon.py:573 msgid "Export birthday list in iCalendar file:" msgstr "" #: ../src/gbirthday/status_icon.py:583 msgid "Browse" msgstr "" #: ../src/gbirthday/status_icon.py:605 msgid "Set alarms" msgstr "" #: ../src/gbirthday/status_icon.py:617 msgid "days before each birthday" msgstr "" #. Custom properties #: ../src/gbirthday/status_icon.py:634 msgid "Use this if you know what you're doing. See RFC 2445." msgstr "" #. ICS VEVENT custom properties #: ../src/gbirthday/status_icon.py:638 msgid "Custom ICS properties for VEVENT" msgstr "" #. ICS VALARM custom properties #: ../src/gbirthday/status_icon.py:660 msgid "Custom ICS properties for VALARM" msgstr "" #: ../src/gbirthday/status_icon.py:765 msgid "Add" msgstr "" #: ../src/gbirthday/status_icon.py:774 msgid "Name" msgstr "" #: ../src/gbirthday/status_icon.py:784 msgid "Save to file/database" msgstr "" #: ../src/gbirthday/databases/sunbird.py:42 msgid "Neither iceowl nor sunbird is installed" msgstr "" #: ../src/gbirthday/databases/csv.py:49 msgid "Could not load CSV-file:" msgstr "" #: ../src/gbirthday/databases/csv.py:57 msgid "CSV-file does not exist" msgstr "" #: ../src/gbirthday/databases/csv.py:94 msgid "File" msgstr "" #: ../src/gbirthday/databases/mysql.py:42 #: ../src/gbirthday/databases/lightning.py:79 #, python-format msgid "Package %s is not installed." msgstr "" #: ../src/gbirthday/databases/mysql.py:51 msgid "Could not connect to MySQL-Server" msgstr "" #: ../src/gbirthday/databases/mysql.py:70 #: ../src/gbirthday/databases/mysql.py:83 msgid "Could not execute MySQL-query" msgstr "" #: ../src/gbirthday/databases/lightning.py:65 #, python-format msgid "Error reading profile file: %s" msgstr "" #: ../src/gbirthday/databases/lightning.py:84 #, python-format msgid "sqlite3 could not connect: %s" msgstr "" #: ../src/gbirthday/databases/lightning.py:149 msgid "Could not execute SQLite-query" msgstr "" #: ../src/gbirthday/databases/evolution.py:41 msgid "You need to install python-evolution to use the evolution module" msgstr "" gbirthday-0.6.10/po/gl.po000066400000000000000000000113601264047066200151430ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: gbirthday\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-05-10 01:00+0200\n" "PO-Revision-Date: 2012-05-09 23:01+0000\n" "Last-Translator: Jerometransifex \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: gl\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" #: ../src/gbirthday/addressbook.py:148 ../src/gbirthday/status_icon.py:779 msgid "Birthday" msgstr "" #: ../src/gbirthday/addressbook.py:149 ../src/gbirthday/addressbook.py:160 msgid "Birthday: " msgstr "" #: ../src/gbirthday/status_icon.py:88 msgid "Birthday today:" msgstr "" #: ../src/gbirthday/status_icon.py:91 msgid "Birthday tomorrow:" msgstr "" #: ../src/gbirthday/status_icon.py:93 #, python-format msgid "Birthday in %s Days:" msgstr "" #: ../src/gbirthday/status_icon.py:141 msgid "Birthday reminder" msgstr "" #: ../src/gbirthday/status_icon.py:173 msgid "translator-credit" msgstr "" #: ../src/gbirthday/status_icon.py:178 msgid "" "There are no translations or the translator doesn't want to get credits for " "that." msgstr "" #: ../src/gbirthday/status_icon.py:227 msgid "Birthdays" msgstr "Aniversarios" #: ../src/gbirthday/status_icon.py:230 msgid "No birthdays in specified period" msgstr "Non tes aniversarios nas datas sinaladas" #: ../src/gbirthday/status_icon.py:250 #, python-format msgid "%s Years" msgstr "" #: ../src/gbirthday/status_icon.py:261 ../src/gbirthday/status_icon.py:262 msgid "Today" msgstr "Hoxe" #: ../src/gbirthday/status_icon.py:279 ../src/gbirthday/status_icon.py:282 msgid "Yesterday" msgstr "Onte" #: ../src/gbirthday/status_icon.py:284 #, python-format msgid "%s Days ago" msgstr "Hai %s días" #: ../src/gbirthday/status_icon.py:295 msgid "Tomorrow" msgstr "Mañá" #: ../src/gbirthday/status_icon.py:297 #, python-format msgid "%s Days" msgstr "" #: ../src/gbirthday/status_icon.py:344 msgid "Preferences" msgstr "Preferencias" #: ../src/gbirthday/status_icon.py:353 msgid "Past birthdays" msgstr "Aniversarios pasados" #: ../src/gbirthday/status_icon.py:357 msgid "Next birthdays" msgstr "Proximos aniversarios" #: ../src/gbirthday/status_icon.py:361 msgid "Notification: Future birthdays" msgstr "" #: ../src/gbirthday/status_icon.py:365 msgid "ICS Calendar export" msgstr "" #: ../src/gbirthday/status_icon.py:369 msgid "Database" msgstr "" #: ../src/gbirthday/status_icon.py:424 msgid "Database Configuration" msgstr "" #: ../src/gbirthday/status_icon.py:546 msgid "ICS Export configuration" msgstr "" #: ../src/gbirthday/status_icon.py:573 msgid "Export birthday list in iCalendar file:" msgstr "" #: ../src/gbirthday/status_icon.py:583 msgid "Browse" msgstr "" #: ../src/gbirthday/status_icon.py:605 msgid "Set alarms" msgstr "" #: ../src/gbirthday/status_icon.py:617 msgid "days before each birthday" msgstr "" #. Custom properties #: ../src/gbirthday/status_icon.py:634 msgid "Use this if you know what you're doing. See RFC 2445." msgstr "" #. ICS VEVENT custom properties #: ../src/gbirthday/status_icon.py:638 msgid "Custom ICS properties for VEVENT" msgstr "" #. ICS VALARM custom properties #: ../src/gbirthday/status_icon.py:660 msgid "Custom ICS properties for VALARM" msgstr "" #: ../src/gbirthday/status_icon.py:765 msgid "Add" msgstr "" #: ../src/gbirthday/status_icon.py:774 msgid "Name" msgstr "" #: ../src/gbirthday/status_icon.py:784 msgid "Save to file/database" msgstr "" #: ../src/gbirthday/databases/sunbird.py:42 msgid "Neither iceowl nor sunbird is installed" msgstr "" #: ../src/gbirthday/databases/csv.py:49 msgid "Could not load CSV-file:" msgstr "" #: ../src/gbirthday/databases/csv.py:57 msgid "CSV-file does not exist" msgstr "" #: ../src/gbirthday/databases/csv.py:94 msgid "File" msgstr "" #: ../src/gbirthday/databases/mysql.py:42 #: ../src/gbirthday/databases/lightning.py:79 #, python-format msgid "Package %s is not installed." msgstr "" #: ../src/gbirthday/databases/mysql.py:51 msgid "Could not connect to MySQL-Server" msgstr "" #: ../src/gbirthday/databases/mysql.py:70 #: ../src/gbirthday/databases/mysql.py:83 msgid "Could not execute MySQL-query" msgstr "" #: ../src/gbirthday/databases/lightning.py:65 #, python-format msgid "Error reading profile file: %s" msgstr "" #: ../src/gbirthday/databases/lightning.py:84 #, python-format msgid "sqlite3 could not connect: %s" msgstr "" #: ../src/gbirthday/databases/lightning.py:149 msgid "Could not execute SQLite-query" msgstr "" #: ../src/gbirthday/databases/evolution.py:41 msgid "You need to install python-evolution to use the evolution module" msgstr "" gbirthday-0.6.10/po/he.po000066400000000000000000000131221264047066200151330ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: gbirthday\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-05-10 01:00+0200\n" "PO-Revision-Date: 2012-05-09 23:01+0000\n" "Last-Translator: Jerometransifex \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: he\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" #: ../src/gbirthday/addressbook.py:148 ../src/gbirthday/status_icon.py:779 msgid "Birthday" msgstr "יום הולדת" #: ../src/gbirthday/addressbook.py:149 ../src/gbirthday/addressbook.py:160 msgid "Birthday: " msgstr "" #: ../src/gbirthday/status_icon.py:88 msgid "Birthday today:" msgstr "יום הולדת היום:" #: ../src/gbirthday/status_icon.py:91 msgid "Birthday tomorrow:" msgstr "יום הולדת מחר:" #: ../src/gbirthday/status_icon.py:93 #, python-format msgid "Birthday in %s Days:" msgstr "יום הולדת בעוד %s ימים:" #: ../src/gbirthday/status_icon.py:141 msgid "Birthday reminder" msgstr "תזכורת לימי ההולדת" #: ../src/gbirthday/status_icon.py:173 msgid "translator-credit" msgstr "Yaron Shahrabani " #: ../src/gbirthday/status_icon.py:178 msgid "" "There are no translations or the translator doesn't want to get credits for " "that." msgstr "אין מתרגמים או שהמתרגם אינו מעוניין בהוקרת תודה על עבודתו." #: ../src/gbirthday/status_icon.py:227 msgid "Birthdays" msgstr "ימי הולדת" #: ../src/gbirthday/status_icon.py:230 msgid "No birthdays in specified period" msgstr "אין ימי הולדת בתקופה שצוינה" #: ../src/gbirthday/status_icon.py:250 #, python-format msgid "%s Years" msgstr "%s שנים" #: ../src/gbirthday/status_icon.py:261 ../src/gbirthday/status_icon.py:262 msgid "Today" msgstr "היום" #: ../src/gbirthday/status_icon.py:279 ../src/gbirthday/status_icon.py:282 msgid "Yesterday" msgstr "אתמול" #: ../src/gbirthday/status_icon.py:284 #, python-format msgid "%s Days ago" msgstr "לפני %s ימים" #: ../src/gbirthday/status_icon.py:295 msgid "Tomorrow" msgstr "מחר" #: ../src/gbirthday/status_icon.py:297 #, python-format msgid "%s Days" msgstr "%s ימים" #: ../src/gbirthday/status_icon.py:344 msgid "Preferences" msgstr "העדפות" #: ../src/gbirthday/status_icon.py:353 msgid "Past birthdays" msgstr "ימי ההולדת שעברו" #: ../src/gbirthday/status_icon.py:357 msgid "Next birthdays" msgstr "ימי ההולדת הבאים" #: ../src/gbirthday/status_icon.py:361 msgid "Notification: Future birthdays" msgstr "התראה: ימי הולדת עתידיים" #: ../src/gbirthday/status_icon.py:365 msgid "ICS Calendar export" msgstr "" #: ../src/gbirthday/status_icon.py:369 msgid "Database" msgstr "מסד נתונים" #: ../src/gbirthday/status_icon.py:424 msgid "Database Configuration" msgstr "תצורת מסד הנתונים" #: ../src/gbirthday/status_icon.py:546 msgid "ICS Export configuration" msgstr "" #: ../src/gbirthday/status_icon.py:573 msgid "Export birthday list in iCalendar file:" msgstr "" #: ../src/gbirthday/status_icon.py:583 msgid "Browse" msgstr "" #: ../src/gbirthday/status_icon.py:605 msgid "Set alarms" msgstr "" #: ../src/gbirthday/status_icon.py:617 msgid "days before each birthday" msgstr "" #. Custom properties #: ../src/gbirthday/status_icon.py:634 msgid "Use this if you know what you're doing. See RFC 2445." msgstr "" #. ICS VEVENT custom properties #: ../src/gbirthday/status_icon.py:638 msgid "Custom ICS properties for VEVENT" msgstr "" #. ICS VALARM custom properties #: ../src/gbirthday/status_icon.py:660 msgid "Custom ICS properties for VALARM" msgstr "" #: ../src/gbirthday/status_icon.py:765 msgid "Add" msgstr "הוספה" #: ../src/gbirthday/status_icon.py:774 msgid "Name" msgstr "שם" #: ../src/gbirthday/status_icon.py:784 msgid "Save to file/database" msgstr "שמירה לקובץ/מסד נתונים" #: ../src/gbirthday/databases/sunbird.py:42 msgid "Neither iceowl nor sunbird is installed" msgstr "Iceowl ו־Sunbird אינן מותקנות" #: ../src/gbirthday/databases/csv.py:49 msgid "Could not load CSV-file:" msgstr "" #: ../src/gbirthday/databases/csv.py:57 msgid "CSV-file does not exist" msgstr "לא קיים קובץ CSV" #: ../src/gbirthday/databases/csv.py:94 msgid "File" msgstr "" #: ../src/gbirthday/databases/mysql.py:42 #: ../src/gbirthday/databases/lightning.py:79 #, python-format msgid "Package %s is not installed." msgstr "החבילה %s אינה מותקנת." #: ../src/gbirthday/databases/mysql.py:51 msgid "Could not connect to MySQL-Server" msgstr "לא ניתן להתחבר אל שרת ה־MySQL" #: ../src/gbirthday/databases/mysql.py:70 #: ../src/gbirthday/databases/mysql.py:83 msgid "Could not execute MySQL-query" msgstr "לא ניתן להפעיל את שאילתת ה־MySQL" #: ../src/gbirthday/databases/lightning.py:65 #, python-format msgid "Error reading profile file: %s" msgstr "שגיאה בקריאת קובץ הפרופיל: %s" #: ../src/gbirthday/databases/lightning.py:84 #, python-format msgid "sqlite3 could not connect: %s" msgstr "לא ניתן להתחבר אל sqlite3: %s" #: ../src/gbirthday/databases/lightning.py:149 msgid "Could not execute SQLite-query" msgstr "לא ניתן להפעיל את שאילתת ה־SQLite" #: ../src/gbirthday/databases/evolution.py:41 msgid "You need to install python-evolution to use the evolution module" msgstr "" gbirthday-0.6.10/po/install_po.py000066400000000000000000000021101264047066200167100ustar00rootroot00000000000000# vim: foldmethod=marker #{{{ License header: GPLv2+ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Library General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . #}}} """ This snipped installs the translated files into the proper places. """ import sys import os DESTDIR = sys.argv[1]+"/usr/share/locale/" for f in os.listdir("."): if f.endswith(".po"): start = "".join(f.split(".")[:-1]) cmd = "msgfmt "+f+" -o "+DESTDIR+start+"/LC_MESSAGES/gbirthday.mo" os.popen('mkdir -p "'+ DESTDIR+start+'/LC_MESSAGES/"') os.popen(cmd) gbirthday-0.6.10/po/it.po000066400000000000000000000127251264047066200151630ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # , 2012. # , 2012. msgid "" msgstr "" "Project-Id-Version: gbirthday\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-05-10 01:00+0200\n" "PO-Revision-Date: 2012-09-19 07:53+0000\n" "Last-Translator: deamn \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: it\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../src/gbirthday/addressbook.py:148 ../src/gbirthday/status_icon.py:779 msgid "Birthday" msgstr "Compleanno" #: ../src/gbirthday/addressbook.py:149 ../src/gbirthday/addressbook.py:160 msgid "Birthday: " msgstr "Compleanno:" #: ../src/gbirthday/status_icon.py:88 msgid "Birthday today:" msgstr "Compleanno oggi:" #: ../src/gbirthday/status_icon.py:91 msgid "Birthday tomorrow:" msgstr "Compleanno domani:" #: ../src/gbirthday/status_icon.py:93 #, python-format msgid "Birthday in %s Days:" msgstr "Compleanno in %s giorni:" #: ../src/gbirthday/status_icon.py:141 msgid "Birthday reminder" msgstr "Promemoria dei compleanni" #: ../src/gbirthday/status_icon.py:173 msgid "translator-credit" msgstr "translator-credit" #: ../src/gbirthday/status_icon.py:178 msgid "" "There are no translations or the translator doesn't want to get credits for " "that." msgstr "Non ci sono traduzioni o il traduttore non ha voluto riconoscimenti per esse." #: ../src/gbirthday/status_icon.py:227 msgid "Birthdays" msgstr "Compleanni" #: ../src/gbirthday/status_icon.py:230 msgid "No birthdays in specified period" msgstr "Non ci sono compleanni nel periodo di tempo determinato" #: ../src/gbirthday/status_icon.py:250 #, python-format msgid "%s Years" msgstr "%s Anni" #: ../src/gbirthday/status_icon.py:261 ../src/gbirthday/status_icon.py:262 msgid "Today" msgstr "Oggi" #: ../src/gbirthday/status_icon.py:279 ../src/gbirthday/status_icon.py:282 msgid "Yesterday" msgstr "Ieri" #: ../src/gbirthday/status_icon.py:284 #, python-format msgid "%s Days ago" msgstr "%s Giorni fa" #: ../src/gbirthday/status_icon.py:295 msgid "Tomorrow" msgstr "Domani" #: ../src/gbirthday/status_icon.py:297 #, python-format msgid "%s Days" msgstr "%s Giorni" #: ../src/gbirthday/status_icon.py:344 msgid "Preferences" msgstr "Preferenze" #: ../src/gbirthday/status_icon.py:353 msgid "Past birthdays" msgstr "Compleanni passati" #: ../src/gbirthday/status_icon.py:357 msgid "Next birthdays" msgstr "Prossimi compleanni" #: ../src/gbirthday/status_icon.py:361 msgid "Notification: Future birthdays" msgstr "" #: ../src/gbirthday/status_icon.py:365 msgid "ICS Calendar export" msgstr "Esportazione Calendario ICS" #: ../src/gbirthday/status_icon.py:369 msgid "Database" msgstr "Database" #: ../src/gbirthday/status_icon.py:424 msgid "Database Configuration" msgstr "Configurazione del Database" #: ../src/gbirthday/status_icon.py:546 msgid "ICS Export configuration" msgstr "Configurazione dell'esportazione ICS" #: ../src/gbirthday/status_icon.py:573 msgid "Export birthday list in iCalendar file:" msgstr "" #: ../src/gbirthday/status_icon.py:583 msgid "Browse" msgstr "Navigare" #: ../src/gbirthday/status_icon.py:605 msgid "Set alarms" msgstr "Creare allarmi" #: ../src/gbirthday/status_icon.py:617 msgid "days before each birthday" msgstr "giorni prima di ogni compleanno" #. Custom properties #: ../src/gbirthday/status_icon.py:634 msgid "Use this if you know what you're doing. See RFC 2445." msgstr "" #. ICS VEVENT custom properties #: ../src/gbirthday/status_icon.py:638 msgid "Custom ICS properties for VEVENT" msgstr "" #. ICS VALARM custom properties #: ../src/gbirthday/status_icon.py:660 msgid "Custom ICS properties for VALARM" msgstr "" #: ../src/gbirthday/status_icon.py:765 msgid "Add" msgstr "Aggiungi" #: ../src/gbirthday/status_icon.py:774 msgid "Name" msgstr "Nome" #: ../src/gbirthday/status_icon.py:784 msgid "Save to file/database" msgstr "Salva su un file/database" #: ../src/gbirthday/databases/sunbird.py:42 msgid "Neither iceowl nor sunbird is installed" msgstr "Né iceowl né sunbird sono installati" #: ../src/gbirthday/databases/csv.py:49 msgid "Could not load CSV-file:" msgstr "" #: ../src/gbirthday/databases/csv.py:57 msgid "CSV-file does not exist" msgstr "CSV-file non esiste" #: ../src/gbirthday/databases/csv.py:94 msgid "File" msgstr "File" #: ../src/gbirthday/databases/mysql.py:42 #: ../src/gbirthday/databases/lightning.py:79 #, python-format msgid "Package %s is not installed." msgstr "Il pacchetto %s non è installato." #: ../src/gbirthday/databases/mysql.py:51 msgid "Could not connect to MySQL-Server" msgstr "Impossibile connettersi a MySQL-Server" #: ../src/gbirthday/databases/mysql.py:70 #: ../src/gbirthday/databases/mysql.py:83 msgid "Could not execute MySQL-query" msgstr "Impossibile eseguire MySQL-query" #: ../src/gbirthday/databases/lightning.py:65 #, python-format msgid "Error reading profile file: %s" msgstr "Errore nel leggere il file del profilo: %s" #: ../src/gbirthday/databases/lightning.py:84 #, python-format msgid "sqlite3 could not connect: %s" msgstr "sqlite3 impossibile connettersi: %s" #: ../src/gbirthday/databases/lightning.py:149 msgid "Could not execute SQLite-query" msgstr "Impossibile eseguire SQLite-query" #: ../src/gbirthday/databases/evolution.py:41 msgid "You need to install python-evolution to use the evolution module" msgstr "" gbirthday-0.6.10/po/pl.po000066400000000000000000000127341264047066200151620ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Piotr Drąg , 2009. msgid "" msgstr "" "Project-Id-Version: gbirthday\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-05-10 01:00+0200\n" "PO-Revision-Date: 2012-05-09 23:01+0000\n" "Last-Translator: Jerometransifex \n" "Language-Team: Polish (http://www.transifex.net/projects/p/gbirthday/language/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n" #: ../src/gbirthday/addressbook.py:148 ../src/gbirthday/status_icon.py:779 msgid "Birthday" msgstr "Urodziny" #: ../src/gbirthday/addressbook.py:149 ../src/gbirthday/addressbook.py:160 msgid "Birthday: " msgstr "" #: ../src/gbirthday/status_icon.py:88 msgid "Birthday today:" msgstr "Dzisiejsze urodziny:" #: ../src/gbirthday/status_icon.py:91 msgid "Birthday tomorrow:" msgstr "Jutrzejsze urodziny:" #: ../src/gbirthday/status_icon.py:93 #, python-format msgid "Birthday in %s Days:" msgstr "Urodziny za %s dni:" #: ../src/gbirthday/status_icon.py:141 msgid "Birthday reminder" msgstr "Przypomnienie o urodzinach" #: ../src/gbirthday/status_icon.py:173 msgid "translator-credit" msgstr "Piotr Drąg , 2009" #: ../src/gbirthday/status_icon.py:178 msgid "" "There are no translations or the translator doesn't want to get credits for " "that." msgstr "Brak tłumaczeń lub tłumacz nie chce umieścić swojego nazwiska." #: ../src/gbirthday/status_icon.py:227 msgid "Birthdays" msgstr "Urodziny" #: ../src/gbirthday/status_icon.py:230 msgid "No birthdays in specified period" msgstr "Brak urodzin w podanym okresie" #: ../src/gbirthday/status_icon.py:250 #, python-format msgid "%s Years" msgstr "%s lata" #: ../src/gbirthday/status_icon.py:261 ../src/gbirthday/status_icon.py:262 msgid "Today" msgstr "Dzisiaj" #: ../src/gbirthday/status_icon.py:279 ../src/gbirthday/status_icon.py:282 msgid "Yesterday" msgstr "Wczoraj" #: ../src/gbirthday/status_icon.py:284 #, python-format msgid "%s Days ago" msgstr "%s dni temu" #: ../src/gbirthday/status_icon.py:295 msgid "Tomorrow" msgstr "Jutro" #: ../src/gbirthday/status_icon.py:297 #, python-format msgid "%s Days" msgstr "%s dni" #: ../src/gbirthday/status_icon.py:344 msgid "Preferences" msgstr "Preferencje" #: ../src/gbirthday/status_icon.py:353 msgid "Past birthdays" msgstr "Przeszłe urodziny" #: ../src/gbirthday/status_icon.py:357 msgid "Next birthdays" msgstr "Następne urodziny" #: ../src/gbirthday/status_icon.py:361 msgid "Notification: Future birthdays" msgstr "Powiadamianie: przyszłe urodziny" #: ../src/gbirthday/status_icon.py:365 msgid "ICS Calendar export" msgstr "" #: ../src/gbirthday/status_icon.py:369 msgid "Database" msgstr "Baza danych" #: ../src/gbirthday/status_icon.py:424 msgid "Database Configuration" msgstr "Konfiguracja bazy danych" #: ../src/gbirthday/status_icon.py:546 msgid "ICS Export configuration" msgstr "" #: ../src/gbirthday/status_icon.py:573 msgid "Export birthday list in iCalendar file:" msgstr "" #: ../src/gbirthday/status_icon.py:583 msgid "Browse" msgstr "" #: ../src/gbirthday/status_icon.py:605 msgid "Set alarms" msgstr "" #: ../src/gbirthday/status_icon.py:617 msgid "days before each birthday" msgstr "" #. Custom properties #: ../src/gbirthday/status_icon.py:634 msgid "Use this if you know what you're doing. See RFC 2445." msgstr "" #. ICS VEVENT custom properties #: ../src/gbirthday/status_icon.py:638 msgid "Custom ICS properties for VEVENT" msgstr "" #. ICS VALARM custom properties #: ../src/gbirthday/status_icon.py:660 msgid "Custom ICS properties for VALARM" msgstr "" #: ../src/gbirthday/status_icon.py:765 msgid "Add" msgstr "Dodaj" #: ../src/gbirthday/status_icon.py:774 msgid "Name" msgstr "Nazwa" #: ../src/gbirthday/status_icon.py:784 msgid "Save to file/database" msgstr "Zapisz do pliku/bazy danych" #: ../src/gbirthday/databases/sunbird.py:42 msgid "Neither iceowl nor sunbird is installed" msgstr "Program Iceowl lub Sunbird nie jest zainstalowany" #: ../src/gbirthday/databases/csv.py:49 msgid "Could not load CSV-file:" msgstr "" #: ../src/gbirthday/databases/csv.py:57 msgid "CSV-file does not exist" msgstr "Plik CSV nie istnieje" #: ../src/gbirthday/databases/csv.py:94 msgid "File" msgstr "" #: ../src/gbirthday/databases/mysql.py:42 #: ../src/gbirthday/databases/lightning.py:79 #, python-format msgid "Package %s is not installed." msgstr "Pakiet %s nie jest zainstalowany." #: ../src/gbirthday/databases/mysql.py:51 msgid "Could not connect to MySQL-Server" msgstr "Nie można połączyć się z serwerem MySQL" #: ../src/gbirthday/databases/mysql.py:70 #: ../src/gbirthday/databases/mysql.py:83 msgid "Could not execute MySQL-query" msgstr "Nie można wykonać zapytania MySQL" #: ../src/gbirthday/databases/lightning.py:65 #, python-format msgid "Error reading profile file: %s" msgstr "Błąd podczas odczytywania pliku profilu: %s" #: ../src/gbirthday/databases/lightning.py:84 #, python-format msgid "sqlite3 could not connect: %s" msgstr "Nie można połączyć z SQLite3: %s" #: ../src/gbirthday/databases/lightning.py:149 msgid "Could not execute SQLite-query" msgstr "Nie można wykonać zapytania SQLite" #: ../src/gbirthday/databases/evolution.py:41 msgid "You need to install python-evolution to use the evolution module" msgstr "" gbirthday-0.6.10/po/pt.po000066400000000000000000000114011264047066200151600ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: gbirthday\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-05-10 01:00+0200\n" "PO-Revision-Date: 2012-05-09 23:01+0000\n" "Last-Translator: Jerometransifex \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pt\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" #: ../src/gbirthday/addressbook.py:148 ../src/gbirthday/status_icon.py:779 msgid "Birthday" msgstr "" #: ../src/gbirthday/addressbook.py:149 ../src/gbirthday/addressbook.py:160 msgid "Birthday: " msgstr "" #: ../src/gbirthday/status_icon.py:88 msgid "Birthday today:" msgstr "" #: ../src/gbirthday/status_icon.py:91 msgid "Birthday tomorrow:" msgstr "" #: ../src/gbirthday/status_icon.py:93 #, python-format msgid "Birthday in %s Days:" msgstr "" #: ../src/gbirthday/status_icon.py:141 msgid "Birthday reminder" msgstr "" #: ../src/gbirthday/status_icon.py:173 msgid "translator-credit" msgstr "" #: ../src/gbirthday/status_icon.py:178 msgid "" "There are no translations or the translator doesn't want to get credits for " "that." msgstr "" #: ../src/gbirthday/status_icon.py:227 msgid "Birthdays" msgstr "Aniversários" #: ../src/gbirthday/status_icon.py:230 msgid "No birthdays in specified period" msgstr "Não há aniversários no período especificado" #: ../src/gbirthday/status_icon.py:250 #, python-format msgid "%s Years" msgstr "" #: ../src/gbirthday/status_icon.py:261 ../src/gbirthday/status_icon.py:262 msgid "Today" msgstr "Hoje" #: ../src/gbirthday/status_icon.py:279 ../src/gbirthday/status_icon.py:282 msgid "Yesterday" msgstr "Ontem" #: ../src/gbirthday/status_icon.py:284 #, python-format msgid "%s Days ago" msgstr "%s Dias atrás" #: ../src/gbirthday/status_icon.py:295 msgid "Tomorrow" msgstr "Amanhã" #: ../src/gbirthday/status_icon.py:297 #, python-format msgid "%s Days" msgstr "" #: ../src/gbirthday/status_icon.py:344 msgid "Preferences" msgstr "Preferências" #: ../src/gbirthday/status_icon.py:353 msgid "Past birthdays" msgstr "Aniversários passados" #: ../src/gbirthday/status_icon.py:357 msgid "Next birthdays" msgstr "Aniversários vindouros" #: ../src/gbirthday/status_icon.py:361 msgid "Notification: Future birthdays" msgstr "" #: ../src/gbirthday/status_icon.py:365 msgid "ICS Calendar export" msgstr "" #: ../src/gbirthday/status_icon.py:369 msgid "Database" msgstr "" #: ../src/gbirthday/status_icon.py:424 msgid "Database Configuration" msgstr "" #: ../src/gbirthday/status_icon.py:546 msgid "ICS Export configuration" msgstr "" #: ../src/gbirthday/status_icon.py:573 msgid "Export birthday list in iCalendar file:" msgstr "" #: ../src/gbirthday/status_icon.py:583 msgid "Browse" msgstr "" #: ../src/gbirthday/status_icon.py:605 msgid "Set alarms" msgstr "" #: ../src/gbirthday/status_icon.py:617 msgid "days before each birthday" msgstr "" #. Custom properties #: ../src/gbirthday/status_icon.py:634 msgid "Use this if you know what you're doing. See RFC 2445." msgstr "" #. ICS VEVENT custom properties #: ../src/gbirthday/status_icon.py:638 msgid "Custom ICS properties for VEVENT" msgstr "" #. ICS VALARM custom properties #: ../src/gbirthday/status_icon.py:660 msgid "Custom ICS properties for VALARM" msgstr "" #: ../src/gbirthday/status_icon.py:765 msgid "Add" msgstr "" #: ../src/gbirthday/status_icon.py:774 msgid "Name" msgstr "" #: ../src/gbirthday/status_icon.py:784 msgid "Save to file/database" msgstr "" #: ../src/gbirthday/databases/sunbird.py:42 msgid "Neither iceowl nor sunbird is installed" msgstr "" #: ../src/gbirthday/databases/csv.py:49 msgid "Could not load CSV-file:" msgstr "" #: ../src/gbirthday/databases/csv.py:57 msgid "CSV-file does not exist" msgstr "" #: ../src/gbirthday/databases/csv.py:94 msgid "File" msgstr "" #: ../src/gbirthday/databases/mysql.py:42 #: ../src/gbirthday/databases/lightning.py:79 #, python-format msgid "Package %s is not installed." msgstr "" #: ../src/gbirthday/databases/mysql.py:51 msgid "Could not connect to MySQL-Server" msgstr "" #: ../src/gbirthday/databases/mysql.py:70 #: ../src/gbirthday/databases/mysql.py:83 msgid "Could not execute MySQL-query" msgstr "" #: ../src/gbirthday/databases/lightning.py:65 #, python-format msgid "Error reading profile file: %s" msgstr "" #: ../src/gbirthday/databases/lightning.py:84 #, python-format msgid "sqlite3 could not connect: %s" msgstr "" #: ../src/gbirthday/databases/lightning.py:149 msgid "Could not execute SQLite-query" msgstr "" #: ../src/gbirthday/databases/evolution.py:41 msgid "You need to install python-evolution to use the evolution module" msgstr "" gbirthday-0.6.10/po/ru.po000066400000000000000000000142101264047066200151640ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Alexander Logvinov , 2009. msgid "" msgstr "" "Project-Id-Version: gbirthday\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-05-10 01:00+0200\n" "PO-Revision-Date: 2012-05-09 23:01+0000\n" "Last-Translator: Jerometransifex \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: ru\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" #: ../src/gbirthday/addressbook.py:148 ../src/gbirthday/status_icon.py:779 msgid "Birthday" msgstr "День рождения" #: ../src/gbirthday/addressbook.py:149 ../src/gbirthday/addressbook.py:160 msgid "Birthday: " msgstr "" #: ../src/gbirthday/status_icon.py:88 msgid "Birthday today:" msgstr "Дни рождения сегодня:" #: ../src/gbirthday/status_icon.py:91 msgid "Birthday tomorrow:" msgstr "Дни рождения завтра:" #: ../src/gbirthday/status_icon.py:93 #, python-format msgid "Birthday in %s Days:" msgstr "Дни рождения в ближайшие %s дней:" #: ../src/gbirthday/status_icon.py:141 msgid "Birthday reminder" msgstr "Напоминание о Днях рождения" #: ../src/gbirthday/status_icon.py:173 msgid "translator-credit" msgstr "Alexander Logvinov " #: ../src/gbirthday/status_icon.py:178 msgid "" "There are no translations or the translator doesn't want to get credits for " "that." msgstr "Перевод не доступен или переводчик решил не сообщать свое имя." #: ../src/gbirthday/status_icon.py:227 msgid "Birthdays" msgstr "Дни рождения" #: ../src/gbirthday/status_icon.py:230 msgid "No birthdays in specified period" msgstr "В указанном периоде Дней рождений нет" #: ../src/gbirthday/status_icon.py:250 #, python-format msgid "%s Years" msgstr "%s лет" #: ../src/gbirthday/status_icon.py:261 ../src/gbirthday/status_icon.py:262 msgid "Today" msgstr "Сегодня" #: ../src/gbirthday/status_icon.py:279 ../src/gbirthday/status_icon.py:282 msgid "Yesterday" msgstr "Вчера" #: ../src/gbirthday/status_icon.py:284 #, python-format msgid "%s Days ago" msgstr "%s дня(ей) назад" #: ../src/gbirthday/status_icon.py:295 msgid "Tomorrow" msgstr "Завтра" #: ../src/gbirthday/status_icon.py:297 #, python-format msgid "%s Days" msgstr "%s дняей" #: ../src/gbirthday/status_icon.py:344 msgid "Preferences" msgstr "Настройки" #: ../src/gbirthday/status_icon.py:353 msgid "Past birthdays" msgstr "Предыдущие Дни рождения" #: ../src/gbirthday/status_icon.py:357 msgid "Next birthdays" msgstr "Следующие Дни рождения" #: ../src/gbirthday/status_icon.py:361 msgid "Notification: Future birthdays" msgstr "Уведомления: будущие Дни рождения" #: ../src/gbirthday/status_icon.py:365 msgid "ICS Calendar export" msgstr "" #: ../src/gbirthday/status_icon.py:369 msgid "Database" msgstr "Базы данных" #: ../src/gbirthday/status_icon.py:424 msgid "Database Configuration" msgstr "Конфигурация базы данных" #: ../src/gbirthday/status_icon.py:546 msgid "ICS Export configuration" msgstr "" #: ../src/gbirthday/status_icon.py:573 msgid "Export birthday list in iCalendar file:" msgstr "" #: ../src/gbirthday/status_icon.py:583 msgid "Browse" msgstr "" #: ../src/gbirthday/status_icon.py:605 msgid "Set alarms" msgstr "" #: ../src/gbirthday/status_icon.py:617 msgid "days before each birthday" msgstr "" #. Custom properties #: ../src/gbirthday/status_icon.py:634 msgid "Use this if you know what you're doing. See RFC 2445." msgstr "" #. ICS VEVENT custom properties #: ../src/gbirthday/status_icon.py:638 msgid "Custom ICS properties for VEVENT" msgstr "" #. ICS VALARM custom properties #: ../src/gbirthday/status_icon.py:660 msgid "Custom ICS properties for VALARM" msgstr "" #: ../src/gbirthday/status_icon.py:765 msgid "Add" msgstr "Добавить" #: ../src/gbirthday/status_icon.py:774 msgid "Name" msgstr "Имя" #: ../src/gbirthday/status_icon.py:784 msgid "Save to file/database" msgstr "Сохранить в файл или базу данных" #: ../src/gbirthday/databases/sunbird.py:42 msgid "Neither iceowl nor sunbird is installed" msgstr "Sunbird или Iceowl не установлен" #: ../src/gbirthday/databases/csv.py:49 msgid "Could not load CSV-file:" msgstr "" #: ../src/gbirthday/databases/csv.py:57 msgid "CSV-file does not exist" msgstr "CSV файл не существует" #: ../src/gbirthday/databases/csv.py:94 msgid "File" msgstr "" #: ../src/gbirthday/databases/mysql.py:42 #: ../src/gbirthday/databases/lightning.py:79 #, python-format msgid "Package %s is not installed." msgstr "Пакет %s не установлен." #: ../src/gbirthday/databases/mysql.py:51 msgid "Could not connect to MySQL-Server" msgstr "Произошла·ошибка·во·время·соединения·с·MySQL·сервером:" #: ../src/gbirthday/databases/mysql.py:70 #: ../src/gbirthday/databases/mysql.py:83 msgid "Could not execute MySQL-query" msgstr "Произошла ошибка во время выполнения MySQL запроса" #: ../src/gbirthday/databases/lightning.py:65 #, python-format msgid "Error reading profile file: %s" msgstr "Произошла ошибка во время чтения файла профиля: %s " #: ../src/gbirthday/databases/lightning.py:84 #, python-format msgid "sqlite3 could not connect: %s" msgstr "Произошла·ошибка·во·время·соединения·с·sqlite3: %s" #: ../src/gbirthday/databases/lightning.py:149 msgid "Could not execute SQLite-query" msgstr "Произошла ошибка во время выполнения SQLite запроса" #: ../src/gbirthday/databases/evolution.py:41 msgid "You need to install python-evolution to use the evolution module" msgstr "" gbirthday-0.6.10/po/sk.po000066400000000000000000000113541264047066200151610ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: gbirthday\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-05-10 01:00+0200\n" "PO-Revision-Date: 2012-05-09 23:01+0000\n" "Last-Translator: Jerometransifex \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: sk\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2\n" #: ../src/gbirthday/addressbook.py:148 ../src/gbirthday/status_icon.py:779 msgid "Birthday" msgstr "" #: ../src/gbirthday/addressbook.py:149 ../src/gbirthday/addressbook.py:160 msgid "Birthday: " msgstr "" #: ../src/gbirthday/status_icon.py:88 msgid "Birthday today:" msgstr "" #: ../src/gbirthday/status_icon.py:91 msgid "Birthday tomorrow:" msgstr "" #: ../src/gbirthday/status_icon.py:93 #, python-format msgid "Birthday in %s Days:" msgstr "" #: ../src/gbirthday/status_icon.py:141 msgid "Birthday reminder" msgstr "" #: ../src/gbirthday/status_icon.py:173 msgid "translator-credit" msgstr "" #: ../src/gbirthday/status_icon.py:178 msgid "" "There are no translations or the translator doesn't want to get credits for " "that." msgstr "" #: ../src/gbirthday/status_icon.py:227 msgid "Birthdays" msgstr "Narodeniny" #: ../src/gbirthday/status_icon.py:230 msgid "No birthdays in specified period" msgstr "" #: ../src/gbirthday/status_icon.py:250 #, python-format msgid "%s Years" msgstr "" #: ../src/gbirthday/status_icon.py:261 ../src/gbirthday/status_icon.py:262 msgid "Today" msgstr "Dnes" #: ../src/gbirthday/status_icon.py:279 ../src/gbirthday/status_icon.py:282 msgid "Yesterday" msgstr "Včera" #: ../src/gbirthday/status_icon.py:284 #, python-format msgid "%s Days ago" msgstr "pred %s dňami" #: ../src/gbirthday/status_icon.py:295 msgid "Tomorrow" msgstr "Zajtra" #: ../src/gbirthday/status_icon.py:297 #, python-format msgid "%s Days" msgstr "" #: ../src/gbirthday/status_icon.py:344 msgid "Preferences" msgstr "Predvoľby" #: ../src/gbirthday/status_icon.py:353 msgid "Past birthdays" msgstr "Predchádzajúce narodeniny" #: ../src/gbirthday/status_icon.py:357 msgid "Next birthdays" msgstr "Nasledujúce narodeniny" #: ../src/gbirthday/status_icon.py:361 msgid "Notification: Future birthdays" msgstr "" #: ../src/gbirthday/status_icon.py:365 msgid "ICS Calendar export" msgstr "" #: ../src/gbirthday/status_icon.py:369 msgid "Database" msgstr "" #: ../src/gbirthday/status_icon.py:424 msgid "Database Configuration" msgstr "" #: ../src/gbirthday/status_icon.py:546 msgid "ICS Export configuration" msgstr "" #: ../src/gbirthday/status_icon.py:573 msgid "Export birthday list in iCalendar file:" msgstr "" #: ../src/gbirthday/status_icon.py:583 msgid "Browse" msgstr "" #: ../src/gbirthday/status_icon.py:605 msgid "Set alarms" msgstr "" #: ../src/gbirthday/status_icon.py:617 msgid "days before each birthday" msgstr "" #. Custom properties #: ../src/gbirthday/status_icon.py:634 msgid "Use this if you know what you're doing. See RFC 2445." msgstr "" #. ICS VEVENT custom properties #: ../src/gbirthday/status_icon.py:638 msgid "Custom ICS properties for VEVENT" msgstr "" #. ICS VALARM custom properties #: ../src/gbirthday/status_icon.py:660 msgid "Custom ICS properties for VALARM" msgstr "" #: ../src/gbirthday/status_icon.py:765 msgid "Add" msgstr "" #: ../src/gbirthday/status_icon.py:774 msgid "Name" msgstr "" #: ../src/gbirthday/status_icon.py:784 msgid "Save to file/database" msgstr "" #: ../src/gbirthday/databases/sunbird.py:42 msgid "Neither iceowl nor sunbird is installed" msgstr "" #: ../src/gbirthday/databases/csv.py:49 msgid "Could not load CSV-file:" msgstr "" #: ../src/gbirthday/databases/csv.py:57 msgid "CSV-file does not exist" msgstr "" #: ../src/gbirthday/databases/csv.py:94 msgid "File" msgstr "" #: ../src/gbirthday/databases/mysql.py:42 #: ../src/gbirthday/databases/lightning.py:79 #, python-format msgid "Package %s is not installed." msgstr "" #: ../src/gbirthday/databases/mysql.py:51 msgid "Could not connect to MySQL-Server" msgstr "" #: ../src/gbirthday/databases/mysql.py:70 #: ../src/gbirthday/databases/mysql.py:83 msgid "Could not execute MySQL-query" msgstr "" #: ../src/gbirthday/databases/lightning.py:65 #, python-format msgid "Error reading profile file: %s" msgstr "" #: ../src/gbirthday/databases/lightning.py:84 #, python-format msgid "sqlite3 could not connect: %s" msgstr "" #: ../src/gbirthday/databases/lightning.py:149 msgid "Could not execute SQLite-query" msgstr "" #: ../src/gbirthday/databases/evolution.py:41 msgid "You need to install python-evolution to use the evolution module" msgstr "" gbirthday-0.6.10/pylint000066400000000000000000000012241264047066200150230ustar00rootroot00000000000000#!/bin/bash # bash script for running pylint within $1 or . # (c) Thomas Spura, 2010 # Explanations: # C0103: Invalid name # C0111: Missing docstring # C0301: Line too long # C0302: Too many lines in module # R0904: Too many public methods # R0912: Too many branches # R0915: Too many statements # W0614: Unused import if [ $# = 1 ] then command=$(find $1 -name "*.py") else command=$(find . -name "*.py" -not -path "./dist/*") fi pylint --msg-template='{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}' \ --disable=C0111 \ --disable=C0302 \ --disable=R0904 \ --disable=R0912 \ --disable=R0915 \ $command # --errors-only gbirthday-0.6.10/src/000077500000000000000000000000001264047066200143515ustar00rootroot00000000000000gbirthday-0.6.10/src/gb000077500000000000000000000006071264047066200146720ustar00rootroot00000000000000#!/usr/bin/python '''import main function from gbirthday and execute it''' try: from gbirthday import main except ImportError: # maybe it's installed in a private location import os, sys usr_share_path = os.path.join('/', 'usr', 'share', 'gbirthday') if os.path.exists(usr_share_path): sys.path.insert(0, usr_share_path) from gbirthday import main main() gbirthday-0.6.10/src/gbirthday/000077500000000000000000000000001264047066200163265ustar00rootroot00000000000000gbirthday-0.6.10/src/gbirthday/__init__.py000066400000000000000000000236151264047066200204460ustar00rootroot00000000000000# vim: foldmethod=marker #{{{ License header: GPLv2+ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Library General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . #}}} '''GBirthday A KBirthday clone for Gnome environment, working with different data servers: - CSV-file (comma-seperated value) - MySQL - Thunderbird/Icedove Lightning - Sunbrid / IceOwl and relatively easy to extend for other data servers. ''' ### Original source from: ## pygtk-demo Status Icon: Nikos Kouremenos ## EvoBdayReminder.py: Axel Heim. http://www.axelheim.de/ VERSION = "@VER@" import gtk import os, shutil import datetime from datetime import date import time from textwrap import dedent import ConfigParser # TODO check for needed modules from databases import DATABASES import databases # parse locales from python module # Do you say "1. January" or "January 1."? import locale locale.setlocale(locale.LC_ALL, '') DAY_AT_PLACE, MONTH_AT_PLACE = 1, 2 if time.strftime('%x', (2000, 3, 1, 1, 0, 0, 0, 1, 0)).startswith("03"): DAY_AT_PLACE, MONTH_AT_PLACE = 2, 1 # for FreeBSD users: if no i18n is whished, no gettext package will be # available and standard messages are displayed insted a try to use # translated strings try: import gettext gettext.install("gbirthday") except ImportError: _ = lambda x: x CURRENT_DAY = time.strftime("%d", time.localtime(time.time())) class Conf: '''Class for handle all configurations.''' def __init__(self): '''Try to read config file or initialize with default values.''' self.firstday = self.lastday = None self.notify_future_bdays = None self.used_databases = None self.csv_files = None self.mysql = databases.mysql_db self.settings = ConfigParser.ConfigParser() # If XDG_CONFIG_HOME is defined, use it to store config files if 'XDG_CONFIG_HOME' in os.environ: self.base_config_path = os.environ['XDG_CONFIG_HOME'] + "/gbirthday" # If no config file here, check for config files in ~/.config if not os.path.isdir(self.base_config_path): if os.path.isdir(os.environ['HOME'] + "/.config/gbirthday"): shutil.copytree(os.environ['HOME'] + "/.config/gbirthday", self.base_config_path) else: os.makedirs(self.base_config_path) # else, use ~/.config else: self.base_config_path = os.environ['HOME'] + "/.config/gbirthday" if not os.path.isdir(self.base_config_path): os.makedirs(self.base_config_path) # If no config in base path, check old path ~/.gbirthdayrc # This is here for backward compatibility, remove it when time has come if not os.path.exists(self.base_config_path + '/gbirthdayrc'): if os.path.exists(os.environ['HOME'] + '/.gbirthdayrc'): shutil.copy2(os.environ['HOME'] + '/.gbirthdayrc', self.base_config_path + '/gbirthdayrc') # If XDG_DATA_HOME is defined, use it to store data files if 'XDG_DATA_HOME' in os.environ: self.base_data_path = os.environ['XDG_DATA_HOME'] + "/gbirthday" # else, use ~/.local/share else: self.base_data_path = os.environ['HOME'] + "/.local/share/gbirthday" try: self.settings.readfp(file(self.base_config_path + '/gbirthdayrc')) except IOError: pass self.sync_to_mem() self.correct_settings() def correct_settings(self): '''Update settings from older versions''' # Correct new settings, e.g. Evolution and not evolution anymore''' def replace(old, new, changed): '''replace old with new''' for num, item in enumerate(self.used_databases): if self.used_databases[num] == old: changed = True self.used_databases[num] = new return changed changed = False changed = replace('evolution', 'Evolution', changed) changed = replace('mysql', 'MySQL', changed) changed = replace('csv', 'CSV', changed) changed = replace('lightning', 'Lightning', changed) changed = replace('sunbird', 'Sunbird', changed) if changed: self.save() def sync_to_mem(self): '''Get current settings from config parser into this object.''' def get_setting_value(section, value, default): '''Get setting value. If not found, return default''' try: return self.settings.get(section, value) except (ConfigParser.NoOptionError, \ ConfigParser.NoSectionError): return default self.firstday = int(get_setting_value("main", "firstday", -2)) self.lastday = int(get_setting_value("main", "lastday", 30)) used_db = get_setting_value("main", "databases", "") if used_db != "": self.used_databases = used_db.split("|") else: self.used_databases = [] self.notify_future_bdays = int(get_setting_value("main", "notify_future_bdays", 0)) self.csv_files = eval(get_setting_value("main", "csv_files", 'None')) self.ics_export = eval(get_setting_value("ics_export", "export", 'False')) self.ics_filepath = get_setting_value("ics_export", "filepath", self.base_data_path + '/gbirthday.ics') self.ics_custom_properties = get_setting_value("ics_export", "custom_properties", '') self.ics_alarm = eval(get_setting_value("ics_export", "alarm", 'False')) self.ics_alarm_days = get_setting_value("ics_export", "alarm_days", '5') self.ics_alarm_custom_properties = get_setting_value("ics_export", "alarm_custom_properties", '') try: self.mysql.host = self.settings.get("mysql", "host") self.mysql.port = self.settings.get("mysql", "port") self.mysql.username = self.settings.get("mysql", "username") self.mysql.password = self.settings.get("mysql", "password") self.mysql.database = self.settings.get("mysql", "database") self.mysql.table = self.settings.get("mysql", "table") self.mysql.name_row = self.settings.get("mysql", "name_row") self.mysql.date_row = self.settings.get("mysql", "date_row") except ConfigParser.NoSectionError: pass def sync_to_settings(self): '''Save current settings from this object to config parser.''' # main if not self.settings.has_section("main"): self.settings.add_section("main") self.settings.set("main", "firstday", self.firstday) self.settings.set("main", "lastday", self.lastday) self.settings.set("main", "notify_future_bdays", self.notify_future_bdays) used_db = '|'.join(self.used_databases) self.settings.set("main", "databases", used_db) self.settings.set("main", "csv_files", self.csv_files) # mysql if self.mysql: if not self.settings.has_section("mysql"): self.settings.add_section("mysql") self.settings.set("mysql", "host", self.mysql.host) self.settings.set("mysql", "port", self.mysql.port) self.settings.set("mysql", "username", self.mysql.username) self.settings.set("mysql", "password", self.mysql.password) self.settings.set("mysql", "database", self.mysql.database) self.settings.set("mysql", "table", self.mysql.table) self.settings.set("mysql", "name_row", self.mysql.name_row) self.settings.set("mysql", "date_row", self.mysql.date_row) # ics_export if not self.settings.has_section("ics_export"): self.settings.add_section("ics_export") self.settings.set("ics_export", "export", self.ics_export) self.settings.set("ics_export", "filepath", self.ics_filepath) self.settings.set("ics_export", "custom_properties", self.ics_custom_properties) self.settings.set("ics_export", "alarm", self.ics_alarm) self.settings.set("ics_export", "alarm_days", self.ics_alarm_days) self.settings.set("ics_export", "alarm_custom_properties", self.ics_alarm_custom_properties) def save(self): '''Save current settings to disk.''' self.sync_to_settings() self.settings.write(file(self.base_config_path + '/gbirthdayrc', "w")) def main(): '''Load settings, start status icon and get to work.''' from addressbook import AddressBook from status_icon import StatusIcon # try to load settings conf = Conf() # load data and fill AddressBook addressbook = AddressBook(conf) addressbook.reload() # show status icon status_icon = StatusIcon(addressbook, conf) # check every 60 seconds for new day # TODO: update until end of day according to current clock settings? # (might not the best idea if user changes current time) import gobject gobject.timeout_add(60000, status_icon.check_new_day) gtk.main() if __name__ == '__main__': main() gbirthday-0.6.10/src/gbirthday/addressbook.py000066400000000000000000000157031264047066200212060ustar00rootroot00000000000000# vim: foldmethod=marker #{{{ License header: GPLv2+ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Library General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . #}}} '''AddressBook module''' import datetime from __init__ import DATABASES from textwrap import dedent class AddressBook: '''AdressBook that saves birthday and names''' def __init__(self, conf=None): self.conf = conf if self.conf: self.firstday = conf.firstday self.lastday = conf.lastday else: self.firstday = -2 self.lastday = 30 self.bdays = {} # list of all birthdays. Format: # {birthday: [Name1, Name2]} # for example # { datetime.date(1970, 1, 1): ['Bar, Foo', 'Time'], # datetime.date(1967, 12, 12)': ['Power, Max']} self.bdays_dict = {} # list of all birthdays in specified period # Format: {3: [Name1, Name2], # 4: [Name3, Name4]} self.needs_update = False # new bday was added -> dict needs update def add(self, name, birthday): '''add a new person''' self.needs_update = True if isinstance(birthday, str): if birthday.find("-") > -1: # birthday is in format YYYY-MM-DD birthday = datetime.date(*[int(b) for b in birthday.split('-')]) else: # if birthday is in format YYYYMMDD birthday = datetime.date(int(birthday[:4]), int(birthday[4:6]), int(birthday[-2:])) if birthday in self.bdays: # check for double entry - we assume that people with the same name # and the same birthday exists only once in our universe if not (name in self.bdays[birthday]): self.bdays[birthday].append(name) else: self.bdays[birthday] = [name] def bdays_in_period(self, firstDay=None, lastDay=None): '''returns True, if there is a birthday in specified period''' if not firstDay: firstDay = self.firstday if not lastDay: lastDay = self.lastday for day in range(firstDay, lastDay + 1): if day in self.bdays_dict: return True return False def check_day(self, day_num=0): '''check if on day 'day_num' is a birthday 'day_num' should be in range(specified period)''' if self.needs_update: self.needs_update = False self.update() try: return self.bdays_dict[day_num] except KeyError: return [] def reload(self): ''' reload all bdays from all databases and update bdays, all birthdays added with addressbook.add() are deleted after this ''' # delete bdays dict and reload again self.bdays = {} if not self.conf: # when no config class exists do a simple reload and exit self.update() return for database in DATABASES: if (database.__class__.__name__ in self.conf.used_databases): database.parse(addressbook=self, conf=self.conf) self.update() if self.conf.ics_export: self.export() def update(self): '''update bdays_dict to contain all bdays in specified period''' now = datetime.date.today() # delete bdays_dict self.bdays_dict = {} # iterate over specified period for day_num in xrange(self.firstday, self.lastday + 1): day = now + datetime.timedelta(day_num) # For each (D-M-Y -> Name list) for date, birthday in self.bdays.items(): # If D-M match day if day.day == date.day and day.month == date.month: # If D-M not yet in dict, add D-M -> Name list if day_num not in self.bdays_dict: self.bdays_dict[day_num] = birthday[:] # If D-M already in dict, # another (D-M-Y -> Name list) exists for the same D-M # but another Y, therefore, concatenate Name lists else: self.bdays_dict[day_num] += birthday[:] def export(self): '''Export birthday list as iCalendar file''' # This loop index is used to generate unique UIDs index = 0 with open(self.conf.ics_filepath,'w') as f: f.write(dedent("""\ BEGIN:VCALENDAR VERSION:2.0 PRODID:-//gbirthday//EN """)) now = datetime.datetime.now() now = str(now)[0:4] + str(now)[5:7] + str(now)[8:10] + 'T' \ + str(now)[11:13] + str(now)[14:16] + str(now)[17:19] + 'Z' for bd in self.bdays: bdate = str(bd)[0:4] + str(bd)[5:7] + str(bd)[8:10] f.write('BEGIN:VEVENT\n') f.write('UID:' + now + '-' + str(index) + '@gbirthday' + '\n') f.write('CREATED:' + now + '\n') f.write('LAST-MODIFIED:' + now + '\n') f.write('DTSTAMP:' + now + '\n') f.write('DTSTART:' + bdate + '\n') f.write('DURATION:PT0S\n') f.write('CATEGORIES:' + _("Birthday") + '\n') f.write('SUMMARY:' + _("Birthday: ") + self.bdays[bd][0] + '\n') f.write(dedent("""\ CLASS:PRIVATE TRANSP:TRANSPARENT RRULE:FREQ=YEARLY """)) if self.conf.ics_alarm: f.write('BEGIN:VALARM\n') f.write('ACTION:DISPLAY\n') f.write('TRIGGER;VALUE=DURATION:-P' \ + self.conf.ics_alarm_days + 'D\n') f.write('DESCRIPTION:' + _("Birthday: ") \ + self.bdays[bd][0] + '\n') if self.conf.ics_alarm_custom_properties != '': f.write(self.conf.ics_alarm_custom_properties + '\n') f.write("END:VALARM\n") if self.conf.ics_custom_properties != '': f.write(self.conf.ics_custom_properties + '\n') f.write("END:VEVENT\n") index+=1; f.write("END:VCALENDAR") gbirthday-0.6.10/src/gbirthday/databases/000077500000000000000000000000001264047066200202555ustar00rootroot00000000000000gbirthday-0.6.10/src/gbirthday/databases/__init__.py000066400000000000000000000041751264047066200223750ustar00rootroot00000000000000# vim: foldmethod=marker #{{{ License header: GPLv2+ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Library General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . #}}} '''Database classes: 'DataBase' from which everything inherits: - CSV - Lightning - MySQL - Sunbird ''' class DataBase(object): ''' inheritance class for all databases you can use this format to add new databases your DataBase implementation has to parse the data from your data source, and add it into the AddressBook (ab.add()) you have to add your Database to the databases-list ''' def __init__(self, title='Unknown', can_save=True, has_config=True): # Title that will be displayed to the user self.TITLE = title # new entries can be saved self.CAN_SAVE = can_save # additional config options for database connection or fukebane(s) self.HAS_CONFIG = has_config def parse(self, addressbook, conf): '''load file / open database connection''' # XXX: set addressbook in __init__? self.ab = addressbook pass def add(self, name, birthday): '''save new birthday to file/database (only if CAN_SAVE == true)''' pass def save_config(self, conf): '''record current entries in config menu into configuration''' pass def create_config(self, vbox, conf): '''create additional pygtk config in config menu''' pass from csv import CSV from lightning import Lightning from mysql import MySQL from sunbird import Sunbird mysql_db = MySQL() DATABASES = [CSV(), Lightning(), mysql_db, Sunbird()] gbirthday-0.6.10/src/gbirthday/databases/csv.py000066400000000000000000000130771264047066200214320ustar00rootroot00000000000000# vim: foldmethod=marker #{{{ License header: GPLv2+ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Library General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . #}}} import gtk import os from gbirthday.databases import DataBase from gbirthday.gtk_funcs import show_error_msg class CSV(DataBase): '''import from CSV-file''' def __init__(self): super(CSV, self).__init__(title='CSV-file (comma seperated value)') self._seperators = ['; ', ', ', ': '] # possible seperators self.addressbook = None self.conf = None def parse(self, addressbook, conf): '''open and parse file''' # XXX: set addressbook in __init__? self.ab = addressbook self.addressbook = addressbook self.conf = conf if not conf.csv_files: return for filename in conf.csv_files: if (os.path.exists(filename)): for line in file(filename): # check, if any of the seperators are in the text for sep in self._seperators: if len(line.split(sep)) > 1: date = line.split(sep, 1)[0] name = line.split(sep, 1)[1][:-1] addressbook.add(name, date) break else: show_error_msg(_('Could not load CSV-file:') + filename) def add(self, name, birthday): '''add new person with birthday to end of csv-file''' birthday = str(birthday) # TODO: show menu to select file? if len(self.conf.csv_files) == 0: show_error_msg(_('CSV-file does not exist')) return filename = self.conf.csv_files[0] if (os.path.exists(filename)): output_file = file(self.conf.csv_files[0], 'a') else: output_file = file(self.conf.csv_files[0], 'w') output_file.write(birthday + ', ' + name + '\n') output_file.close() self.addressbook.add(name, birthday) def remove_file(self, widget, tree, store, files): select = tree.get_selection() model, treeiter = select.get_selected() if treeiter is not None: files.remove(model.get_value(treeiter, 0)) store.remove(treeiter) return def save_config(self, conf): conf.csv_files = self.tmp_csv_files def create_config(self, vbox, conf): '''create aditional options menu''' self.tmp_csv_files = conf.csv_files hbox = gtk.HBox(False, 5) # File list store = (gtk.ListStore(str)) if self.tmp_csv_files: for csv_file in self.tmp_csv_files: store.append([str(csv_file)]) tree = gtk.TreeView(store) tree.set_headers_visible(False) renderer = gtk.CellRendererText() column = gtk.TreeViewColumn(_("File"), renderer, text=0) tree.append_column(column) scroll = gtk.ScrolledWindow() scroll.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) scroll.set_shadow_type(gtk.SHADOW_IN) scroll.add(tree) scroll.set_size_request(400, -1) tree.show() scroll.show() hbox.pack_start(scroll, True, True, 0) # Add / remove buttons vbox_buttons = gtk.VBox(False, 5) def choose_file(widget): chooser = gtk.FileChooserDialog(title=None, action=gtk.FILE_CHOOSER_ACTION_OPEN, buttons=(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OPEN, gtk.RESPONSE_OK)) filter = gtk.FileFilter() filter.set_name("All files") filter.add_pattern("*") chooser.add_filter(filter) filter = gtk.FileFilter() filter.set_name("CSV-Files") filter.add_mime_type("text/csv") filter.add_pattern("*.csv") chooser.add_filter(filter) response = chooser.run() if response == gtk.RESPONSE_OK: filename = chooser.get_filename() store.append([filename]) if self.tmp_csv_files: self.tmp_csv_files.append(filename) else: self.tmp_csv_files = [filename] chooser.destroy() add_button = gtk.Button(stock=gtk.STOCK_ADD) add_button.connect("clicked", choose_file) add_button.show() vbox_buttons.pack_start(add_button, False, False, 0) remove_button = gtk.Button(stock=gtk.STOCK_REMOVE) remove_button.connect("clicked", self.remove_file, tree, store, self.tmp_csv_files) remove_button.show() vbox_buttons.pack_start(remove_button, False, False, 0) vbox_buttons.show() hbox.pack_start(vbox_buttons, False, False, 0) hbox.show() vbox.pack_start(hbox, False, False, 0) gbirthday-0.6.10/src/gbirthday/databases/lightning.py000066400000000000000000000145241264047066200226200ustar00rootroot00000000000000# vim: foldmethod=marker #{{{ License header: GPLv2+ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Library General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . #}}} import os from gbirthday.databases import DataBase from gbirthday.gtk_funcs import show_error_msg class Lightning(DataBase): '''Thunderbird/Lightning implementation''' def __init__(self, title='Thunderbird/Icedove Lightning', has_config=False): super(Lightning, self).__init__(title=title, has_config=has_config) self.THUNDERBIRD_LOCATION = os.path.join(os.environ['HOME'], '.mozilla-thunderbird') self.ab = None self.cursor = None self.conn = None def get_config_file(self, configfile): import ConfigParser profilefile = os.path.join(configfile, 'profiles.ini') if os.path.isfile(profilefile): cp = ConfigParser.ConfigParser() cp.read(profilefile) profiles = {} # dict of founded profiles # get profiles from profiles.ini in thunderbird directory for sec in cp.sections(): if sec.lower().startswith("profile"): profiles[sec] = {} for opt in cp.options(sec): profiles[sec][opt.lower()] = cp.get(sec, opt) # get all data from profiles.ini for profile in profiles: if profiles[profile]['isrelative']: profile_location = os.path.join(configfile, profiles[profile]['path']) else: profile_location = profiles[profile]['path'] #look for calendar-data/local.sqlite first #(new in sunbird/lightning 1.0) location = os.path.join(profile_location, 'calendar-data/local.sqlite') print location if os.path.exists(location): self.parse_birthday(location) return # ... and now the old one location = os.path.join(profile_location, 'storage.sdb') print location if os.path.exists(location): self.parse_birthday(location) return show_error_msg(_('Error reading profile file: %s' % configfile)) def parse(self, addressbook, conf=None): '''open thunderbird sqlite-database''' # XXX: set addressbook in __init__? self.ab = addressbook if (os.path.exists(self.THUNDERBIRD_LOCATION)): self.get_config_file(self.THUNDERBIRD_LOCATION) def connect(self, filename): '''"connect" to sqlite3-database''' try: import sqlite3 except: show_error_msg(_("Package %s is not installed." % "SQLite3")) try: self.conn = sqlite3.connect(filename) self.cursor = self.conn.cursor() except Exception as msg: show_error_msg(_('sqlite3 could not connect: %s' % str(msg))) def parse_birthday(self, filename): import datetime self.connect(filename) qry = '''SELECT title, event_start FROM cal_events ce INNER JOIN cal_properties cp ON ce.id = cp.item_id WHERE cp.key == 'CATEGORIES' AND cp.value == 'Birthday' AND ce.title != '';''' self.cursor.execute(qry) for row in self.cursor: bday = datetime.datetime.utcfromtimestamp(int(row[1]) / 1000000) self.ab.add(row[0], str(bday).split(' ')[0]) def add(self, name, birthday): import time, uuid # create new uuid event_date = int(birthday.strftime("%s")) event_start = (event_date + 86400) * 1000000 event_end = (event_date + 172800) * 1000000 uid = str(uuid.uuid4()) create_time = str(int(time.time()) * 1000000) try: qry = '''SELECT id from cal_calendars LIMIT 1;''' self.cursor.execute(qry) rows = self.cursor.fetchall() calender_id = rows[0][0] # lets assume there is at least one calendar # TODO: implement code to insert new calendar if it none exists! qry = '''INSERT INTO "cal_events" (cal_id, id, time_created, last_modified, title, flags, event_start, event_start_tz, event_end, event_end_tz) VALUES ('%s', '%s', '%s', '%s', '%s', 28, '%s', 'floating', '%s', 'floating'); ''' % (calender_id, uid, create_time, create_time, name, event_start, event_end) self.cursor.execute(qry) qry = '''INSERT INTO cal_properties (item_id, key, value) VALUES ('%s', 'CATEGORIES', 'Birthday');''' % uid self.cursor.execute(qry) qry = '''INSERT INTO cal_properties (item_id, key, value) VALUES ('%s', 'TRANSP', 'TRANSPARENT');''' % uid self.cursor.execute(qry) qry = '''INSERT INTO cal_properties (item_id, key, value) VALUES ('%s', 'X-MOZ-GENERATION', '1');''' % uid self.cursor.execute(qry) # birthday repeats yearly qry = '''INSERT INTO "cal_recurrence" (item_id, recur_index, recur_type, is_negative, count, interval) VALUES ('%s', 1, 'YEARLY', 0, -1, 1);''' % uid self.cursor.execute(qry) self.conn.commit() except Exception as msg: show_error_msg(_('Could not execute SQLite-query') + ': %s\n %s' % (qry, str(msg))) self.ab.add(name, str(birthday)) gbirthday-0.6.10/src/gbirthday/databases/mysql.py000066400000000000000000000112331264047066200217740ustar00rootroot00000000000000# vim: foldmethod=marker #{{{ License header: GPLv2+ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Library General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . #}}} import gtk from gbirthday.databases import DataBase from gbirthday.gtk_funcs import show_error_msg class MySQL(DataBase): '''MySQL database import''' def __init__(self): super(MySQL, self).__init__(title='MySQL') self.host = 'localhost' self.port = '3306' self.username = '' self.password = '' self.database = '' self.table = 'person' self.name_row = 'name' self.date_row = 'date' self.ab = None self.cursor = None self.conn = None def connect(self): '''establish connection''' try: import MySQLdb except: show_error_msg(_("Package %s is not installed." % "MySQLdb")) try: self.conn = MySQLdb.connect(host=self.host, port=int(self.port), user=self.username, passwd=self.password, db=self.database) self.cursor = self.conn.cursor() except Exception as msg: show_error_msg(_('Could not connect to MySQL-Server') + str(msg)) return False return True def parse(self, addressbook, conf): '''connect to mysql-database and get data''' # XXX: set addressbook in __init__? self.ab = addressbook if not self.connect(): return try: qry = ("SELECT %s, %s FROM %s" % (self.name_row, self.date_row, self.table)) self.cursor.execute(qry) rows = self.cursor.fetchall() for row in rows: addressbook.add(row[0], str(row[1])) except Exception as msg: show_error_msg(_('Could not execute MySQL-query') + ': %s\n %s' % (qry, str(msg))) self.conn.close() def add(self, name, birthday): '''insert new Birthday to database''' birthday = str(birthday) self.connect() try: qry = ("INSERT INTO %s (%s, %s) VALUES ('%s', '%s')" % (self.table, self.name_row, self.date_row, name, birthday)) self.cursor.execute(qry) except Exception as msg: show_error_msg(_('Could not execute MySQL-query') + ': %s\n %s' % (qry, str(msg))) self.conn.close() self.ab.add(name, birthday) def save_config(self, conf): '''Save modifications''' self.host = self.entries[0].get_text() self.port = self.entries[1].get_text() self.username = self.entries[2].get_text() self.password = self.entries[3].get_text() self.database = self.entries[4].get_text() self.table = self.entries[5].get_text() self.name_row = self.entries[6].get_text() self.date_row = self.entries[7].get_text() conf.MySQL = self def create_config(self, vbox, conf): '''create additional mysql config in config menu''' values = [ ['Host', self.host], ['Port', self.port], ['Username', self.username], ['Password', self.password], ['Database', self.database], ['Table', self.table], ['Name row', self.name_row], ['Date row', self.date_row] ] self.entries = [] sqltable = gtk.Table(len(values), 2, False) sqltable.set_col_spacings(5) for i, value in enumerate(values): label = gtk.Label(value[0]) label.set_alignment(1, 0.5) label.show() sqltable.attach(label, 0, 1, i, i + 1) entry = gtk.Entry() entry.set_text(value[1]) entry.show() self.entries.append(entry) sqltable.attach(entry, 1, 2, i, i + 1) sqltable.show() vbox.pack_start(sqltable, False, False, 0) gbirthday-0.6.10/src/gbirthday/databases/sunbird.py000066400000000000000000000032101264047066200222710ustar00rootroot00000000000000# vim: foldmethod=marker #{{{ License header: GPLv2+ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Library General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . #}}} import os from gbirthday.databases import Lightning from gbirthday.gtk_funcs import show_error_msg class Sunbird(Lightning): '''Sunbird/Iceowl implementation (based on lightning)''' def __init__(self): super(Sunbird, self).__init__(title='Sunbird/Iceowl', has_config=False) self.mozilla_location = os.path.join(os.environ['HOME'], '.mozilla') def parse(self, addressbook, conf): # XXX: set addressbook in __init__? self.ab = addressbook '''load file / open database connection''' sunbird = os.path.join(self.mozilla_location, 'sunbird') iceowl = os.path.join(self.mozilla_location, 'iceowl') if (os.path.exists(sunbird)): # extract path from profiles.ini self.get_config_file(sunbird) elif (os.path.exists(iceowl)): self.get_config_file(iceowl) else: show_error_msg(_('Neither iceowl nor sunbird is installed')) gbirthday-0.6.10/src/gbirthday/gtk_funcs.py000066400000000000000000000006401264047066200206630ustar00rootroot00000000000000'''Collection of gtk functions''' import gtk def show_error_msg(message, title=None, parent=None): '''show an error error message as MessageDialog''' if (not title): title = 'Error' errmsg = gtk.MessageDialog(parent, type=gtk.MESSAGE_ERROR, buttons=gtk.BUTTONS_OK, flags=gtk.DIALOG_MODAL, message_format=message) errmsg.set_title(title) errmsg.run() errmsg.destroy() gbirthday-0.6.10/src/gbirthday/pics/000077500000000000000000000000001264047066200172645ustar00rootroot00000000000000gbirthday-0.6.10/src/gbirthday/pics/birthday.png000066400000000000000000000036151264047066200216050ustar00rootroot00000000000000PNG  IHDR szzsBIT|d pHYs : :dJtEXtSoftwarewww.inkscape.org< IDATX{lS߽׾~\ǎy<]<:F5m4:uZF4DC5nJJl6 )6TiX;ZV¶@]y*2Rׯ;^b;i#{9> )%ֶXVfXtD)m{f7FEotTULM3%w"ݜjV -;FtO,K~^(W3Q7JN%4ݘ2;|E  rRj@.:+a|y}GEe "!B*>@/.ޟ1ntK$*d2F܋FFlhi EQҽH4M'0;f  (s~o<(% @]DΓav7M`۳gO^de }^~ϞeEJ!E6p9P"`YֶH$T;;vL>.m*ڽ(R,)Yfzܹ-?5nTEq8eS7 \H)>oTLO'Nx*hcq63b&Brp x2;4| μXReg[[iv+F=b`ҥJ]]iv֦XI"0ikGJ +,BW8pWBL\m3.@q7Oc}uJ!>XmM,x)e׮]OBGdt]$L~οr$(?#1,\Iu%1NV|^EQpl:O vcd4h6e!5 YTG^7_RJZ[[=pPcXr? wecحrl]a6gK=lZ0 o>Nݸ䛗z<Bk({gެP!ZRŚm~iSRTJNYI Wƕcç3+/5)eJ1|Y;\Ц/<3[+{>Cpn.HU\s 2-nw:o95s O7Vy}E 9~X12jd7y)8+oxٚtyZNbhv !&+/a@goѕ /lۼ緶, v^n41IlzMX2ߓi/yă_Ct>rwN71xW|MGU5TM&nrxhNm<Sf8ȞOoCq`d6*)x`C}xͦ"-k>-Xe~K3i?eC n}:fc*Up΂75j"A7ϙ13yhdS@ 0DR F쀣pMPI~)g W"DIENDB`gbirthday-0.6.10/src/gbirthday/pics/birthdaylost.png000066400000000000000000000015041264047066200225020ustar00rootroot00000000000000PNG  IHDRĴl;sRGBbKGD pHYs B(xtIME  DMIDAT8ݕMHAdMMh[$qBP"AJ\ R=Y< 鱇xMP{hB Tb(XH;=HJJ;:fow>WF_5_jB%y/˕i%VْxER!B2&q!]Qݽhht֢(pS0$===!H&q,{Jh43 kue  ˧,,,胃o YFG `Z eYۭ@7Ru]GeNw$aQd2 R411a122B24SSS#r_q$y5;;4 ]q:~0d2ttt?99yc)v ?ll6Y]]%iC7660M~w*8Ӽ bn7aPl`:CkBee%.ϭx{{kMMMp``@=<<0$ I0 |>Ass3Hq׀/{<ޞH$Eujkkzՙ;;;X,vff)8A t|;---U^WT*I$x̥W$( @(?~`9IENDB`gbirthday-0.6.10/src/gbirthday/pics/birthdaynext.png000066400000000000000000000015551264047066200225050ustar00rootroot00000000000000PNG  IHDRĴl;sRGBbKGD pHYs B(xtIME 60&lIDAT8ݕ]lU=]nk؀C>#7h5ƄDD7D>0JL .Fb7ƨS"IA[Inͺvy70FXM/6]|BMjd&;kwTTiL b'3`!q.YJg"_7%So}8C[P ͽzK3TH2^^j5g81 G;Ctsȉ܎<ﵑx{o4Z(kX٨ryg_5?ݩJDk|}` w0Ф?)uk<8S]l|]b*W$N,h?bߖɶ2@<\cpS 뫠%5Tc8J.i'ĽPtZOF7d`.$vS<7'z܁ QQEWI%S^BvAf/IzA 2'^o1U Lz5$*n1xc$!1 9"_?EJf"?g~KIK'MaϬG7A kNiB,ˈMD%B܇jVaspE>gr/yXHt_ߏ|9ܲj%^t#h|=6cb)0<Mf.ԋ0c %halxue9LqJ>xwI7 낓E[|gLNX\wO8? =mRmlX'(H㺄eM krHbwr $bX+W^D¥h}ba0͵P bwʬ?Fbh0[)-®mF@(@A:£6-;0)\ hE) =*-V?}RS30`3p(%˷a|~ݗЃ ch,@q/~ςaYHPPʡ8r^h;(zLe[ j|}a Špm|:|~M@ PTxg˴"htF#~4+Dc~tt+ek'Ij TDҜ R[/us͸!/ !B 1rJsH4 ,LiD|^ʪP`oϐ3; ʗ`g@7j_y9IuT B6:da2!~iq+ת:>լ F7v@1S.y4zaܾ>$'bjXT^ 9v}pVx@J_$e4q→ʒ,<X:<xturA:1Ivn@.Ro9-PH';i8\"` l +M5y&^o$?YMIENDB`gbirthday-0.6.10/src/gbirthday/pics/birthdaytoday.png000066400000000000000000000017051264047066200226440ustar00rootroot00000000000000PNG  IHDRĴl;sBIT|d pHYsXXtEXtSoftwarewww.inkscape.org<BIDAT8[hefvvM4ڔ%Mz&V*(i*xa)^xmG(^xa**F-Q(*4i,I%if'ww u7f.nfycA4ύs }ک~_;@,T?~%p$߸ş "usD p1; )~2#ĆSV{<}Pă#_w;{F_HcnV<3Zn>`(m]5M5aa>}Q[|y|}S&+Pl},;O9MHT ) wvֈ$F)Y/WjQlPzICSj:?7XR?>}E1(9}Aϐ \hk 7ixw=;yt7_M}:pL%X y3_~{ţV<CRto8ѱhblGzM U@ W_ۏ<jT%PդNP7wt]ACWK<x= fP]Wzw3ܾ,m(if#6l!B,2v0'~;c!Dt=td%~F["\!j>(v#raq=̻@^JYk d t{SaògT5r>3•PJ)&\@aq@X*`&PV֪"`-B @cxk\7@IZIENDB`gbirthday-0.6.10/src/gbirthday/pics/gbirthday.png000066400000000000000000000114171264047066200217530ustar00rootroot00000000000000PNG  IHDR@@iqsBIT|d pHYsttfxtEXtSoftwarewww.inkscape.org<IDATxyp\ŝ?5F7%Ydl1`g+!)V U,n6YlˆJ#`am}4y?fFY#k$V7M~߷G(LFoB3ϠVJ(gO1R6X-N+%D <>*躾_,]ibS &O~Np]B&0KB@UqGDƍM<3%%p-dW8 +N_H$hiiȘ⟂@Kp4#(GN0(!D^byF$lȫ V^] 8KgOp潁MD6˽p8L4I04M*uvgL+b+J\WMcZiWjF("OmtJ{[F[k˖#h5򞣏!KR"/8uÆ |pBɘ!74iZ׿<@{[]]]yED!Szf$Zr3 eC.UU(D"ؔp'јS@ӴT/]]]޵μCee%XYGGaѷ T RxJ*SZB_*2jkk欳/..+FIXVx I"vl7e..Z=$)H&+4Mb+HdfQ?m;;ձ bYH)#֭+ݸqcWBi)m>00'Aoo9[T>`~cc#4;@L"$ĉ@\gxt=+oa< aӚ9{ )%v294ȵ"'1(//' xd @.cX)q7x#B|k_{>'Xl39˓9π3gD ۶7+KNWN(<3ba'J!;Ԁ׮]{W>7N~F mJJIVT2Ϛ.  rw ;~zdɹ+vځV .]֮q/NIعc{!60@mX{H{e' 0 ?V*{B3<fWSCu;::\u?R޴qs3"X~93(?s_i-5WF0 н!<ÚjlANi@Zر.>cZ^|3TJaE^ qw{op72/l۾\Ayyiл)^QP?Wv^p`u*BO5/QHm<: M~h2@)4  j3!r9Mhe@U[!~vzȵ'f)nl*O>T&GkB Ϙ׋<ɋX)V~ .13Q)e7ߠcS]V*.{"p#4mzII ==O>t@)3a8 R0TZqKҁO ~ n>z:jGnVSuK4B3͋nH<ɂ!eRg;8s`Pο}ey(|}O2RsW_}5/2W\qH)SJ ݟ,c"H/<@>&7V+*'s\UN`벰Pu-[Ӄ?d1eaeM#'Di+0BxV^=?RJq*++ٽ{VJҠ LmlYI>A r >]/0]E4XxdHưy7`YrmbvUBxo  !fb6EEEl۶)0 ?"$:@h+o)T| ٓE F xKR;Bhr\S)5<0l^tEsuK$B+lz@5 &d훑^ j[V(9:?uԽP e3ɛj(,FD?>TyK c+G*=밤t@˲|AIIɄh;\ô'T]pl}.LR"$4)l =9x_RbGOAѽ{4yPtL(4-AT۷omkkkkkijj i֎^_W\A).x Pa+?E~oZ,e~1èLzv.-)+cߣS}w^t3}o`ZAO! VZ骪*}x4Ho/tq!0 unchZljԻB¿֣ 4L%pp\ESyQ^r];y>xNknB4M+RJeָ ʕbˋ9g˞w P`x, ^=@")s\LnZaGu >(m/6e!שw͎YJ4of4H|,6mKÉ 섎Mk\)8 $見hBa5z:4ڎ8t7ohN)Σ7M)1s}MS|zAcϝoX]]Ss#E= J Jl _"4@O T Cϕ+H5݂NM| t fsV'Wvj㳗RJB'Cx-d%(/UsBsތRvD|l!t7h^/W8|?uMm[ A"Oخ'Qxbg-cz1"XNCeӋ񅮏_"x3 XZ^shW\-6kS˃t۴t 3ۇ]vDF3цFQEKq}eؾJ_*E|.᠟2?S"*t%x=[>T>~'[g:ç'^"3%LJ~yݥ3KkČBRN0pI$]$eߣ9u:E^B~Ǣ^ys@:kG:wn>H֨gqLX(=#SyP+.ϛQ!J> ^ &!ߣc'#q%p'H3`mo[T,tX{_9s'z[=g,~\O7eEfqa NQ"B 0u#E qMml\v5==y~뎥\3 RNP dCҞ(6f0 |V?R[)(:ɁmEۻ;tt,vdZD CSF.\R\2[Zcdps) l(1u7d .u= sRT Q`ZIENDB`gbirthday-0.6.10/src/gbirthday/pics/nobirthday.png000066400000000000000000000034771264047066200221500ustar00rootroot00000000000000PNG  IHDR szzsRGBbKGD pHYs : :dJtIME /hoIDATXå[LS[wn6B%AS* }8F&O4f23"|`&yFM_ 8='6bBHct@K aJXҽu-aYKvojib߅w+mKnZv?J{4Fp8>[߾.(((4P(fQTJȲ\lF=Z~ $*,; (]igi>+..ޓթ&d2I8ϚGUUb$IBÇW ifMӈFYx-/_ŋ qqeH$BQQvFQQQ'U|>M`0ȁRYYIcc#BFFFx~^\(<OiSSL&*9ttuuiZ[,czttP(iwi[t]CSS /޼yC4EeegҥK{[_@yyW/((Ȭ?}$I G(`YiPU5 @u^/v]BiZU |\YWyyyu$At(J&]M.۽iE!g& 5a۶mҎ;ifpI0 0@\..\Puֿ%, 7nx|Ifff|2ϟ?JKKQiB|>ZZZI߿ob2''gU y'NF2޽{"`߾}nE!GGGl-ruɲZQ8㴷ňD" ,cx|QGݴinR-PB@ 0&I0 ˲0M33iK\.dTUMݾ}/˽ eY>UVVv'Odlll!B<'JaYQ8v$ھF!l7߬o8! ܾ}?[[[}ׯv;;޿(xp8;wo] 4 *dcDjbb"5222mf !5 tJ'I` KO) aY&%0l_0t*9  IENDB`gbirthday-0.6.10/src/gbirthday/status_icon.py000066400000000000000000001104461264047066200212410ustar00rootroot00000000000000# -*- coding: UTF-8 -*- # vim: foldmethod=marker #{{{ License header: GPLv2+ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Library General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . #}}} '''StatusIcon module''' import gtk import time import os # own imports from .__init__ import VERSION from .__init__ import DATABASES from .__init__ import MONTH_AT_PLACE, DAY_AT_PLACE from .__init__ import CURRENT_DAY IMAGESLOCATION = os.sep.join(__file__.split(os.sep)[:-1]) + "/pics/" class StatusIcon(): '''Class to show status icon''' def __init__(self, addressbook, conf): '''create status icon''' self.icon = gtk.status_icon_new_from_file(IMAGESLOCATION + 'birthday.png') self.addressbook = addressbook self.conf = conf self.showbd = None self.dlg = None self._reload_set_icon() self.icon.connect('popup-menu', self.on_right_click) self.icon.connect('button_press_event', self.on_left_click) def on_url(dialog, link): '''start default browser with gbirthday-website on click''' import webbrowser webbrowser.open(link) gtk.about_dialog_set_url_hook(on_url) def reload_gbirthday(self, *args): '''reload gbirthday, reload data from databases''' self.addressbook.reload() self._reload_set_icon() def check_new_day(self): '''check for new birthday (check every 60 seconds)''' global CURRENT_DAY # TODO: import from __init__ here, fails whyever new_day = time.strftime("%d", time.localtime(time.time())) if CURRENT_DAY != new_day: CURRENT_DAY = new_day self._reload_set_icon() return True def _reload_set_icon(self): '''Check, if there is a birthday and set icon and notify accordingly.''' # reload addressbook self.addressbook.reload() # check if a birthday is in specified period if self.addressbook.bdays_in_period(): self.icon.set_from_file(IMAGESLOCATION + 'birthday.png') else: self.icon.set_from_file(IMAGESLOCATION + 'nobirthday.png') # check if birthday today if self.addressbook.check_day(0): self.icon.set_from_file(IMAGESLOCATION + 'birthdayred.png') # show notification of birthdays in the future try: import pynotify if pynotify.init("gbirthday"): for day in range(self.conf.lastday+1): noty_string = None if day == 0: noty_string = _("Birthday today:") elif day <= self.conf.notify_future_bdays: if day == 1: noty_string = _("Birthday tomorrow:") else: noty_string = _("Birthday in %s Days:") % day else: continue for name in self.addressbook.check_day(day): notify = pynotify.Notification( noty_string, name) notify.show() except ImportError: pass def make_menu(self, event_button, event_time, icon): '''create menu window''' menu = gtk.Menu() new_menu = gtk.ImageMenuItem(gtk.STOCK_REFRESH) new_menu.show() new_menu.connect_object('activate', self.reload_gbirthday, None) menu.append(new_menu) new_menu = gtk.ImageMenuItem(gtk.STOCK_ADD) new_menu.show() new_menu.connect_object("activate", self.add, "add birthday") menu.append(new_menu) new_menu = gtk.ImageMenuItem(gtk.STOCK_PREFERENCES) new_menu.show() new_menu.connect_object("activate", self.preferences_window, "about") menu.append(new_menu) new_menu = gtk.ImageMenuItem(gtk.STOCK_ABOUT) new_menu.show() new_menu.connect_object("activate", self.create_dialog, None) menu.append(new_menu) new_menu = gtk.ImageMenuItem(gtk.STOCK_QUIT) new_menu.show() new_menu.connect_object("activate", self.finish_gbirthday, "file.quit") menu.append(new_menu) menu.popup(None, None, gtk.status_icon_position_menu, event_button, event_time, icon) def create_dialog(self, uno): '''create about dialog''' dlg = self.dlg dlg = gtk.AboutDialog() dlg.set_version(VERSION) dlg.set_comments(_('Birthday reminder')) dlg.set_name("GBirthday") image = gtk.gdk.pixbuf_new_from_file(IMAGESLOCATION + 'gbirthday.png') dlg.set_logo(image) dlg.set_icon_from_file(IMAGESLOCATION + 'birthday.png') dlg.set_copyright(u'Copyright \u00A9 2007 Alex Mallo, 2009 Andreas Bresser, 2009 Thomas Spura') dlg.set_license( '''Licensed under the GNU General Public License Version 2 GBirthday is free software; you can redistribute it and\/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. GBirthday is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.''') dlg.set_authors([ 'Andreas Bresser ', 'Stefan Jurco ', 'Alex Mallo ', 'Thomas Spura ', 'Robert Wildburger ', 'Jérôme Lafréchoux ' ]) dlg.set_artists(['Alex Mallo ']) cred = _('translator-credit') if cred != 'translator-credit': dlg.set_translator_credits(cred) else: dlg.set_translator_credits( _("There are no translations or the translator doesn't want to get credits for that.")) dlg.set_website('http://gbirthday.sourceforge.net/') def close(w, res): if res == gtk.RESPONSE_CANCEL: w.hide() dlg.connect('response', close) dlg.run() def finish_gbirthday(self, text): '''exit program''' if self.dlg is not None: self.dlg.destroy() gtk.main_quit() def on_right_click(self, icon, event_button, event_time): '''open menu window on right click''' self.make_menu(event_button, event_time, icon) def on_left_click(self, icon, event_button): '''close/open window with list of birthdays''' # button == 1 -> left click if event_button.button == 1: if not self.showbd: self.openwindow() else: self.showbd.destroy() self.showbd = None def openwindow(self): '''open window that includes all birthdays''' import datetime self.showbd = self.gtk_get_top_window('', False, False, True) box = gtk.HBox() box.set_border_width(5) box.show() frame = gtk.Frame(None) self.showbd.add(frame) table = gtk.Table(7, 6, False) box.pack_start(table, False, False, 0) frame.add(box) table.set_col_spacings(10) fila = 0 event_box = gtk.EventBox() table.attach(event_box, 0, 6, 0, 1) event_box.show() label = gtk.Label("GBirthday") if self.addressbook.bdays_in_period(): label.set_markup('%s' % _('Birthdays')) else: label.set_markup('\n %s \n' % _('No birthdays in specified period')) label.set_justify(gtk.JUSTIFY_RIGHT) event_box.add(label) label.show() event_box.modify_bg(gtk.STATE_NORMAL, event_box.rc_get_style().bg[gtk.STATE_SELECTED]) fila = fila + 1 def add_to_list(delta_day, name, fila): # search for birthdate for date, names in self.addressbook.bdays.items(): if name in names: birthdate = date try: lang_month = str(time.strftime('%B', (2000, birthdate.month, 1, 1, 0, 0, 0, 1, 0))) except: lang_month = birthdate.month image = gtk.Image() day = birthdate.day years = _('%s Years') % (datetime.date.today().year - birthdate.year) # birthday today if delta_day == 0: image.set_from_file(IMAGESLOCATION + 'birthdaytoday.png') label_month = gtk.Label('%s' % lang_month) label_month.set_markup('%s' % lang_month) label_day = gtk.Label("%s" % day) label_day.set_markup("%s" % day) label_name = gtk.Label("%s" % name) label_name.set_markup("%s" % name) label_when = gtk.Label(_('Today')) label_when.set_markup('%s' % _('Today')) label_years = gtk.Label('%s' % years) label_years.set_markup('%s' % years) elif delta_day < 0: image.set_from_file(IMAGESLOCATION + 'birthdaylost.png') label_month = gtk.Label(lang_month) label_month.set_markup('%s' % lang_month) label_day = gtk.Label(day) label_day.set_markup('%s' % day) label_name = gtk.Label(name) label_name.set_markup("%s" % name) label_years = gtk.Label(years) label_years.set_markup('%s' % years) if delta_day == -1: label_when = gtk.Label(_('Yesterday')) label_when.set_markup( '%s' % _('Yesterday')) else: ago = (_('%s Days ago') % str(delta_day * -1)) label_when = gtk.Label(ago) label_when.set_markup( '%s' % ago) else: image.set_from_file(IMAGESLOCATION + 'birthdaynext.png') label_month = gtk.Label(lang_month) label_day = gtk.Label(day) label_name = gtk.Label(name) label_years = gtk.Label(years) if delta_day == 1: label_when = gtk.Label(_('Tomorrow')) else: label_when = gtk.Label(_('%s Days') % delta_day) table.attach(image, 0, 1, fila, fila + 1) image.show() label_month.show() label_day.show() label_name.show() label_when.show() label_years.show() align_month = gtk.Alignment(0.0, 0.5, 0, 0) align_month.add(label_month) align_month.show() align_day = gtk.Alignment(1.0, 0.5, 0, 0) align_day.add(label_day) align_day.show() align_name = gtk.Alignment(0.0, 0.5, 0, 0) align_name.add(label_name) align_name.show() align_when = gtk.Alignment(0.0, 0.5, 0, 0) align_when.add(label_when) align_when.show() align_years = gtk.Alignment(1.0, 0.5, 0, 0) align_years.add(label_years) align_years.show() table.attach(align_day, DAY_AT_PLACE, DAY_AT_PLACE + 1, fila, fila + 1) table.attach(align_month, MONTH_AT_PLACE, MONTH_AT_PLACE + 1, fila, fila + 1) table.attach(align_name, 3, 4, fila, fila + 1) table.attach(align_when, 4, 5, fila, fila + 1) table.attach(align_years, 5, 6, fila, fila + 1) for delta_day in range(self.conf.firstday, self.conf.lastday + 1): for name in self.addressbook.check_day(delta_day): add_to_list(delta_day, name, fila) fila = fila + 1 table.show() frame.show() self.showbd.show() self.showbd.connect('focus_out_event', self.closebdwindow) def preferences_window(self, textcw=None): '''show settings window''' preferences = self.gtk_get_top_window(_('Preferences')) box = gtk.VBox(False, 0) preferences.add(box) table = gtk.Table(5, 2, False) table.set_col_spacings(10) table.set_row_spacings(10) label = gtk.Label(_('Past birthdays')) table.attach(label, 0, 1, 0, 1) label.show() label = gtk.Label(_('Next birthdays')) table.attach(label, 0, 1, 1, 2) label.show() label = gtk.Label(_('Notification: Future birthdays')) table.attach(label, 0, 1, 2, 3) label.show() label = gtk.Label(_('ICS Calendar export')) table.attach(label, 0, 1, 3, 4) label.show() label = gtk.Label(_('Database')) table.attach(label, 0, 1, 5, 6) label.show() adjustment = gtk.Adjustment(int(self.conf.firstday), lower=-30, upper=0, step_incr=-1, page_incr=0, page_size=0) spin_firstday = gtk.SpinButton(adjustment, climb_rate=0.0, digits=0) table.attach(spin_firstday, 1, 2, 0, 1) spin_firstday.show() adjustment = gtk.Adjustment(int(self.conf.lastday), lower=0, upper=90, step_incr=1, page_incr=0, page_size=0) spin_lastday = gtk.SpinButton(adjustment, climb_rate=0.0, digits=0) table.attach(spin_lastday, 1, 2, 1, 2) spin_lastday.show() adjustment = gtk.Adjustment(int(self.conf.notify_future_bdays), lower=0, upper=int(self.conf.lastday), step_incr=1, page_incr=0, page_size=0) spin_notify_future_bdays = gtk.SpinButton(adjustment, climb_rate=0.0, digits=0) table.attach(spin_notify_future_bdays, 1, 2, 2, 3) spin_notify_future_bdays.show() # ICS export checkbox def ics_export_chk_cb(chk, button): '''Enable / disable ICS export setting widgets''' button.set_sensitive(chk.get_active()) chk_export = gtk.CheckButton() chk_export.set_active(self.conf.ics_export) button = gtk.Button(stock=gtk.STOCK_PREFERENCES) button.set_sensitive(self.conf.ics_export) chk_export.connect("clicked", ics_export_chk_cb, button) button.connect("clicked", self.ics_export_config) hbox = gtk.HBox(False, 2) hbox.pack_start(chk_export, False, False, 0) hbox.pack_start(button, False, False, 1) table.attach(hbox, 1, 2, 3, 4) button.show() chk_export.show() hbox.show() # Separator hsep = gtk.HSeparator() table.attach(hsep, 0, 2, 4, 5) hsep.show() # Databases def db_select(widget, db): '''Enable / disable DB setting widgets''' self.db_buttons[db].set_sensitive(widget.get_active()) def preferences_db(widget, db): '''Create and display DB config window''' pref_db = self.gtk_get_top_window(db.__class__.__name__ + ' ' + \ _('Database Configuration')) vbox = gtk.VBox(False, 5) db.create_config(vbox, self.conf) # Cancel / apply / ok def preferences_cancel_cb(*args): '''Destroy windows (discard modifications)''' pref_db.destroy() def preferences_apply_cb(*args): '''Save modifications''' db.save_config(self.conf) self.conf.save() def preferences_ok_cb(*args): '''Save modifications and destroy window''' preferences_apply_cb() pref_db.destroy() hbox = gtk.HButtonBox() hbox.set_spacing(5) hbox.set_layout(gtk.BUTTONBOX_END) button = gtk.Button(stock=gtk.STOCK_APPLY) hbox.add(button) button.connect("clicked", preferences_apply_cb) button.show() button = gtk.Button(stock=gtk.STOCK_CANCEL) hbox.add(button) button.connect("clicked", preferences_cancel_cb) button.show() button = gtk.Button(stock=gtk.STOCK_OK) hbox.add(button) button.connect("clicked", preferences_ok_cb) button.show() vbox.pack_start(hbox, False, False, 0) hbox.show() vbox.show() pref_db.add(vbox) pref_db.set_modal(True) pref_db.show() vbox = gtk.VBox(False, 10) self.db_chk = {} self.db_buttons = {} for db in DATABASES: hbox = gtk.HBox(False, 2) vbox.pack_start(hbox, False, False, 0) self.db_chk[db] = gtk.CheckButton(db.TITLE) hbox.pack_start(self.db_chk[db], False, False, 0) if db.HAS_CONFIG: self.db_buttons[db] = gtk.Button(stock=gtk.STOCK_PREFERENCES) self.db_buttons[db].connect("clicked", preferences_db, db) self.db_buttons[db].show() hbox.pack_start(self.db_buttons[db], False, False, 1) self.db_buttons[db].set_sensitive(self.db_chk[db].get_active()) self.db_chk[db].connect("toggled", db_select, db) if db.__class__.__name__ in self.conf.used_databases: self.db_chk[db].set_active(True) hbox.show() self.db_chk[db].show() table.attach(vbox, 1, 2, 5, 6) vbox.show() box.pack_start(table, True, True, 8) table.show() # Cancel / apply / ok def preferences_cancel_cb(*args): '''Destroy windows (discard modifications)''' preferences.destroy() def preferences_apply_cb(*args): '''Save modifications''' self.conf.firstday = spin_firstday.get_value_as_int() self.conf.lastday = spin_lastday.get_value_as_int() self.conf.notify_future_bdays = \ spin_notify_future_bdays.get_value_as_int() self.conf.ics_export = chk_export.get_active() for db in DATABASES: if self.db_chk[db].get_active(): if not db.__class__.__name__ in self.conf.used_databases: self.conf.used_databases.append(db.__class__.__name__) else: if db.__class__.__name__ in self.conf.used_databases: self.conf.used_databases.remove(db.__class__.__name__) self.conf.save() def preferences_ok_cb(*args): '''Save modifications and destroy window''' preferences_apply_cb() preferences.destroy() hbox = gtk.HButtonBox() hbox.set_spacing(5) hbox.set_layout(gtk.BUTTONBOX_END) button = gtk.Button(stock=gtk.STOCK_APPLY) hbox.add(button) button.connect("clicked", preferences_apply_cb) button.show() button = gtk.Button(stock=gtk.STOCK_CANCEL) hbox.add(button) button.connect("clicked", preferences_cancel_cb) button.show() button = gtk.Button(stock=gtk.STOCK_OK) hbox.add(button) button.connect("clicked", preferences_ok_cb) button.show() vbox.pack_start(hbox, False, False, 0) hbox.show() box.show() preferences.set_border_width(5) preferences.show() def ics_export_config(self, widget): '''Display ICS export settings window''' window = self.gtk_get_top_window(_('ICS Export configuration')) window.set_border_width(10) vbox = gtk.VBox(False, 10) # File path def set_filepath(widget, entry): '''File selection dialog''' chooser = gtk.FileChooserDialog(title='ICS Export file', action=gtk.FILE_CHOOSER_ACTION_SAVE, buttons=(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OPEN, gtk.RESPONSE_OK)) # Default to current file (folder, file_name) = os.path.split(self.conf.ics_filepath) chooser.set_current_folder(folder) chooser.set_current_name(file_name) response = chooser.run() if response == gtk.RESPONSE_OK: entry.set_text(chooser.get_filename()) chooser.destroy() hbox = gtk.HBox() label = gtk.Label(_("Export birthday list in iCalendar file:")) label.show() label.set_alignment(0, 0.5) vbox.pack_start(label, False, False, 0) filename = gtk.Entry() filename.set_text(self.conf.ics_filepath) filename.show() hbox.pack_start(filename, True, True, 0) button = gtk.Button(_("Browse")) new_img = gtk.Image() new_img.set_from_stock(gtk.STOCK_DIRECTORY, gtk.ICON_SIZE_BUTTON,) button.set_image(new_img) button.show() hbox.pack_start(button, False, False, 5) button.connect("clicked", set_filepath, filename) hbox.show() vbox.pack_start(hbox, False, False, 0) # ICS alarm def ics_alarm_chk_cb(chk): '''Enable / disable ICS alarm setting widgets''' self.ics_alarm_days_spin.set_sensitive(chk.get_active()) self.ics_alarm_days_label.set_sensitive(chk.get_active()) self.ics_alarm_custom_properties_label.set_sensitive( \ chk.get_active()) self.ics_alarm_custom_properties_scroll.set_sensitive( \ chk.get_active()) chk = gtk.CheckButton(_('Set alarms')) chk.set_active(self.conf.ics_alarm) chk.connect("clicked", ics_alarm_chk_cb) chk.show() vbox.pack_start(chk, False, False, 0) # ICS nb of days between alarm and birthday hbox = gtk.HBox() adjustment = gtk.Adjustment(int(self.conf.ics_alarm_days), lower=0, upper=60, step_incr=1, page_incr=0, page_size=0) self.ics_alarm_days_spin = gtk.SpinButton(adjustment, climb_rate=0.0, digits=0) self.ics_alarm_days_label = gtk.Label(_('days before each birthday')) self.ics_alarm_days_spin.set_sensitive(self.conf.ics_alarm) self.ics_alarm_days_label.set_sensitive(self.conf.ics_alarm) hbox.pack_start(self.ics_alarm_days_spin, False, False, 0) hbox.pack_start(self.ics_alarm_days_label, False, False, 0) self.ics_alarm_days_spin.show() self.ics_alarm_days_label.show() hbox.show() vbox.pack_start(hbox, False, False, 0) # Separator hsep = gtk.HSeparator() vbox.pack_start(hsep, False, False, 0) hsep.show() # Custom properties custom_properties_tooltip_str = ( \ _("Use this if you know what you're doing. See RFC 2445.")) # ICS VEVENT custom properties self.ics_custom_properties_label = \ gtk.Label(_('Custom ICS properties for VEVENT')) self.ics_custom_properties_label.set_tooltip_text( \ custom_properties_tooltip_str) self.ics_custom_properties_label.set_alignment(0, 0) vbox.pack_start(self.ics_custom_properties_label, False, False, 0) self.ics_custom_properties_label.show() textbuffer_event = gtk.TextBuffer() textbuffer_event.set_text(self.conf.ics_custom_properties) textview = gtk.TextView(buffer=textbuffer_event) textview.set_editable(True) textview.set_tooltip_text( \ custom_properties_tooltip_str) self.ics_custom_properties_scroll = gtk.ScrolledWindow() self.ics_custom_properties_scroll.add_with_viewport(textview) self.ics_custom_properties_scroll.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) vbox.pack_start(self.ics_custom_properties_scroll, False, False, 0) self.ics_custom_properties_scroll.show() textview.show() # ICS VALARM custom properties self.ics_alarm_custom_properties_label = \ gtk.Label(_('Custom ICS properties for VALARM')) self.ics_alarm_custom_properties_label.set_tooltip_text( \ custom_properties_tooltip_str) self.ics_alarm_custom_properties_label.set_alignment(0, 0) self.ics_alarm_custom_properties_label.set_sensitive( \ self.conf.ics_alarm) vbox.pack_start(self.ics_alarm_custom_properties_label, False, False, 0) self.ics_alarm_custom_properties_label.show() textbuffer_alarm = gtk.TextBuffer() textbuffer_alarm.set_text(self.conf.ics_alarm_custom_properties) textview = gtk.TextView(buffer=textbuffer_alarm) textview.set_editable(True) textview.set_tooltip_text( \ custom_properties_tooltip_str) self.ics_alarm_custom_properties_scroll = gtk.ScrolledWindow() self.ics_alarm_custom_properties_scroll.add_with_viewport(textview) self.ics_alarm_custom_properties_scroll.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) self.ics_alarm_custom_properties_scroll.set_sensitive( \ self.conf.ics_alarm) vbox.pack_start(self.ics_alarm_custom_properties_scroll, False, False, 0) self.ics_alarm_custom_properties_scroll.show() textview.show() # Cancel / apply / ok def ics_export_config_cancel_cb(*args): '''Destroy windows (discard modifications)''' window.destroy() def ics_export_config_apply_cb(*args): '''Save modifications''' self.conf.ics_filepath = filename.get_text() self.conf.ics_alarm = chk.get_active() self.conf.ics_alarm_days = \ str(self.ics_alarm_days_spin.get_value_as_int()) self.conf.ics_custom_properties = textbuffer_event.get_text( \ textbuffer_event.get_start_iter(), textbuffer_event.get_end_iter()) self.conf.ics_alarm_custom_properties = textbuffer_alarm.get_text( \ textbuffer_alarm.get_start_iter(), textbuffer_alarm.get_end_iter()) self.addressbook.export() def ics_export_config_ok_cb(*args): '''Save modifications and destroy window''' ics_export_config_apply_cb() window.destroy() hbox = gtk.HButtonBox() hbox.set_spacing(5) hbox.set_layout(gtk.BUTTONBOX_END) button = gtk.Button(stock=gtk.STOCK_APPLY) hbox.add(button) button.connect("clicked", ics_export_config_apply_cb) button.show() button = gtk.Button(stock=gtk.STOCK_CANCEL) hbox.add(button) button.connect("clicked", ics_export_config_cancel_cb) button.show() button = gtk.Button(stock=gtk.STOCK_OK) hbox.add(button) button.connect("clicked", ics_export_config_ok_cb) button.show() vbox.pack_start(hbox, False, False, 0) hbox.show() window.add(vbox) vbox.show() window.set_modal(True) window.show() def add(self, text): '''Show Dialog to add new Person - not yet implemented!''' self.add_single_manual(None, None) ''' add_window = self.gtk_get_top_window(_('Add')) box = gtk.VBox(False, 0) add_window.add(box) manualButton = gtk.Button(_('Add single birthday manually')) manualButton.connect("clicked", self.add_single_manual, add_window) box.pack_start(manualButton) manualButton.show() fileButton = gtk.Button( _('Add multiple birthdays from file or database')) fileButton.connect("clicked", self.add_from_file, add_window) box.pack_start(fileButton) fileButton.show() box.show() add_window.set_border_width(5) add_window.show() ''' def add_single_manual(self, widget, window): '''Add birthday dialog.''' import datetime if window is not None: window.destroy() add_window = self.gtk_get_top_window(_('Add')) vbox = gtk.VBox(False, 0) add_window.add(vbox) table = gtk.Table(3, 2, False) table.set_col_spacings(10) table.set_row_spacings(10) label = gtk.Label(_('Name')) label.set_alignment(1, 0.5) table.attach(label, 0, 1, 0, 1) label.show() label = gtk.Label(_('Birthday')) label.set_alignment(1, 0.5) table.attach(label, 0, 1, 1, 2) label.show() label = gtk.Label(_('Save to file/database')) label.set_alignment(1, 0.5) table.attach(label, 0, 1, 2, 3) label.show() name = gtk.Entry() name.set_text("") table.attach(name, 1, 2, 0, 1) name.show() calendar = gtk.Calendar() table.attach(calendar, 1, 2, 1, 2) calendar.show() combobox = gtk.combo_box_new_text() for db in DATABASES: if db.CAN_SAVE and \ db.__class__.__name__ in self.addressbook.conf.used_databases: combobox.append_text(db.TITLE) combobox.set_active(0) combobox.show() table.attach(combobox, 1, 2, 2, 3) vbox.pack_start(table, True, True, 8) table.show() # Cancel / apply / ok def add_single_manual_cancel_cb(*args): '''Destroy windows (discard modifications)''' add_window.destroy() def add_single_manual_apply_cb(*args): '''Save new added person''' for db in DATABASES: if db.TITLE == combobox.get_active_text(): calend = list(calendar.get_date()) calend[1] += 1 # FIXME: ugly fix for #563405 adding to Lightning if db.TITLE == 'Thunderbird/Icedove Lightning': db.ab = self.addressbook db.add(name.get_text(), datetime.date(*calend)) name.set_text("") self.reload_gbirthday() def add_single_manual_ok_cb(*args): '''Save modifications and destroy window''' add_single_manual_apply_cb() add_window.destroy() hbox = gtk.HButtonBox() hbox.set_spacing(5) hbox.set_layout(gtk.BUTTONBOX_END) apply_button = gtk.Button(stock=gtk.STOCK_APPLY) apply_button.set_sensitive(False) hbox.add(apply_button) apply_button.connect("clicked", add_single_manual_apply_cb) apply_button.show() button = gtk.Button(stock=gtk.STOCK_CANCEL) hbox.add(button) button.connect("clicked", add_single_manual_cancel_cb) button.show() ok_button = gtk.Button(stock=gtk.STOCK_OK) ok_button.set_sensitive(False) hbox.add(ok_button) ok_button.connect("clicked", add_single_manual_ok_cb) ok_button.show() vbox.pack_start(hbox, False, False, 0) hbox.show() vbox.show() # Apply and OK only allowed in name not empty def entry_modification_cb(*args): if name.get_text() != '': apply_button.set_sensitive(True) ok_button.set_sensitive(True) else: apply_button.set_sensitive(False) ok_button.set_sensitive(False) name.connect("changed", entry_modification_cb) add_window.set_border_width(5) add_window.show() # def add_from_file(self, widget, window): # window.destroy() # add_window = self.gtk_get_top_window(_('Add')) # # box = gtk.VBox(False, 0) # add_window.add(box) # # table = gtk.Table(3, 2, False) # table.set_col_spacings(10) # table.set_row_spacings(10) # # # label = gtk.Label('select file/database') # table.attach(label, 0, 1, 0, 1) # label.show() # # db_combo = gtk.combo_box_new_text() # for db in DATABASES: # db_combo.append_text(db.TITLE) # db_combo.set_active(0) # db_combo.show() # table.attach(db_combo, 1, 2, 0, 1) # # label = gtk.Label(_('Import Settings')) # table.attach(label, 0, 1, 1, 2) # label.show() # # label = gtk.Label('not needed') # table.attach(label, 1, 2, 1, 2) # label.show() # # label = gtk.Label(_('Database')) # table.attach(label, 0, 1, 2, 3) # label.show() # # combobox = gtk.combo_box_new_text() # for db in DATABASES: # if db.CAN_SAVE: # combobox.append_text(db.TITLE) # combobox.set_active(0) # combobox.show() # table.attach(combobox, 1, 2, 2, 3) # # box.pack_start(table, True, True, 8) # table.show() # # label = gtk.Label(_('Export Settings')) # table.attach(label, 0, 1, 3, 4) # label.show() # # label = gtk.Label('not needed') # table.attach(label, 1, 2, 3, 4) # label.show() # # def finish_add(uno, combo, name, calend, window): # '''save new added person''' # import datetime # for db in DATABASES: # if db.TITLE == combo.get_active_text(): # calend = list(calend.get_date()) # calend[1] += 1 # db.add(name.get_text(), datetime.date(*calend)) # window.destroy() # button = gtk.Button(_('Save & Close')) # box.pack_start(button, False, False, 2) # button.connect("clicked", finish_add, combobox, db_combo, '', # add_window) # button.show() # # box.show() # # box.show() # add_window.set_border_width(5) # add_window.show() def closebdwindow(self, uno, dos): '''close about window''' if self.showbd: self.showbd.destroy() self.showbd = None ### gtk helper functions ### @staticmethod def gtk_get_top_window(title, decorated=True, center=True, hide_in_taskbar=False): '''Get gtk top window.''' window = gtk.Window(gtk.WINDOW_TOPLEVEL) window.set_decorated(decorated) if center: window.set_position(gtk.WIN_POS_CENTER) else: window.set_position(gtk.WIN_POS_MOUSE) window.set_title(title) window.set_icon_from_file(IMAGESLOCATION + 'birthday.png') window.set_skip_taskbar_hint(hide_in_taskbar) window.set_border_width(10) # Close window if Escape key is pressed def keypress(widget, event) : if event.keyval == gtk.keysyms.Escape : window.destroy() window.connect("key-press-event", keypress) return window if __name__ == "__main__": _ = lambda x: x gbirthday-0.6.10/src/gbirthday/test_addressbook.py000066400000000000000000000114061264047066200222410ustar00rootroot00000000000000# vim: foldmethod=marker #{{{ License header: GPLv2+ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Library General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . #}}} ''' Testing the addressbook module ''' from nose import with_setup from .addressbook import AddressBook AB = None def setup(): '''Setup addressbook.''' global AB AB = AddressBook() def teardown(): '''Clean addressbook.''' global AB AB = None @with_setup(setup, teardown) def test_init_no_bday(): '''init_no_bday''' assert not AB.check_day(0) @with_setup(setup, teardown) def test_add_yyyymmdd_bday(): '''add_YYYYMMDD_bday''' import time today = time.strftime("%Y%m%d", time.localtime(time.time())) AB.add('dummy', today) assert AB.check_day(0) == ['dummy'] # today birthday -> needs to be in specific period assert AB.bdays_in_period() @with_setup(setup, teardown) def test_add_yyyymmdd_bday2(): '''add_YYYY-MM-DD_bday''' import time today = time.strftime("%Y-%m-%d", time.localtime(time.time())) AB.add('dummy', today) assert AB.check_day(0) == ['dummy'] # today birthday -> needs to be in specific period assert AB.bdays_in_period() @with_setup(setup, teardown) def test_add_bday_yesterday(): '''add_YYYYMMDD_bday_yesterday''' import datetime now = datetime.date.today() + datetime.timedelta(-1) today = str(now) AB.add('dummy', today) assert AB.check_day(-1) == ['dummy'] assert not AB.check_day(0) assert not AB.check_day(1) @with_setup(setup, teardown) def test_add_bday_tomorrow(): '''add_YYYY-MM-DD_bday_tomorrow''' import datetime now = datetime.date.today() + datetime.timedelta(1) today = str(now) AB.add('dummy', today) assert not AB.check_day(-1) assert not AB.check_day(0) assert AB.check_day(1) == ['dummy'] @with_setup(setup, teardown) def test_add_bday_twice(): '''add_YYYY-MM-DD_bday_twice''' import time today = time.strftime("%Y-%m-%d", time.localtime(time.time())) AB.add('dummy', today) AB.add('dummy2', today) assert AB.check_day(0) == ['dummy', 'dummy2'] # today birthday -> needs to be in specific period assert AB.bdays_in_period() @with_setup(setup, teardown) def test_add_bday_yesterday_twice(): '''add_YYYYMMDD_bday_yesterday_twice''' import datetime now = datetime.date.today() + datetime.timedelta(-1) today = str(now) AB.add('dummy', today) AB.add('dummy2', today) assert AB.check_day(-1) == ['dummy', 'dummy2'] assert not AB.check_day(0) assert not AB.check_day(1) @with_setup(setup, teardown) def test_add_bday_tomorrow_twice(): '''add_YYYY-MM-DD_bday_tomorrow_twice''' import datetime now = datetime.date.today() + datetime.timedelta(1) today = str(now) AB.add('dummy', today) AB.add('dummy2', today) assert not AB.check_day(-1) assert not AB.check_day(0) assert AB.check_day(1) == ['dummy', 'dummy2'] @with_setup(setup, teardown) def test_add_nobday(): '''add_YYYYMMDD_nobday''' today = '20001010' AB.add('dummy', today) assert not AB.check_day(0) # birthday far away -> nothing in specific period assert not AB.bdays_in_period() @with_setup(setup, teardown) def test_add_nobday2(): '''add_YYYY-MM-DD_nobday''' today = '2000-10-10' AB.add('dummy', today) assert not AB.check_day(0) # birthday far away -> nothing in specific period assert not AB.bdays_in_period() @with_setup(setup, teardown) def test_update(): '''test, if update works with adding correctly''' import datetime now = datetime.date.today() assert not AB.check_day(0) AB.add('dummy', now) # add does not fill bdays_dict assert not AB.bdays_dict # but check does assert AB.check_day(0) assert AB.bdays_dict @with_setup(setup, teardown) def test_two_people_at_same_day(): '''test, if we can find 2 people who have birthday at the same day''' import datetime now = datetime.date.today() assert not AB.check_day(0) AB.add('guybrush', now) AB.add('harvey', now) assert AB.check_day(0) assert len(AB.bdays_dict[0]) == 2 @with_setup(setup, teardown) def test_run_reload(): '''simply run reload() once''' assert not AB.check_day(0) AB.reload() assert not AB.check_day(0) gbirthday-0.6.10/src/gbirthday/test_conf.py000066400000000000000000000021171264047066200206650ustar00rootroot00000000000000# vim: foldmethod=marker #{{{ License header: GPLv2+ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Library General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . #}}} ''' Testing the conf class ''' from .__init__ import Conf conf = None # TODO: move ~/.gbirthdayrc arround for empty testing def setup(): '''Setup database.''' global conf conf = Conf() # TODO: move ~/.gbirthdayrc back again def teardown(): '''Clean database.''' global conf conf = None def test_init(): '''initialize conf''' assert conf.settings assert conf.mysql gbirthday-0.6.10/src/gbirthday/test_databases.py000066400000000000000000000025331264047066200216710ustar00rootroot00000000000000# vim: foldmethod=marker #{{{ License header: GPLv2+ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Library General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . #}}} ''' Testing the databases module ''' from nose import with_setup from .databases import DataBase database = None def setup(): '''Setup database.''' global database database = DataBase() def teardown(): '''Clean database.''' global database database = None @with_setup(setup, teardown) def test_init_no_bday(): '''init_database''' assert database database.parse('addressbook', 'conf') assert database database.add('name', 'birthday') assert database database.save_config('conf') assert database database.create_config('table', 'conf') assert database database.save_config('conf') assert database gbirthday-0.6.10/src/tests/000077500000000000000000000000001264047066200155135ustar00rootroot00000000000000gbirthday-0.6.10/src/tests/__init__.py000066400000000000000000000013501264047066200176230ustar00rootroot00000000000000# vim: foldmethod=marker #{{{ License header: GPLv2+ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Library General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . #}}} ''' Test module of gbirthday (nosetests) '''