gnome-schedule r1129 - in trunk: . src



Author: gauteh
Date: Tue Feb 17 17:34:08 2009
New Revision: 1129
URL: http://svn.gnome.org/viewvc/gnome-schedule?rev=1129&view=rev

Log:

2009-02-17  Gaute Hope  <eg gaute vetsj com>

	* Bug 572167: At uses locale specific date and time formatting, 
				  inspired by patch from Steve Tyler 
				  <stephent98 hotmail com>

2009-02-16  Gaute Hope  <eg gaute vetsj com>

	* file header cleanup

2009-02-15  Gaute Hope  <eg gaute vetsj com>

	* Fixed typo, updated translations


Modified:
   trunk/ChangeLog
   trunk/src/addWindow.py
   trunk/src/at.py
   trunk/src/atEditor.py
   trunk/src/config.py.in
   trunk/src/crontab.py
   trunk/src/crontabEditor.py
   trunk/src/crontabEditorHelper.py
   trunk/src/data.py
   trunk/src/gnome-schedule.py
   trunk/src/lang.py
   trunk/src/mainWindow.py
   trunk/src/scheduleapplet.py
   trunk/src/setuserWindow.py
   trunk/src/template.py
   trunk/src/template_chooser.py
   trunk/src/template_manager.py
   trunk/src/xwrapper.py

Modified: trunk/src/addWindow.py
==============================================================================
--- trunk/src/addWindow.py	(original)
+++ trunk/src/addWindow.py	Tue Feb 17 17:34:08 2009
@@ -1,8 +1,8 @@
-# setuserWindow.py - UI code for changing user
+# addWindow.py - UI code for changing user
 # Copyright (C) 2004, 2005  Philip Van Hoof <me at pvanhoof dot be>
 # Copyright (C) 2004 - 2008 Gaute Hope <eg at gaute dot vetsj dot com>
 # Copyright (C) 2004, 2005  Kristof Vansant <de_lupus at pandora dot be>
-
+#
 # 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

Modified: trunk/src/at.py
==============================================================================
--- trunk/src/at.py	(original)
+++ trunk/src/at.py	Tue Feb 17 17:34:08 2009
@@ -1,7 +1,9 @@
 # at.py - code to interfere with at
+#
 # Copyright (C) 2004, 2005  Philip Van Hoof <me at pvanhoof dot be>
-# Copyright (C) 2004 - 2008 Gaute Hope <eg at gaute dot vetsj dot com>
+# Copyright (C) 2004 - 2009 Gaute Hope <eg at gaute dot vetsj dot com>
 # Copyright (C) 2004, 2005  Kristof Vansant <de_lupus at pandora dot be>
+#
 # 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
@@ -527,7 +529,10 @@
                     
                 timestring = "%s %s" % (date, time)
                 # TODO: localize time and date formats
-                timestring_show = _("On %(date)s at %(time)s") % {'date': date, 'time': time}
+
+                date_o = datetime.datetime.strptime (date + " " + time, "%d.%m.%Y %H:%M")
+                timestring_show = _("On %(timestring)s") % { 'timestring' : date_o.strftime ("%c") }
+
                 
                 # TODO: looks like it could be one append
                 if self.root == 1:

Modified: trunk/src/atEditor.py
==============================================================================
--- trunk/src/atEditor.py	(original)
+++ trunk/src/atEditor.py	Tue Feb 17 17:34:08 2009
@@ -1,8 +1,8 @@
-# addWindow.py - UI code for adding an at record
+# atEditor.py - UI code for adding an at record
 # Copyright (C) 2004, 2005  Philip Van Hoof <me at pvanhoof dot be>
-# Copyright (C) 2004 - 2008 Gaute Hope <eg at gaute dot vetsj dot com>
+# Copyright (C) 2004 - 2009 Gaute Hope <eg at gaute dot vetsj dot com>
 # Copyright (C) 2004, 2005  Kristof Vansant <de_lupus at pandora dot be>
-
+#
 # 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

Modified: trunk/src/config.py.in
==============================================================================
--- trunk/src/config.py.in	(original)
+++ trunk/src/config.py.in	Tue Feb 17 17:34:08 2009
@@ -1,3 +1,22 @@
+# config.py - build time configuration
+# Copyright (C) 2004, 2005  Philip Van Hoof <me at pvanhoof dot be>
+# Copyright (C) 2004 - 2009 Gaute Hope <eg at gaute dot vetsj dot com>
+# Copyright (C) 2004, 2005  Kristof Vansant <de_lupus at pandora dot be>
+#
+# 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, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02110-1301, USA.
+
 version = "@VERSION@"
 image_dir = "@prefix@/share/pixmaps/gnome-schedule"
 gs_dir = "@prefix@/share/gnome-schedule"

