Merge lp:~lucian.grijincu/lernid/lernid-lucian into lp:lernid

Proposed by Lucian Adrian Grijincu
Status: Merged
Merged at revision: not available
Proposed branch: lp:~lucian.grijincu/lernid/lernid-lucian
Merge into: lp:lernid
Diff against target: 100 lines (+24/-11)
3 files modified
bin/lernid (+11/-5)
lernid.desktop.in (+1/-1)
po/lernid.pot (+12/-5)
To merge this branch: bzr merge lp:~lucian.grijincu/lernid/lernid-lucian
Reviewer Review Type Date Requested Status
Jono Bacon Pending
Review via email: mp+16077@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Lucian Adrian Grijincu (lucian.grijincu) wrote :

internationalized date time
+ updated application description (you might want to change the description)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/lernid'
2--- bin/lernid 2009-12-10 16:43:59 +0000
3+++ bin/lernid 2009-12-12 18:08:12 +0000
4@@ -161,9 +161,13 @@
5 utc_end_ft = datetime.datetime.strptime(vobject.icalendar.dateTimeToString(ev.dtend.value)[0:15], "%Y%m%dT%H%M%S")
6 local_start_datetime = time.localtime((int(time.mktime(time.strptime(str(utc_start_ft), '%Y-%m-%d %H:%M:%S'))) - time.timezone))
7 local_end_datetime = time.localtime((int(time.mktime(time.strptime(str(utc_end_ft), '%Y-%m-%d %H:%M:%S'))) - time.timezone))
8-
9- tempevent['start_local'] = time.strftime("%Y-%m-%d %H:%M:%S", local_start_datetime)
10- tempevent['end_local'] = time.strftime("%Y-%m-%d %H:%M:%S", local_end_datetime)
11+ # Translators: this is in strftime format. See http://docs.python.org/library/time.html#time.strftime
12+ # This is the format of the displayed date.
13+ # The month name is localized: it defaults to something like "15 June 2010" for 'en' or "15 Juin 2009" for 'fr', etc.
14+ tempevent['start_local_date'] = time.strftime(_("%d %B %Y"), local_start_datetime)
15+ tempevent['start_local_time'] = time.strftime("%X", local_start_datetime)
16+ tempevent['start_local'] = local_start_datetime
17+ tempevent['end_local_time'] = time.strftime("%X", local_end_datetime)
18 tempevent['title'] = ev.summary.value
19 tempevent['start_utc'] = str(datetime.datetime.strptime(vobject.icalendar.dateTimeToString(ev.dtstart.value)[0:15], "%Y%m%dT%H%M%S"))
20 tempevent['end_utc'] = str(datetime.datetime.strptime(vobject.icalendar.dateTimeToString(ev.dtend.value)[0:15], "%Y%m%dT%H%M%S"))
21@@ -212,9 +216,10 @@
22
23 for l in self.schedule:
24 # set up tree view
25+ #XXX
26 templist.append(gtk.STOCK_DND)
27- templist.append(l['start_local'][0:10])
28- templist.append(l['start_local'][11:16] + " - " + l['end_local'][12:16])
29+ templist.append(l['start_local_date'])
30+ templist.append(l['start_local_time'] + " - " + l['end_local_time'])
31 templist.append(l['title'])
32 self.schedule_model.append(templist)
33
34@@ -409,6 +414,7 @@
35 return window
36
37 if __name__ == "__main__":
38+ locale.setlocale(locale.LC_ALL, '')
39 #support for command line options
40 import logging, optparse
41 gettext.install('lernid', unicode=True)
42
43=== modified file 'lernid.desktop.in'
44--- lernid.desktop.in 2009-11-26 17:44:15 +0000
45+++ lernid.desktop.in 2009-12-12 18:08:12 +0000
46@@ -1,6 +1,6 @@
47 [Desktop Entry]
48 _Name=Lernid
49-_Comment=Lernid application
50+_Comment=Participate in online Ubuntu learning events
51 Categories=GNOME;Network;
52 Exec=lernid
53 Icon=/usr/share/lernid/media/icon.png
54
55=== modified file 'po/lernid.pot'
56--- po/lernid.pot 2009-12-10 17:00:30 +0000
57+++ po/lernid.pot 2009-12-12 18:08:12 +0000
58@@ -8,7 +8,7 @@
59 msgstr ""
60 "Project-Id-Version: PACKAGE VERSION\n"
61 "Report-Msgid-Bugs-To: \n"
62-"POT-Creation-Date: 2009-12-10 08:57-0800\n"
63+"POT-Creation-Date: 2009-12-12 20:02+0200\n"
64 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
65 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
66 "Language-Team: LANGUAGE <LL@li.org>\n"
67@@ -73,7 +73,7 @@
68 msgstr ""
69
70 #: ../lernid.desktop.in.h:2
71-msgid "Lernid application"
72+msgid "Participate in online Ubuntu learning events"
73 msgstr ""
74
75 #: ../data/ui/ConnectDialog.ui.h:1
76@@ -88,14 +88,21 @@
77 msgid "Nickname"
78 msgstr ""
79
80-#: ../bin/lernid.py:295 ../bin/lernid.py:296
81+#. Translators: this is in strftime format. See http://docs.python.org/library/time.html#time.strftime
82+#. This is the format of the displayed date.
83+#. The month name is localized: it defaults to something like "15 June 2010" for 'en' or "15 Juin 2009" for 'fr', etc.
84+#: ../bin/lernid.py:167
85+msgid "%d %B %Y"
86+msgstr ""
87+
88+#: ../bin/lernid.py:300 ../bin/lernid.py:301
89 msgid "Connected to "
90 msgstr ""
91
92-#: ../bin/lernid.py:325
93+#: ../bin/lernid.py:330
94 msgid "Disconnecting from "
95 msgstr ""
96
97-#: ../bin/lernid.py:416
98+#: ../bin/lernid.py:422
99 msgid "Show debug messages"
100 msgstr ""

Subscribers

People subscribed via source and target branches