pics/0000755000175000017500000000000011703142024011332 5ustar jeromejeromepics/gbirthday.png0000644000175000017500000001141711703142024014021 0ustar jeromejeromePNG  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`pics/gbirthday.svg0000644000175000017500000013717411703142024014045 0ustar jeromejerome image/svg+xml Calendar Jakub Steiner http://jimmac.musichall.cz calendar date time cal pics/pie.svg0000644000175000017500000010266311703142024012640 0ustar jeromejerome image/svg+xml COPYING0000644000175000017500000004313311703142024011433 0ustar jeromejeromeGNU 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. pylint0000644000175000017500000000125611722532303011646 0ustar jeromejerome#!/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") fi pylint --include-ids=y \ --disable-msg=C0103 \ --disable-msg=C0111 \ --disable-msg=C0301 \ --disable-msg=C0302 \ --disable-msg=R0904 \ --disable-msg=R0912 \ --disable-msg=R0915 \ --disable-msg=W0614 \ $command # --errors-only Makefile0000644000175000017500000000321011757264223012047 0ustar jeromejeromebindir = /usr/bin datadir = /usr/share sitelib = /usr/lib/python2.6/site-packages pixmaps = $(datadir)/pixmaps version = 0.6.6 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 $(rm) `find . | grep ".pyc"` 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 tar.gz: clean $(tar) -zcf gbirthday-$(version).tar.gz * tar.xz: clean $(tar) -Jcf gbirthday-$(version).tar.xz * 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 TODO0000644000175000017500000000146111703142024011066 0ustar jeromejeromeTODO 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.desktop.in0000644000175000017500000000026311722532303014356 0ustar jeromejerome[Desktop Entry] Name=GBirthday _Comment=Birthday reminder for E-Mail contacts Exec=gbirthday Terminal=false Type=Application Categories=Office; StartupNotify=false Icon=gbirthday Changelog0000644000175000017500000001050711703142024012211 0ustar jeromejerome0.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. README0000644000175000017500000000024111703142024011251 0ustar jeromejeromeRequired packages for proper working: (when imported, exceptions won't always be caugth in a try-except) gnome-python2-gnome, MySQLdb, pygtk, gtk, configparser src/0000755000175000017500000000000011757264223011202 5ustar jeromejeromesrc/tests/0000755000175000017500000000000011713773002012334 5ustar jeromejeromesrc/tests/__init__.py0000644000175000017500000000135011703142024014435 0ustar jeromejerome# 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) ''' src/tests/__init__.pyc0000644000175000017500000000032611713772535014623 0ustar jeromejerome  Oc@s dZdS(s& Test module of gbirthday (nosetests) N(t__doc__(((sB/home/jerome/projets/gbirthday/gbirthday.git/src/tests/__init__.pytssrc/gb0000755000175000017500000000015511757264223011521 0ustar jeromejerome#!/usr/bin/python '''import main function from gbirthday and execute it''' from gbirthday import main main() src/gbirthday/0000755000175000017500000000000011757264662013166 5ustar jeromejeromesrc/gbirthday/gtk_funcs.pyc0000644000175000017500000000143211706011367015650 0ustar jeromejerome  Oc@s%dZddlZdddZdS(sCollection of gtk functionsiNc Csd|sd}ntj|dtjdtjdtjd|}|j||j|jdS(s,show an error error message as MessageDialogtErrorttypetbuttonstflagstmessage_formatN(tgtkt MessageDialogt MESSAGE_ERRORt BUTTONS_OKt DIALOG_MODALt set_titletruntdestroy(tmessagettitletparentterrmsg((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/gtk_funcs.pytshow_error_msgs    (t__doc__RtNoneR(((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/gtk_funcs.pyts src/gbirthday/test_addressbook.pyc0000644000175000017500000001435611724165450017240 0ustar jeromejerome ôJOc@szdZddlmZddlmZdadZdZeeedZ eeedZ eeed Z eeed Z eeed Z eeed Zeeed ZeeedZeeedZeeedZeeedZeeedZeeedZdS(s Testing the addressbook module i(t with_setupi(t AddressBookcCs tadS(sSetup addressbook.N(RtAB(((sN/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/test_addressbook.pytsetupscCs dadS(sClean addressbook.N(tNoneR(((sN/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/test_addressbook.pytteardownscCstjd stdS(t init_no_bdayiN(Rt check_daytAssertionError(((sN/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/test_addressbook.pyttest_init_no_bday"scCsqddl}|jd|j|j}tjd|tjddgks[ttjsmtdS(tadd_YYYYMMDD_bdayiNs%Y%m%dtdummyi(ttimetstrftimet localtimeRtaddRRtbdays_in_period(R ttoday((sN/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/test_addressbook.pyttest_add_yyyymmdd_bday's  !cCsqddl}|jd|j|j}tjd|tjddgks[ttjsmtdS(sadd_YYYY-MM-DD_bdayiNs%Y-%m-%dR i(R R RRRRRR(R R((sN/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/test_addressbook.pyttest_add_yyyymmdd_bday21s  !cCsddl}|jj|jd}t|}tjd|tjddgksbttjd sxttjd stdS(tadd_YYYYMMDD_bday_yesterdayiNR ii( tdatetimetdateRt timedeltatstrRRRR(RtnowR((sN/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/test_addressbook.pyttest_add_bday_yesterday;s  cCsddl}|jj|jd}t|}tjd|tjd sZttjd spttjddgkstdS(sadd_YYYY-MM-DD_bday_tomorrowiNiR i( RRRRRRRRR(RRR((sN/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/test_addressbook.pyttest_add_bday_tomorrowFs  cCsddl}|jd|j|j}tjd|tjd|tjdddgksnttjstdS(sadd_YYYY-MM-DD_bday_twiceiNs%Y-%m-%dR tdummy2i(R R RRRRRR(R R((sN/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/test_addressbook.pyttest_add_bday_twiceQs  !!cCsddl}|jj|jd}t|}tjd|tjd|tjdddgksuttjd sttjd stdS(t!add_YYYYMMDD_bday_yesterday_twiceiNR Rii( RRRRRRRRR(RRR((sN/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/test_addressbook.pyttest_add_bday_yesterday_twice\s  !cCsddl}|jj|jd}t|}tjd|tjd|tjd sjttjd sttjdddgkstdS(s"add_YYYY-MM-DD_bday_tomorrow_twiceiNiR Ri( RRRRRRRRR(RRR((sN/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/test_addressbook.pyttest_add_bday_tomorrow_twicehs  cCsCd}tjd|tjd s,ttj s?tdS(tadd_YYYYMMDD_nobdayt20001010R iN(RRRRR(R((sN/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/test_addressbook.pyttest_add_nobdaytscCsCd}tjd|tjd s,ttj s?tdS(sadd_YYYY-MM-DD_nobdays 2000-10-10R iN(RRRRR(R((sN/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/test_addressbook.pyttest_add_nobday2}scCsyddl}|jj}tjd s1ttjd|tj sQttjdsfttjsutdS(s+test, if update works with adding correctlyiNiR (RRRRRRRt bdays_dict(RR((sN/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/test_addressbook.pyt test_updates cCsddl}|jj}tjd s1ttjd|tjd|tjdsftttjddkstdS(s?test, if we can find 2 people who have birthday at the same dayiNitguybrushtharveyi( RRRRRRRtlenR%(RR((sN/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/test_addressbook.pyttest_two_people_at_same_days cCs:tjd sttjtjd s6tdS(ssimply run reload() onceiN(RRRtreload(((sN/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/test_addressbook.pyttest_run_reloads N(t__doc__tnoseRt addressbookRRRRRR RRRRRRR R#R$R&R*R,(((sN/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/test_addressbook.pyts$             src/gbirthday/gtk_funcs.py0000644000175000017500000000064011703142024015475 0ustar jeromejerome'''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() src/gbirthday/test_databases.py0000644000175000017500000000253311757234304016517 0ustar jeromejerome# 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 src/gbirthday/test_addressbook.py0000644000175000017500000001140611722532303017057 0ustar jeromejerome# 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) src/gbirthday/test_conf.py0000644000175000017500000000215311703142024015477 0ustar jeromejerome# 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 nose import with_setup 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 src/gbirthday/pics/0000755000175000017500000000000011703142024014076 5ustar jeromejeromesrc/gbirthday/pics/gbirthday.png0000644000175000017500000001141711703142024016565 0ustar jeromejeromePNG  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`src/gbirthday/pics/nobirthday.png0000644000175000017500000000347711703142024016762 0ustar jeromejeromePNG  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`src/gbirthday/pics/birthdaytoday.png0000644000175000017500000000170511703142024017456 0ustar jeromejeromePNG  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`src/gbirthday/pics/birthdayred.png0000644000175000017500000000336711703142024017116 0ustar jeromejeromePNG  IHDR szzsRGBbKGD pHYs : :dJtIME 4Z~wIDATXåklTs޵S"Ʃm B8<"URBVi*BTJDBJФjQ%|-Ϩu+jC\8.5Yzw.fd!#ktf3s*]峉 թf$(&뀏EY`=>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`src/gbirthday/pics/birthdaynext.png0000644000175000017500000000155511703142024017317 0ustar jeromejeromePNG  IHDRĴl;sRGBbKGD pHYs B(xtIME 60&lIDAT8ݕ]lU=]nk؀C>#7h5ƄDD7D>0JL .Fb7ƨS"IA[Inͺvy70FXM/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`src/gbirthday/pics/birthday.png0000644000175000017500000000361511703142024016417 0ustar jeromejeromePNG  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`src/gbirthday/__init__.py0000644000175000017500000002402511757264223015273 0ustar jeromejerome# 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 - Evolution - 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() # TODO introduced after 0.6, remove if time has come def correct_settings(self): '''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 = "" for database in self.used_databases: used_db += database used_db += "|" # db[:-1] because of removing the last "|" self.settings.set("main", "databases", used_db[:-1]) 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() src/gbirthday/__init__.pyc0000644000175000017500000001713711757264662015453 0ustar jeromejerome hOc @svdZdZddlZddlZddlZddlZddlmZddlZddlm Z ddl Z ddl m Z ddl Z ddl Z e je jdd\ZZejd djdrd\ZZnyddlZejdWnek rdZnXejdejejZdddYZdZedkrrendS(sGBirthday A KBirthday clone for Gnome environment, working with different data servers: - CSV-file (comma-seperated value) - MySQL - Evolution - Thunderbird/Icedove Lightning - Sunbrid / IceOwl and relatively easy to extend for other data servers. s@VER@iN(tdate(tdedent(t DATABASEStiis%xiiit03t gbirthdaycCs|S(N((tx((sF/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/__init__.pyt>ss%dtConfcBs;eZdZdZdZdZdZdZRS(s$Class for handle all configurations.cCsd |_|_d |_d |_d |_tj|_t j |_ dt j krt j dd|_ t jj|j st jjt j ddrtjt j dd|j qt j|j qn<t j dd|_ t jj|j st j|j nt jj|j dslt jjt j ddrltjt j dd|j dqlndt j krt j dd|_nt j dd|_y!|j jt|j dWntk rnX|j|jd S( s:Try to read config file or initialize with default values.tXDG_CONFIG_HOMEs /gbirthdaytHOMEs/.config/gbirthdays /gbirthdayrcs /.gbirthdayrct XDG_DATA_HOMEs/.local/share/gbirthdayN(tNonetfirstdaytlastdaytnotify_future_bdaystused_databasest csv_filest databasestmysql_dbtmysqlt ConfigParsertsettingstostenvirontbase_config_pathtpathtisdirtshutiltcopytreetmakedirstexiststcopy2tbase_data_pathtreadfptfiletIOErrort sync_to_memtcorrect_settings(tself((sF/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/__init__.pyt__init__Es:     !  csfd}t}|dd|}|dd|}|dd|}|dd |}|d d |}|rjnd S( s>correct new settings, e.g. Evolution and not evolution anymorecsMxFtjD]5\}}j||krt}|j|(R'RBtused_db((R'sF/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/__init__.pyR%s>     cCs|jjds%|jjdn|jjdd|j|jjdd|j|jjdd|jd}x%|jD]}||7}|d7}qW|jjdd|d |jjdd |j|j r|jjd s|jjd n|jjd d |j j |jjd d |j j |jjd d |j j |jjd d|j j |jjd d|j j|jjd d|j j|jjd d|j j|jjd d|j jn|jjds|jjdn|jjdd|j|jjdd|j|jjdd|j|jjdd|j|jjdd|j|jjdd|jdS(s8Save current settings from this object to config parser.RCR RRRRDRiRRRMRNRORPRQRRRSRTRERFRGRHRIRJRLN(Rt has_sectiont add_sectiontsetR RRRRRRMRNRORPRQRRRSRTRERXRYRZR[R\(R'R]RQ((sF/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/__init__.pytsync_to_settingssB    cCs.|j|jjt|jdddS(sSave current settings to disk.s /gbirthdayrctwN(RaRtwriteR#R(R'((sF/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/__init__.pyR;s (t__name__t __module__t__doc__R(R&R%RaR;(((sF/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/__init__.pyRBs  1  . *cCs{ddlm}ddlm}t}||}|j|||}ddl}|jd|jt j dS(s1Load settings, start status icon and get to work.i(t AddressBook(t StatusIconNi`( t addressbookRgt status_iconRhRtreloadtgobjectt timeout_addt check_new_daytgtkRC(RgRhtconfRiRjRl((sF/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/__init__.pyRCs    t__main__(ii( iiiiiiiii(ii((RftVERSIONRoRRtdatetimeRttimettextwrapRRRRtlocalet setlocaletLC_ALLt DAY_AT_PLACEtMONTH_AT_PLACEtstrftimet startswithtgettexttinstallt ImportErrort_t localtimet CURRENT_DAYRRCRd(((sF/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/__init__.pyts2          !  src/gbirthday/status_icon.py0000644000175000017500000011044011757264223016064 0ustar jeromejerome# -*- 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 src/gbirthday/databases.pyc0000644000175000017500000004704411714236451015627 0ustar jeromejerome 71Oc@s*dZddlZddlZddlZddlZddlmZddddd gZyejd Wne k rnXej d ddd YZ de fd YZ d e fdYZ de fdYZde fdYZd efdYZedkr&dZndS(soDatabase classes: 'DataBase' from which everything inherits: - CVS - Evolution - Lightning - MySQL - Sunbird iNi(tshow_error_msgtDataBasetCSVt LightningtMySQLtSunbirdt evolutiont EvolutioncBsbeZdZdeed dZdZdZdZdZ dZ dZ d Z RS( s 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 tUnknowncCs1||_||_||_||_d|_dS(N(tTITLEtCAN_SAVEt HAS_CONFIGtwidgettNonet addressbook(tselfttitletcan_savet has_configR ((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pyt__init__3s     cCs ||_dS(N(R(RR((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pytset_addressbook@scCsdS(s$load file / open database connectionN((R((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pytparseCscCsdS(s=save new birthday to file/database (only if CAN_SAVE == true)N((Rtnametbirthday((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pytaddGscCsdS(s-create additional pygtk config in config menuN((Rttable((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pyt create_configKscCsdS(supdate and save values in fileN((R((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pytupdateOscCs |jr|jjtndS(s someone clicked on the checkbox for this DataBase, so show optional settings (just set the created pygtk elements to visible) N(R t set_sensitivetTrue(R((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pytactivateSs cCs |jr|jjtndS(s someone clicked on the checkbox for this DataBase, so hide optional settings (just hide the visible elements) N(R RtFalse(R((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pyt deactivate\s N( t__name__t __module__t__doc__RR RRRRRRRR (((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pyR*s      cBsDeZdZdZdZdZdZdZdZRS(simport from CSV-filecCs)tj|dddddg|_dS(NRs CSV-file (comma seperated value)s; s, s: (RRt _seperators(R((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pyRiscCs|jjjsdSx|jjjD]}tjj|rxt|D]|}xs|jD]h}t|j |dkrX|j |dd}|j |ddd }|jj ||PqXqXWqHWq#t t dd|q#WdS(sopen and parse fileNiiis!Could not save, CVS-file not set.t:( Rtconft csv_filestostpathtexiststfileR$tlentsplitRRt_(RtfilenametlinetseptdateR((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pyRmscCst|}t|jjjdkr;ttddS|jjjd}tjj |rt |jjjdd}nt |jjjdd}|j |d|d|j |jj ||dS(s/add new person with birthday to end of csv-fileisCSV-file does not existNtatws, s (tstrR,RR&R'RR.R(R)R*R+twritetcloseR(RRRR/t output_file((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pyRs  cCsO|j}|dkrK|j||jjjj|jjj|ndS(Ni(t get_activet remove_textRR&R'tremove(RR tcomboboxtindex((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pyt remove_files    cCsW|j}|j||jjjrA|jjjj|n|g|jj_dS(N(tget_textt append_textRR&R'tappend(RR R<tentryR/((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pytadd_files   c Cstj}tj}tj}|j|tj}|jjjrvx'|jjjD]}|j|q\Wn|j d|j |j|tj d}|j d|j ||j |j|d|j tj}|jjjr6t|jjjdkr6|j|jjjdn|j||j d} tj d} | j d| || j |j| tj d} | j d|j||| j |j| |j||j |j||j dS(screate aditional options menuiR;tclickedc Sstjdddtjdtjtjtjtjf}tj}|j d|j d|j |tj}|j d|j d|j d|j ||j }|tjkr|j}|j|n|jdS( NRtactiontbuttonss All filest*s CSV-Filesstext/csvs*.csv(tgtktFileChooserDialogR tFILE_CHOOSER_ACTION_OPENt STOCK_CANCELtRESPONSE_CANCELt STOCK_OPENt RESPONSE_OKt FileFiltertset_namet add_patternt add_filtert add_mime_typetrunt get_filenametset_texttdestroy(R RBtchoosertfiltertresponseR/((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pyt choose_files(            tselectRN(RHtVBoxtHBoxt pack_starttcombo_box_new_textRR&R'R@t set_activetshowtButtontconnectR>tEntryR,RVRCR( Rtpreftvboxthboxthbox2R<tcsv_filet remove_buttonRBR[t search_buttont add_button((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pyRsF                     ( R!R"R#RRRR>RCR(((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pyRfs     cBs)eZdZdZdZdZRS(s+data import from the Evolution address bookcCs5tj|dddtdttjd|_dS(NRRRRs\r?\n(RRRtretcompilet _split_re(R((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pyRs cCsyddl}|jsdSWn"tk rAttddSXxu|jjD]d}|jj|d}|szqRnx9|jD]+}|j}|j |j j |fqWqRWdS(s)load and parse parse Evolution data filesiNsAFor correctly usage, you need to install gnome-python2-evolution.i( Rtebookt ImportErrorRR.tlist_addressbookstopen_addressbooktget_all_contactstget_vcard_stringtparse_birthdaytpropst full_name(RRtbookRqtcontacttvcard((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pyRs    cCsh|\}}|jj|}xC|D];}|jdr%|jj||jdddq%q%WdS(s9parse evolution addressbook. the file is in VCard format.tBDAYR%iN(RpR-t startswithRR(RtdataRyR|tlinesR0((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pyRws   (R!R"R#RRRw(((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pyRs  cBsJeZdZdedZdZdZdZdZdZ RS(s$Thunderbird/Lightning implementationsThunderbird/Icedove LightningcCsNtj|d|d|tjjtjdd|_d|_d|_ dS(NRRtHOMEs.mozilla-thunderbird( RRR(R)tjointenvirontTHUNDERBIRD_LOCATIONR tcursortconn(RRR((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pyR s   c Csddl}tjj|d}tjj|r|j}|j|i}xp|jD]b}|jjdr_i||                 ( R!R"R#RRdRRRR(((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pyRs     cBs eZdZdZdZRS(s2Sunbird/Iceowl implementation (based on lightning)cCs<tj|dddttjjtjdd|_dS(NRsSunbird/IceowlRRs.mozilla(RRRR(R)RRtmozilla_location(R((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pyRscCstjj|jd}tjj|jd}tjj|rR|j|n2tjj|rt|j|nttddS(s$load file / open database connectiontsunbirdticeowls'Neither iceowl nor sunbird is installedN(R(R)RRR*RRR.(RRR((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pyR s(R!R"R#RR(((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pyRs t__main__cCs|S(N((tx((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pyts((R#R(RnRHtimpt gtk_funcsRtSUPPORTED_DATABASESt find_moduleRrRARRRRRRR!R.(((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases.pyts&      <{)w src/gbirthday/test_conf.pyc0000644000175000017500000000177311713772533015670 0ustar jeromejerome  Oc@sKdZddlmZddlmZdadZdZdZ dS( s Testing the conf class i(t with_setupi(tConfcCs tadS(sSetup database.N(Rtconf(((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/test_conf.pytsetupscCs dadS(sClean database.N(tNoneR(((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/test_conf.pytteardownscCs"tjsttjstdS(sinitialize confN(RtsettingstAssertionErrortmysql(((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/test_conf.pyt test_init$sN( t__doc__tnoseRt__init__RRRRRR (((sG/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/test_conf.pyts   src/gbirthday/addressbook.pyc0000644000175000017500000001250711757264662016210 0ustar jeromejerome hOc@sIdZddlZddlmZddlmZdddYZdS(sAddressBook moduleiN(t DATABASES(tdedentt AddressBookcBsYeZdZd dZdZd d dZddZdZdZ dZ RS( s(AdressBook that saves birthday and namescCs^||_|jr-|j|_|j|_nd|_d|_i|_i|_t|_dS(Nii(tconftfirstdaytlastdaytbdayst bdays_dicttFalset needs_update(tselfR((sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/addressbook.pyt__init__s       cCst|_t|tr|jddkratjg|jdD]}t|^qC}qtjt|d t|dd!t|d}n||j kr||j |kr|j |j |qn|g|j |s src/gbirthday/addressbook.py0000644000175000017500000001550311757264223016035 0ustar jeromejerome# 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''' 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:gbirthday-' + now + '\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") f.write("END:VCALENDAR") src/gbirthday/databases/0000755000175000017500000000000011757264662015115 5ustar jeromejeromesrc/gbirthday/databases/__init__.py0000644000175000017500000000426611757264223017227 0ustar jeromejerome# 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 - Evolution - 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 evolution import Evolution from lightning import Lightning from mysql import MySQL from sunbird import Sunbird mysql_db = MySQL() DATABASES = [CSV(), Evolution(), Lightning(), mysql_db, Sunbird()] src/gbirthday/databases/csv.py0000644000175000017500000001307711757264223016263 0ustar jeromejerome# 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) src/gbirthday/databases/lightning.py0000644000175000017500000001452411722647643017454 0ustar jeromejerome# 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)) src/gbirthday/databases/__init__.pyc0000644000175000017500000000473111757264662017376 0ustar jeromejerome hOc@sdZdefdYZddlmZddlmZddlmZddl m Z ddl m Z e Z eeee e gZd S( soDatabase classes: 'DataBase' from which everything inherits: - CSV - Evolution - Lightning - MySQL - Sunbird tDataBasecBsDeZdZdeedZdZdZdZdZRS(s 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 tUnknowncCs||_||_||_dS(N(tTITLEtCAN_SAVEt HAS_CONFIG(tselfttitletcan_savet has_config((sP/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/__init__.pyt__init__$s  cCs ||_dS(s$load file / open database connectionN(tab(Rt addressbooktconf((sP/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/__init__.pytparse,s cCsdS(s=save new birthday to file/database (only if CAN_SAVE == true)N((Rtnametbirthday((sP/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/__init__.pytadd2scCsdS(s8record current entries in config menu into configurationN((RR ((sP/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/__init__.pyt save_config6scCsdS(s-create additional pygtk config in config menuN((RtvboxR ((sP/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/__init__.pyt create_config:s( t__name__t __module__t__doc__tTrueR R RRR(((sP/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/__init__.pyRs    i(tCSV(t Evolution(t Lightning(tMySQL(tSunbirdN(RtobjectRtcsvRt evolutionRt lightningRtmysqlRtsunbirdRtmysql_dbt DATABASES(((sP/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/__init__.pyts# src/gbirthday/databases/sunbird.pyc0000644000175000017500000000277311722647652017305 0ustar jeromejerome OKOc@sFddlZddlmZddlmZdefdYZdS(iN(t Lightning(tshow_error_msgtSunbirdcBs eZdZdZdZRS(s2Sunbird/Iceowl implementation (based on lightning)cCsBtt|jdddttjjtjdd|_dS(NttitlesSunbird/Iceowlt has_configtHOMEs.mozilla( tsuperRt__init__tFalsetostpathtjointenvirontmozilla_location(tself((sO/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/sunbird.pyRscCs||_tjj|jd}tjj|jd}tjj|r[|j|n2tjj|r}|j|nttddS(Ntsunbirdticeowls'Neither iceowl nor sunbird is installed( tabR R R R texiststget_config_fileRt_(Rt addressbooktconfRR((sO/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/sunbird.pytparses (t__name__t __module__t__doc__RR(((sO/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/sunbird.pyRs (R tgbirthday.databasesRtgbirthday.gtk_funcsRR(((sO/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/sunbird.pyts src/gbirthday/databases/lightning.pyc0000644000175000017500000001325311722647652017615 0ustar jeromejerome OKOc@sFddlZddlmZddlmZdefdYZdS(iN(tDataBase(tshow_error_msgt LightningcBsMeZdZdedZdZddZdZdZ dZ RS( s$Thunderbird/Lightning implementationsThunderbird/Icedove LightningcCs]tt|jd|d|tjjtjdd|_d|_ d|_ d|_ dS(Nttitlet has_configtHOMEs.mozilla-thunderbird( tsuperRt__init__tostpathtjointenvirontTHUNDERBIRD_LOCATIONtNonetabtcursortconn(tselfRR((sQ/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/lightning.pyRs    c Csddl}tjj|d}tjj|r|j}|j|i}xp|jD]b}|jjdr_i||s src/gbirthday/databases/mysql.pyc0000644000175000017500000001103411757234321016763 0ustar jeromejerome 8Oc@sFddlZddlmZddlmZdefdYZdS(iN(tDataBase(tshow_error_msgtMySQLcBsDeZdZdZdZdZdZdZdZRS(sMySQL database importcCstt|jddd|_d|_d|_d|_d|_d|_d|_ d|_ d|_ d|_ d|_dS( NttitleRt localhostt3306ttpersontnametdate(tsuperRt__init__thosttporttusernametpasswordtdatabasettabletname_rowtdate_rowtNonetabtcursortconn(tself((sM/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/mysql.pyR s          c Csyddl}WnttddnXyX|jd|jdt|jd|jd|jd |j |_ |j j |_ Wn.t k r}ttd t |tSXtS( sestablish connectioniNsPackage %s is not installed.tMySQLdbR R tusertpasswdtdbs!Could not connect to MySQL-Server(RRt_tconnectR tintR RRRRRt ExceptiontstrtFalsetTrue(RRtmsg((sM/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/mysql.pyR%s    cCs||_|jsdSynd|j|j|jf}|jj||jj}x,|D]$}|j|dt |dq^WWn7t k r}t t dd|t |fnX|j jdS(s&connect to mysql-database and get dataNsSELECT %s, %s FROM %siisCould not execute MySQL-querys: %s %s(RRRRRRtexecutetfetchalltaddR!R RRRtclose(Rt addressbooktconftqrytrowstrowR$((sM/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/mysql.pytparse8s   & cCst|}|jy6d|j|j|j||f}|jj|Wn7tk r}tt dd|t|fnX|j j |j j ||dS(sinsert new Birthday to databases+INSERT INTO %s (%s, %s) VALUES ('%s', '%s')sCould not execute MySQL-querys: %s %sN(R!RRRRRR%R RRRR(RR'(RRtbirthdayR+R$((sM/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/mysql.pyR'Js    cCs|jdj|_|jdj|_|jdj|_|jdj|_|jdj|_|jdj|_|jdj|_|jdj|_ ||_ d S( sSave modificationsiiiiiiiiN( tentriestget_textR R RRRRRRR(RR*((sM/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/mysql.pyt save_configXsc Csvd|jgd|jgd|jgd|jgd|jgd|jgd|jgd|jgg}g|_t j t |d t }|j d xt|D]\}}t j|d }|jd d |j|j|d d ||d t j}|j|d |j|jj||j|d d ||d qW|j|j|t t d dS(s-create additional mysql config in config menutHosttPorttUsernametPasswordtDatabasetTablesName rowsDate rowiiiig?N(R R RRRRRRR0tgtkR8tlenR"tset_col_spacingst enumeratetLabelt set_alignmenttshowtattachtEntrytset_texttappendt pack_start( RtvboxR*tvaluestsqltabletitvaluetlabeltentry((sM/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/mysql.pyt create_configes.            ! ( t__name__t __module__t__doc__R RR.R'R2RL(((sM/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/mysql.pyRs     (R9tgbirthday.databasesRtgbirthday.gtk_funcsRR(((sM/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/mysql.pyts src/gbirthday/databases/evolution.pyc0000644000175000017500000000443211722532520017640 0ustar jeromejerome ôJOc@@snddlmZddlZddlZddlZddlmZddlmZdefdYZ dS(i(tabsolute_importN(tDataBase(tshow_error_msgt EvolutioncB@s/eZdZdZdddZdZRS(s+data import from the Evolution address bookcC@s;tt|jdddtdttjd|_dS(NttitleRtcan_savet has_configs\r?\n(tsuperRt__init__tFalsetretcompilet _split_re(tself((sQ/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/evolution.pyRscC@s||_yddl}|js%dSWn"tk rJttddSXxx|jjD]g}|jj|d}|sq[nx<|jD].}|j }|j |j j |f|qWq[WdS(s)load and parse parse Evolution data filesiNs@You need to install python-evolution to use the evolution modulei( tabt evolutiontebookt ImportErrorRt_tlist_addressbookstopen_addressbooktget_all_contactstget_vcard_stringtparse_birthdaytpropst full_name(R t addressbooktconfRtbookRtcontacttvcard((sQ/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/evolution.pytparses     cC@se|\}}|jj|}x@|D]8}|jdr%|j||jdddq%q%WdS(s9parse evolution addressbook. the file is in VCard format.tBDAYt:iN(R tsplitt startswithtadd(R tdataRRRtlinestline((sQ/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/evolution.pyR6s   N(t__name__t __module__t__doc__RtNoneRR(((sQ/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/evolution.pyRs ( t __future__RtgtktosR tgbirthday.databasesRtgbirthday.gtk_funcsRR(((sQ/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/evolution.pyts    src/gbirthday/databases/csv.pyc0000644000175000017500000001214011757264662016423 0ustar jeromejerome hOc@sRddlZddlZddlmZddlmZdefdYZdS(iN(tDataBase(tshow_error_msgtCSVcBsDeZdZdZdZdZdZdZdZRS(simport from CSV-filecCsAtt|jdddddg|_d|_d|_dS(Nttitles CSV-file (comma seperated value)s; s, s: (tsuperRt__init__t _seperatorstNonet addressbooktconf(tself((sK/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/csv.pyRs cCs||_||_||_|js(dSx|jD]}tjj|rxt|D]y}xp|jD]e}t |j |dkrg|j |dd}|j |ddd }|j ||PqgqgWqWWq2t t d|q2WdS(sopen and parse fileNiiisCould not load CSV-file:(tabRR t csv_filestostpathtexiststfileRtlentsplittaddRt_(R RR tfilenametlinetseptdatetname((sK/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/csv.pytparses      cCst|}t|jjdkr8ttddS|jjd}tjj|rvt |jjdd}nt |jjdd}|j |d|d|j |j j ||dS(s/add new person with birthday to end of csv-fileisCSV-file does not existNtatws, s (tstrRR R RRR RRRtwritetcloseRR(R RtbirthdayRt output_file((sK/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/csv.pyR4s  cCsW|j}|j\}}|dk rS|j|j|d|j|ndS(Ni(t get_selectiont get_selectedRtremovet get_value(R twidgetttreetstoretfilestselecttmodelttreeiter((sK/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/csv.pyt remove_fileDs   cCs|j|_dS(N(t tmp_csv_filesR (R R ((sK/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/csv.pyt save_configLsc s0|j_tjtd}tjtjrcx*jD]}jt|gq@Wntj}|j ttj }tj t d|dd}|j |tj}|jtjtj|jtj|j||jdd|j|j|j|ttdtjtd} fd} tjdtj} | jd | | j| j| ttdtjdtj} | jd j|j| j| j| ttd| j|j| ttd|j|j|ttdd S( screate aditional options menuitFilettextiiic stjdddtjdtjtjtjtjf}tj}|j d|j d|j |tj}|j d|j d|j d|j ||j }|tjkr|j}j|gjrjj|q|g_n|jdS( NRtactiontbuttonss All filest*s CSV-Filesstext/csvs*.csv(tgtktFileChooserDialogRtFILE_CHOOSER_ACTION_OPENt STOCK_CANCELtRESPONSE_CANCELt STOCK_OPENt RESPONSE_OKt FileFiltertset_namet add_patternt add_filtert add_mime_typetrunt get_filenametappendR.tdestroy(R&tchoosertfiltertresponseR(R R((sK/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/csv.pyt choose_filels.             tstocktclickedN(R R.R5tHBoxtFalset ListStoreRRCtTreeViewtset_headers_visibletCellRendererTexttTreeViewColumnRt append_columntScrolledWindowt set_policytPOLICY_AUTOMATICtset_shadow_typet SHADOW_INRtset_size_requesttshowt pack_starttTruetVBoxtButtont STOCK_ADDtconnectt STOCK_REMOVER-( R tvboxR thboxtcsv_fileR'trenderertcolumntscrollt vbox_buttonsRHt add_buttont remove_button((R R(sK/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/csv.pyt create_configOsD              ( t__name__t __module__t__doc__RRRR-R/Rj(((sK/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/csv.pyRs     (R5R tgbirthday.databasesRtgbirthday.gtk_funcsRR(((sK/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/databases/csv.pyts  src/gbirthday/databases/mysql.py0000644000175000017500000001123311757234304016622 0ustar jeromejerome# 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) src/gbirthday/databases/evolution.py0000644000175000017500000000505111722532303017472 0ustar jeromejerome# 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 . #}}} from __future__ import absolute_import import gtk import os import re from gbirthday.databases import DataBase from gbirthday.gtk_funcs import show_error_msg class Evolution(DataBase): '''data import from the Evolution address book''' def __init__(self): super(Evolution, self).__init__(title='Evolution', can_save=False, has_config=False) self._split_re = re.compile(r'\r?\n') def parse(self, addressbook=None, conf=None): '''load and parse parse Evolution data files''' # XXX: set addressbook in __init__? self.ab = addressbook try: import evolution # When there is no evolution addressbook, silently abort # parsing. if not evolution.ebook: return except ImportError: show_error_msg(_("You need to install python-evolution to use the evolution module")) return for book in evolution.ebook.list_addressbooks(): ebook = evolution.ebook.open_addressbook(book[1]) if not ebook: continue for contact in ebook.get_all_contacts(): # contact.props.birth_date{.year, .month, .day} non-existing # -> using vcard vcard = contact.get_vcard_string() self.parse_birthday((contact.props.full_name, vcard), addressbook) def parse_birthday(self, data, addressbook): '''parse evolution addressbook. the file is in VCard format.''' # TODO change to contact.props.birth_date, no vcard would be needed full_name, vcard = data lines = self._split_re.split(vcard) for line in lines: # if BDAY is in vcard, use this as birthday if line.startswith('BDAY'): addressbook.add(full_name, line.split(':', 1)[1]) src/gbirthday/databases/sunbird.py0000644000175000017500000000321011722647624017124 0ustar jeromejerome# 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')) src/gbirthday/status_icon.pyc0000644000175000017500000006736011757264662016252 0ustar jeromejerome hOc@sdZddlZddlZddlZddlmZddlmZddlmZmZddlm a ej j e j ej d dZd fd YZed krd ZndS( sStatusIcon moduleiNi(tVERSION(t DATABASES(tMONTH_AT_PLACEt DAY_AT_PLACE(t CURRENT_DAYs/pics/t StatusIconcBseZdZdZdZdZdZdZdZdZ dZ d Z d Z dd Zd Zd ZdZdZeeeedZRS(sClass to show status iconcCstjtd|_||_||_d|_d|_|j |jj d|j |jj d|j d}tj |dS(screate status icons birthday.pngs popup-menutbutton_press_eventcSsddl}|j|dS(s5start default browser with gbirthday-website on clickiN(t webbrowsertopen(tdialogtlinkR((sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyton_url.s N(tgtktstatus_icon_new_from_filetIMAGESLOCATIONticont addressbooktconftNonetshowbdtdlgt_reload_set_icontconnectton_right_clickt on_left_clicktabout_dialog_set_url_hook(tselfRRR ((sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyt__init__"s        cGs|jj|jdS(s,reload gbirthday, reload data from databasesN(RtreloadR(Rtargs((sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pytreload_gbirthday5s cCsDtjdtjtj}t|kr@|a|jntS(s/check for new birthday (check every 60 seconds)s%d(ttimetstrftimet localtimeRRtTrue(Rtnew_day((sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyt check_new_day:s !  cCsh|jj|jjr3|jjtdn|jjtd|jjdrp|jjtdnyddl}|jdrOxt |j j dD]}d}|dkrt d }nC||j jkr|dkrt d }qt d |}nqx6|jj|D]"}|j||}|jq"WqWnWntk rcnXdS( sBCheck, if there is a birthday and set icon and notify accordingly.s birthday.pngsnobirthday.pngisbirthdayred.pngiNt gbirthdayisBirthday today:sBirthday tomorrow:sBirthday in %s Days:(RRtbdays_in_periodRt set_from_fileRt check_daytpynotifytinittrangeRtlastdayRt_tnotify_future_bdayst Notificationtshowt ImportError(RR)tdayt noty_stringtnametnotify((sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyRCs0      cCsjtj}tjtj}|j|jd|jd|j|tjtj }|j|jd|j d|j|tjtj }|j|jd|j d|j|tjtj }|j|jd|jd|j|tjtj}|j|jd|jd|j||jddtj|||dS(screate menu windowtactivates add birthdaytabouts file.quitN(R tMenut ImageMenuItemt STOCK_REFRESHR0tconnect_objectRRtappendt STOCK_ADDtaddtSTOCK_PREFERENCEStpreferences_windowt STOCK_ABOUTt create_dialogt STOCK_QUITtfinish_gbirthdaytpopuptstatus_icon_position_menu(Rt event_buttont event_timeRtmenutnew_menu((sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyt make_menugs2             cCs.|j}tj}|jt|jtd|jdtjj t d}|j ||j t d|j d|jd|jddd d d d g|jd gtd }|d kr|j|n|jtd|jdd}|jd||jdS(screate about dialogsBirthday remindert GBirthdays gbirthday.pngs birthday.pnguECopyright © 2007 Alex Mallo, 2009 Andreas Bresser, 2009 Thomas SpurasLicensed 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.s$Andreas Bresser s%Stefan Jurco sAlex Mallo s(Thomas Spura s'Robert Wildburger s)Jérôme Lafréchoux stranslator-creditsQThere are no translations or the translator doesn't want to get credits for that.s!http://gbirthday.sourceforge.net/cSs |tjkr|jndS(N(R tRESPONSE_CANCELthide(twtres((sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pytclosestresponseN(RR t AboutDialogt set_versionRt set_commentsR-tset_nametgdktpixbuf_new_from_fileRtset_logotset_icon_from_filet set_copyrightt set_licenset set_authorst set_artiststset_translator_creditst set_websiteRtrun(RtunoRtimagetcredRQ((sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyRBs8            cCs-|jdk r|jjntjdS(s exit programN(RRtdestroyR t main_quit(Rttext((sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyRDscCs|j|||dS(sopen menu window on right clickN(RK(RRRGRH((sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyRscCsB|jdkr>|js%|jq>|jjd|_ndS(s(close/open window with list of birthdaysiN(tbuttonRt openwindowReR(RRRG((sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyRs    c s7ddljdttt_tj}|jd|jtj d}jj |tj ddt|j ttd|j |jdd}tj}j|dddd |jtjd }jjr|jd td n|jd td|jtj|j ||j|jtj|jjtj|d }fd}x^tjjjj d D]=}x4jj!|D] }|||||d }qWqWj|jjjjj"dj#dS(s'open window that includes all birthdaysiNtiiiii iRLs %st Birthdayss %s s No birthdays in specified periodc sx5jjjD]!\}}||kr|}qqWy:ttjdd|jdddddddf }Wn|j}nXtj}|j }t dj j j |j } |dkr|jtdtjd|} | jd|tjd|} | jd|tjd|} | jd|tjt d} | jdt dtjd| }|jd| n|dkr|jtd tj|} | jd |tj|} | jd |tj|} | jd |tj| }|jd | |d krqtjt d } | jd t d q8t dt|d }tj|} | jd |n|jtdtj|} tj|} tj|} tj| }|dkrtjt d} ntjt d|} j|dd||d|j| j| j| j| j|jtjdddd}|j| |jtjdddd}|j| |jtjdddd}|j| |jtjdddd}|j| |jtjdddd}|j||jj|ttd||dj|ttd||dj|dd||dj|dd||dj|dd||ddS(Ns%Biiis%s Yearssbirthdaytoday.pngs %stTodaysbirthdaylost.pngs!%ss!%sit Yesterdays %s Days agosbirthdaynext.pngtTomorrows%s Daysgg?g?iiii(RtbdaystitemststrRR tmonthR tImageR2R-tdatettodaytyearR'RtLabelt set_markuptattachR0t AlignmentR>RR(t delta_dayR4tfilaRttnamest birthdatet lang_monthRcR2tyearst label_montht label_dayt label_namet label_whent label_yearstagot align_montht align_dayt align_namet align_whent align_years(tdatetimettableR(sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyt add_to_lists   .                             tfocus_out_event($Rtgtk_get_top_windowtFalseR"RR tHBoxtset_border_widthR0tFrameRR>tTablet pack_starttset_col_spacingstEventBoxRyRwRR&RxR-t set_justifyt JUSTIFY_RIGHTt modify_bgt STATE_NORMALt rc_get_styletbgtSTATE_SELECTEDR+RtfirstdayR,R(Rt closebdwindow( RtboxtframeR|t event_boxtlabelRR{R4((RRRsI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyRisF             ^&   c sMjtdtjtd}j|tjddt}|jd|jdtj td}|j |dddd|j tj td}|j |dddd|j tj td }|j |dddd |j tj td }|j |ddd d |j tj td }|j |dddd|j tj t jjdddddddddd}tj|dddd|j ddddj tj t jjdddddddddd}tj|dddd|j ddddj tj t jjdddt jjdddddd}tj|dddd|j dddd j d}tjjjjtjdtj}|jjjjd|||jdjtjtd}|jttd|j|ttd|j |ddd d |j j |j tj} |j | ddd d| j fd} fd} tjtd} i_i_xat D]Y} tjtd}| j|ttdtj| j!j| <|jj| ttd| j"r^tjdtjj| <j| jd| | j| j |jj| ttdj| jj| j#j| jd| | n| j$j%jj&krj| jt'n|j j| j qOW|j | dddd| j |j|t't'd |j fd!}fd"fd#}tj(}|j)d|j*tj+tjdtj,}|j||jd|j tjdtj-}|j||jd||j tjdtj.}|j||jd||j | j|ttd|j |j j/dj d$S(%sshow settings windowt Preferencesiiii sPast birthdaysisNext birthdayssNotification: Future birthdaysisICS Calendar exportitDatabaseitlowerituppert step_incrit page_incrt page_sizet climb_rategtdigitsiZcSs|j|jdS(s+Enable / disable ICS export setting widgetsN(t set_sensitivet get_active(tchkRh((sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pytics_export_chk_cbststocktclickedcsj|j|jdS(s#Enable / disable DB setting widgetsN(t db_buttonsRR(twidgettdb(R(sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyt db_selectscsjjjdtdtjtd}j|jfd}fdfd}tj }|j d|j tj tj dtj}|j||jd|jtj dtj}|j||jd||jtj dtj}|j||jd||j|j|ttd |j|jj|jtjd S( s#Create and display DB config windowt sDatabase ConfigurationicsjdS(s'Destroy windows (discard modifications)N(Re(R(tpref_db(sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pytpreferences_cancel_cbscs!jjjjdS(sSave modificationsN(t save_configRtsave(R(RR(sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pytpreferences_apply_cbscsjdS(s%Save modifications and destroy windowN(Re(R(RR(sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pytpreferences_ok_cbsRRiN(Rt __class__t__name__R-R tVBoxRt create_configRt HButtonBoxt set_spacingt set_layoutt BUTTONBOX_ENDtButtont STOCK_APPLYR>RR0t STOCK_CANCELtSTOCK_OKRt set_modalR"(RRtvboxRRthboxRh(R(RRRsI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pytpreferences_dbs8            ttoggledicsjdS(s'Destroy windows (discard modifications)N(Re(R(t preferences(sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyRscsjj_jj_jj_jj_xtD]}j|jr|j j jj krjj j |j j qqO|j j jj krOjj j |j j qOqOWjjdS(sSave modificationsN(tget_value_as_intRRR,R.Rt ics_exportRtdb_chkRRtused_databasesR<tremoveR(RR(tspin_notify_future_bdayst spin_lastdayRt spin_firstdayt chk_export(sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyRs  csjdS(s%Save modifications and destroy windowN(Re(R(RR(sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyRsN(0RR-R RRR>RRtset_row_spacingsRwRyR0t AdjustmenttintRRt SpinButtonR,R.t CheckButtont set_activeRRR?RRtics_export_configRRt HSeparatorRRRtTITLEt HAS_CONFIGRRRRR"RRRRRRRR(RttextcwRRRt adjustmentRRhRthsepRRRRRR((RRRRRRRsI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyR@Vs         $          0    !              c sjtdjdtjtd}fd}tj}tjtd}|j|j dd|j |ttdtj j j jj|j ttdtjtd}tj}|jtjtj|j||j|j |ttd|jd ||j|j |ttdfd }tjtd jj jjd |j|j ttdtj}tjtj jd dd ddddddd} tj| dddd_tjtd_jj j jjj j j|j jttd|j jttdjjjj|j|j |ttdtj!} |j | ttd| jtd} tjtd_"j"j#| j"j dd|j j"ttdj"jtj$j j j%tj&d} | j't| j#| tj(_)j)j*| j)j+tj,tj,|j j)ttdj)j| jtjtd_-j-j#| j-j ddj-j j j|j j-ttdj-jtj$j j j.tj&d} | j't| j#| tj(_/j/j*| j/j+tj,tj,j/j j j|j j/ttdj/j| jfd} fdfd}tj0}|j1d|j2tj3tjdtj4}|j5||jd |jtjdtj6}|j5||jd | |jtjdtj7}|j5||jd ||j|j |ttd|jj5||jj8tjdS( s"Display ICS export settings windowsICS Export configurationi c stjdddtjdtjtjtjtjf}tjj j j \}}|j ||j ||j}|tjkr|j|jn|jdS(sFile selection dialogttitlesICS Export filetactiontbuttonsN(R tFileChooserDialogtFILE_CHOOSER_ACTION_SAVERRMt STOCK_OPENt RESPONSE_OKtostpathtsplitRt ics_filepathtset_current_foldertset_current_nameRatset_textt get_filenameRe(Rtentrytchoosertfoldert file_nameRR(R(sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyt set_filepath(s    s'Export birthday list in iCalendar file:ig?tBrowseiRcs\jj|jjj|jjj|jjj|jdS(s*Enable / disable ICS alarm setting widgetsN(tics_alarm_days_spinRRtics_alarm_days_labelt!ics_alarm_custom_properties_labelt"ics_alarm_custom_properties_scroll(R(R(sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pytics_alarm_chk_cbTs    s Set alarmsRRi<RiRRRgRsdays before each birthdays5Use this if you know what you're doing. See RFC 2445.s Custom ICS properties for VEVENTtbuffers Custom ICS properties for VALARMcsjdS(s'Destroy windows (discard modifications)N(Re(R(twindow(sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pytics_export_config_cancel_cbscsjj_jj_tjjj_jj j j_ jj j j_ j jdS(sSave modificationsN(tget_textRRRt ics_alarmRqRRtics_alarm_daystget_start_itert get_end_itertics_custom_propertiestics_alarm_custom_propertiesRtexport(R(ttextbuffer_eventttextbuffer_alarmRRtfilename(sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pytics_export_config_apply_cbs  csjdS(s%Save modifications and destroy windowN(Re(R(RR(sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pytics_export_config_ok_cbsRN(9RR-RR RRRRwR0t set_alignmentRtEntryRRRR"RRstset_from_stocktSTOCK_DIRECTORYtICON_SIZE_BUTTONt set_imageRRRRRRRRRRRRtics_custom_properties_labeltset_tooltip_textt TextBufferR tTextViewt set_editabletScrolledWindowtics_custom_properties_scrolltadd_with_viewportt set_policytPOLICY_AUTOMATICRR RRRRRRR>RRR(RRRRRRRhtnew_imgRRRtcustom_properties_tooltip_strttextviewRR((RRRRRRR sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyR s                                                     cCs|jdddS(s4Show Dialog to add new Person - not yet implemented!N(tadd_single_manualR(RRg((sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyR>sc s ddl|dk r%|jnjtdtjtd}j|tj ddt}|j d|j dtj td}|j d d |j|dd dd |jtj td }|j d d |j|dd d d|jtj td }|j d d |j|dd dd|jtjjd |jd ddd jtj|jd dd djtjxEtD]=}|jr|jjjjjkrj|jqqWjdj|jd ddd|j|ttd|jfd}fdfd}tj } | j!d| j"tj#tj$dtj%j&t| jj'djtj$dtj(} | j| | j'd|| jtj$dtj)j&t| jj'd|j|j| ttd| j|jfd} j'd| j*djdS(sAdd birthday dialog.iNtAddiiii tNameig?tBirthdaysSave to file/databaseRjicsjdS(s'Destroy windows (discard modifications)N(Re(R(t add_window(sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pytadd_single_manual_cancel_cb+scsxtD]}}|jjkrtj}|dcd7<|jdkrbj|_n|jjj |qqWj dj dS(sSave new added personisThunderbird/Icedove LightningRjN( RRtget_active_texttlisttget_dateRtabR>RRtRR(RRtcalend(R4tcomboboxRRtcalendar(sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pytadd_single_manual_apply_cb/s & csjdS(s%Save modifications and destroy windowN(Re(R(R2R)(sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pytadd_single_manual_ok_cb<siRRcsMjdkr/jtjtnjtjtdS(NRj(RRR"R(R(R4t ok_buttont apply_button(sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pytentry_modification_cbXs   tchanged(+RRReRR-R RRR>RRRRwRRyR0RRtCalendartcombo_box_new_textRtCAN_SAVERRRRRt append_textRRRR"RRRRRRRRRRR( RRRRRRRR*R3RRhR6(( R4RR1R0RR2R4R)R5sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyR%s                                  cCs&|jr"|jjd|_ndS(sclose about windowN(RReR(RRbtdos((sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyRs  cstjtjj||r8jtjnjtjj|jt dj |j dfd}j d|S(sGet gtk top window.s birthday.pngi cs&|jtjjkr"jndS(N(tkeyvalR tkeysymstEscapeRe(Rtevent(R(sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pytkeypresssskey-press-event( R tWindowtWINDOW_TOPLEVELt set_decoratedt set_positiontWIN_POS_CENTERt WIN_POS_MOUSEt set_titleRZRtset_skip_taskbar_hintRR(Rt decoratedtcenterthide_in_taskbarRA((RsI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyRs    N(Rt __module__t__doc__RRR$RRKRBRDRRRiRR@RR>R%Rt staticmethodR"RR(((sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyRs&   $ ! 3    t__main__cCs|S(N((tx((sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyts(RNR RRRRRRRRtseptjoint__file__RRRRR-(((sI/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/status_icon.pyts   & src/gbirthday/test_databases.pyc0000644000175000017500000000241711727661543016671 0ustar jeromejerome _c_Oc@sZdZddlmZddlmZdadZdZeeedZ dS( s Testing the databases module i(t with_setupi(tDataBasecCs tadS(sSetup database.N(Rtdatabase(((sL/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/test_databases.pytsetupscCs dadS(sClean database.N(tNoneR(((sL/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/test_databases.pytteardownscCsts ttjddts(ttjddtsDttjdts]ttjddtsyttjdtstdS(t init_databaset addressbooktconftnametbirthdayttableN(RtAssertionErrortparsetaddt save_configt create_config(((sL/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/test_databases.pyttest_init_no_bday"s       N( t__doc__tnoseRt databasesRRRRRR(((sL/home/jerome/projets/gbirthday/gbirthday.git/src/gbirthday/test_databases.pyts   po/0000755000175000017500000000000011757264223011031 5ustar jeromejeromepo/he.po0000644000175000017500000001312211757264223011764 0ustar jeromejerome# 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 "" po/cs.po0000644000175000017500000001260011757264223011775 0ustar jeromejerome# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # 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-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: 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 "" #: ../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 "" #: ../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 "" #: ../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 "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 "" #: ../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 "" #: ../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 "" po/en.po0000644000175000017500000000530611703142024011760 0ustar jeromejeromemsgid "" 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 "" po/pt.po0000644000175000017500000001140111757264223012011 0ustar jeromejerome# 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 "" po/gbirthday.pot0000644000175000017500000001113111757264223013527 0ustar jeromejerome# 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 "" po/ru.po0000644000175000017500000001421011757264223012015 0ustar jeromejerome# 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 "" po/de.po0000644000175000017500000001366211757264223011771 0ustar jeromejerome# 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." po/install_po.py0000644000175000017500000000211011703142024013522 0ustar jeromejerome# 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) po/es.po0000644000175000017500000001136211757264223012003 0ustar jeromejerome# 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 "" po/sk.po0000644000175000017500000001135411757264223012012 0ustar jeromejerome# 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 "" po/fr.po0000644000175000017500000001364411757264223012010 0ustar jeromejerome# 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-05-09 23:07+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 ya %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." po/da.po0000644000175000017500000001266011757264223011762 0ustar jeromejerome# 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 "" po/gl.po0000644000175000017500000001136011757264223011774 0ustar jeromejerome# 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 "" po/POTFILES.in0000644000175000017500000000050011757264223012601 0ustar jeromejeromesrc/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 po/it.po0000644000175000017500000001241111757264223012004 0ustar jeromejerome# 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-05-15 11:38+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: 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 "Compleaano domani:" #: ../src/gbirthday/status_icon.py:93 #, python-format msgid "Birthday in %s Days:" msgstr "" #: ../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 "" #: ../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 "" #: ../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 "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 "" #: ../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 "" #: ../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 "" po/fi.po0000644000175000017500000001260711757264223011775 0ustar jeromejerome# 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 "" po/pl.po0000644000175000017500000001273411757264223012013 0ustar jeromejerome# 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 "" po/.gitignore0000644000175000017500000000001511703142024012776 0ustar jeromejeromeuntitled.pot