Modified: trunk/src/crontab.py
==============================================================================
--- trunk/src/crontab.py	(original)
+++ trunk/src/crontab.py	Tue Feb 17 17:34:08 2009
@@ -1,8 +1,8 @@
 # crontab.py - code to interfere with crontab
 # Copyright (C) 2004, 2005  Philip Van Hoof <me at pvanhoof dot be>
-# Copyright (C) 2004 - 2008 Gaute Hope <eg at gaute dot vetsj dot com>
+# Copyright (C) 2004 - 2009 Gaute Hope <eg at gaute dot vetsj dot com>
 # Copyright (C) 2004, 2005  Kristof Vansant <de_lupus at pandora dot be>
-
+#
 # 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

Modified: trunk/src/crontabEditor.py
==============================================================================
--- trunk/src/crontabEditor.py	(original)
+++ trunk/src/crontabEditor.py	Tue Feb 17 17:34:08 2009
@@ -1,8 +1,8 @@
-# addWindow.py - UI code for adding a crontab record
+# crontabEditor.py - UI code for adding a crontab record
 # Copyright (C) 2004, 2005  Philip Van Hoof <me at pvanhoof dot be>
-# Copyright (C) 2004 - 2008 Gaute Hope <eg at gaute dot eu dot com>
+# Copyright (C) 2004 - 2009 Gaute Hope <eg at gaute dot eu dot com>
 # Copyright (C) 2004, 2005  Kristof Vansant <de_lupus at pandora dot be>
-
+#
 # 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

Modified: trunk/src/crontabEditorHelper.py
==============================================================================
--- trunk/src/crontabEditorHelper.py	(original)
+++ trunk/src/crontabEditorHelper.py	Tue Feb 17 17:34:08 2009
@@ -1,7 +1,7 @@
-# addWindowhelp.py - UI code for help window for adding a crontab record
+# crontabEditorHelper.py - UI code for help window for adding a crontab record
 # Copyright (C) 2004, 2005  Philip Van Hoof <me at pvanhoof dot be>
-# Copyright (C) 2004 - 2008 Gaute Hope <eg at gaute dot vetsj dot com>
-
+# Copyright (C) 2004 - 2009 Gaute Hope <eg at gaute dot vetsj dot com>
+#
 # 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

Modified: trunk/src/data.py
==============================================================================
--- trunk/src/data.py	(original)
+++ trunk/src/data.py	Tue Feb 17 17:34:08 2009
@@ -1,8 +1,8 @@
 # data.py: Contains the backend to the gconf database
 # Copyright (C) 2004, 2005  Philip Van Hoof <me at pvanhoof dot be>
-# Copyright (C) 2004 - 2008 Gaute Hope <eg at gaute dot vetsj dot com>
+# Copyright (C) 2004 - 2009 Gaute Hope <eg at gaute dot vetsj dot com>
 # Copyright (C) 2004, 2005  Kristof Vansant <de_lupus at pandora dot be>
-
+#
 # 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

Modified: trunk/src/gnome-schedule.py
==============================================================================
--- trunk/src/gnome-schedule.py	(original)
+++ trunk/src/gnome-schedule.py	Tue Feb 17 17:34:08 2009
@@ -1,18 +1,18 @@
-# gnome-schedule.py - Contains the startup script for gnome-schedule
+# gnome-schedule.py - Starts up gnome-schedule
 # Copyright (C) 2004, 2005  Philip Van Hoof <me at pvanhoof dot be>
-# Copyright (C) 2004 - 2008 Gaute Hope <eg at gaute dot vetsj dot com>
+# Copyright (C) 2004 - 2009 Gaute Hope <eg at gaute dot vetsj dot com>
 # Copyright (C) 2004, 2005  Kristof Vansant <de_lupus at pandora dot be>
-
+#
 # 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., 675 Mass Ave, Cambridge, MA 02139, USA.

Modified: trunk/src/lang.py
==============================================================================
--- trunk/src/lang.py	(original)
+++ trunk/src/lang.py	Tue Feb 17 17:34:08 2009
@@ -1,4 +1,23 @@
 # -*- coding: UTF-8 -*-
+# lang.py: Translation helper functions, mainly for human readable time expressions
+# Copyright (C) 2004, 2005  Philip Van Hoof <me at pvanhoof dot be>
+# Copyright (C) 2004 - 2009 Gaute Hope <eg at gaute dot vetsj dot com>
+# Copyright (C) 2004, 2005  Kristof Vansant <de_lupus at pandora dot be>
+#
+# 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, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02110-1301, USA.
+
 # Don't touch the first line :-) unless you know why and you need to touch
 # it for your language. Also if you changed the formatting using your
 # editor (and tested everything, haha)

