#3083 NORM Update.: Change Journal 'resume' to 'start'
Zarro Boogs per Child
bugtracker at laptop.org
Mon Nov 19 06:03:19 EST 2007
#3083: Change Journal 'resume' to 'start'
-------------------------------+--------------------------------------------
Reporter: kimquirk | Owner: tomeu
Type: defect | Status: new
Priority: normal | Milestone: Update.2
Component: journal-activity | Version:
Resolution: | Keywords: has_patch
Verified: 0 |
-------------------------------+--------------------------------------------
Comment(by tomeu):
{{{
diff --git a/journaltoolbox.py b/journaltoolbox.py
index e77cbf6..37d7da8 100644
--- a/journaltoolbox.py
+++ b/journaltoolbox.py
@@ -361,8 +361,6 @@ class EntryToolbar(gtk.Toolbar):
separator.show()
self._resume = ToolButton('zoom-activity')
- # TRANS: Action label for resuming or starting an entry.
- self._resume.set_tooltip(_('Resume'))
self._resume.connect('clicked', self._resume_clicked_cb)
self.add(self._resume)
self._resume.show()
@@ -429,6 +427,13 @@ class EntryToolbar(gtk.Toolbar):
menu_item.show()
def _refresh_resume_palette(self):
+ if self._jobject.metadata.get('activity_id', ''):
+ # TRANS: Action label for resuming an activity.
+ self._resume.set_tooltip(_('Resume'))
+ else:
+ # TRANS: Action label for starting an entry.
+ self._resume.set_tooltip(_('Start'))
+
palette = self._resume.get_palette()
for menu_item in palette.menu.get_children():
}}}
Bert is right, wonder how that could have happened. I'll blame the trac
gnomes.
--
Ticket URL: <http://dev.laptop.org/ticket/3083#comment:9>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system
More information about the Bugs
mailing list