Modified: trunk/src/mainWindow.py
==============================================================================
--- trunk/src/mainWindow.py	(original)
+++ trunk/src/mainWindow.py	Tue Feb 17 17:34:08 2009
@@ -1,8 +1,8 @@
 # mainWindow.py - mainWindow of the crontab configuration tool
 # Copyright (C) 2004, 2005   Philip Van Hoof <me at pvanhoof dot be>
-# Copyright (C) 2004 - 2008  Gaute Hope <eg at gaute dot vetsj dot com>
+# Copyright (C) 2004 - 2009  Gaute Hope <eg at gaute dot vetsj dot com>
 # Copyright (C) 2004, 2005   Kristof Vansant <de_lupus at pandora dot be>
-
+#
 # 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

Modified: trunk/src/scheduleapplet.py
==============================================================================
--- trunk/src/scheduleapplet.py	(original)
+++ trunk/src/scheduleapplet.py	Tue Feb 17 17:34:08 2009
@@ -1,17 +1,17 @@
 # scheduleapplet.py: contains code for the gnome-schedule applet
-# Copyright (C) 2004 - 2008 Gaute Hope <eg at gaute dot vetsj dot com>
+# Copyright (C) 2004 - 2009 Gaute Hope <eg at gaute dot vetsj dot com>
 # Copyright (C) 2004, 2005  Kristof Vansant <de_lupus at pandora dot be>
-
+#
 # 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., 675 Mass Ave, Cambridge, MA 02139, USA.

Modified: trunk/src/setuserWindow.py
==============================================================================
--- trunk/src/setuserWindow.py	(original)
+++ trunk/src/setuserWindow.py	Tue Feb 17 17:34:08 2009
@@ -1,8 +1,8 @@
 # setuserWindow.py - UI code for changing user
 # Copyright (C) 2004, 2005  Philip Van Hoof <me at pvanhoof dot be>
-# Copyright (C) 2004 - 2008 Gaute Hope <eg at gaute dot vetsj dot com>
+# Copyright (C) 2004 - 2009 Gaute Hope <eg at gaute dot vetsj dot com>
 # Copyright (C) 2004, 2005  Kristof Vansant <de_lupus at pandora dot be>
-
+#
 # 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

Modified: trunk/src/template.py
==============================================================================
--- trunk/src/template.py	(original)
+++ trunk/src/template.py	Tue Feb 17 17:34:08 2009
@@ -1,6 +1,6 @@
 # template.py: Handles the link to the template data stored in gconf
-# Copyright (C) 2004 - 2008 Gaute Hope <eg at gaute dot vetsj dot com>
-
+# Copyright (C) 2004 - 2009 Gaute Hope <eg at gaute dot vetsj dot com>
+#
 # 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

Modified: trunk/src/template_chooser.py
==============================================================================
--- trunk/src/template_chooser.py	(original)
+++ trunk/src/template_chooser.py	Tue Feb 17 17:34:08 2009
@@ -1,6 +1,6 @@
 # template_chooser.py: the template chooser window
-# Copyright (C) 2004 - 2008 Gaute Hope <eg at gaute dot vetsj dot com>
-
+# Copyright (C) 2004 - 2009 Gaute Hope <eg at gaute dot vetsj dot com>
+#
 # 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

Modified: trunk/src/template_manager.py
==============================================================================
--- trunk/src/template_manager.py	(original)
+++ trunk/src/template_manager.py	Tue Feb 17 17:34:08 2009
@@ -1,6 +1,6 @@
 # template_manager.py: the template manager window
-# Copyright (C) 2004 - 2008 Gaute Hope <eg at gaute dot vetsj dot com>
-
+# Copyright (C) 2004 - 2009 Gaute Hope <eg at gaute dot vetsj dot com>
+#
 # 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

Modified: trunk/src/xwrapper.py
==============================================================================
--- trunk/src/xwrapper.py	(original)
+++ trunk/src/xwrapper.py	Tue Feb 17 17:34:08 2009
@@ -1,6 +1,6 @@
 # xwrapper.py - wrapper around X applications
-# Copyright (C) 2004 - 2008  Gaute Hope <eg at gaute dot vetsj dot com>
-
+# Copyright (C) 2004 - 2009  Gaute Hope <eg at gaute dot vetsj dot com>
+#
 # 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]