billreminder r660 - in trunk: . src src/gui src/gui/widgets src/lib



Author: ogmaciel
Date: Mon Sep 29 01:53:20 2008
New Revision: 660
URL: http://svn.gnome.org/viewvc/billreminder?rev=660&view=rev

Log:
Changed Record to Bill to be consistent with nomenclature (Fixes Bug: 554228).

Modified:
   trunk/ChangeLog
   trunk/src/billreminder.py
   trunk/src/gui/maindialog.py
   trunk/src/gui/widgets/statusbar.py
   trunk/src/lib/dialogs.py

Modified: trunk/src/billreminder.py
==============================================================================
--- trunk/src/billreminder.py	(original)
+++ trunk/src/billreminder.py	Mon Sep 29 01:53:20 2008
@@ -39,7 +39,7 @@
     parser.set_usage(_("Usage:  billreminder [OPTIONS...]"))
     parser.add_option('-v','--version', action='store_true', dest='app_version', default=False, help=_('Displays the version number for this application.'))
     parser.add_option('--about', action='store_true', dest='app_about', default=False, help=_('About this application.'))
-    parser.add_option('--add', action='store_true', dest='app_add', default=False, help=_('Adds a new record to the database.'))
+    parser.add_option('--add', action='store_true', dest='app_add', default=False, help=_('Adds a new bill to the database.'))
     parser.add_option('--standalone', action='store_true', dest='app_standalone', default=False, help=_('Access database directly, without daemon.'))
 
     # Verify arguments

Modified: trunk/src/gui/maindialog.py
==============================================================================
--- trunk/src/gui/maindialog.py	(original)
+++ trunk/src/gui/maindialog.py	Mon Sep 29 01:53:20 2008
@@ -311,11 +311,11 @@
 
     def _populate_toolbar(self):
         self.btnNew = self.toolbar.add_button(gtk.STOCK_NEW,
-            _("New"), _("Add a new record"), self.on_btnNew_clicked)
+            _("New"), _("Add a new bill"), self.on_btnNew_clicked)
         self.btnEdit = self.toolbar.add_button(gtk.STOCK_EDIT,
-            None, _("Edit a record"), self.on_btnEdit_clicked)
+            None, _("Edit a bill"), self.on_btnEdit_clicked)
         self.btnRemove = self.toolbar.add_button(gtk.STOCK_DELETE,
-            None, _("Delete selected record"), self.on_btnDelete_clicked)
+            None, _("Delete selected bill"), self.on_btnDelete_clicked)
         self.toolbar.add_space()
         self.btnPaid = self.toolbar.add_button(gtk.STOCK_APPLY,
             _("Paid"), _("Mark as paid"), self.on_btnPaid_clicked)
@@ -347,9 +347,9 @@
         # Create actions
         actiongroup.add_actions([
             ('File', None, _("_File")),
-            ('New', gtk.STOCK_NEW, _("_Add New"), '<Control>n', _("Add a new record"), self.on_btnNew_clicked),
-            ('Edit', gtk.STOCK_EDIT, None, '<Control>e', _("Edit a record"), self.on_btnEdit_clicked),
-            ('Delete', gtk.STOCK_DELETE, None, '<Control>d', _("Delete selected record"), self.on_btnDelete_clicked),
+            ('New', gtk.STOCK_NEW, _("_Add New"), '<Control>n', _("Add a new bill"), self.on_btnNew_clicked),
+            ('Edit', gtk.STOCK_EDIT, None, '<Control>e', _("Edit a bill"), self.on_btnEdit_clicked),
+            ('Delete', gtk.STOCK_DELETE, None, '<Control>d', _("Delete selected bill"), self.on_btnDelete_clicked),
             ('EditMenu', None, _("_Edit")),
             ('Paid', gtk.STOCK_APPLY, _("_Paid"), '<Control>p', _("Mark as paid"), self.on_btnPaid_clicked),
             ('NotPaid', gtk.STOCK_UNDO, _("_Not Paid"), '<Control>u', _("Mark as not paid"), self.on_btnPaid_clicked),
@@ -371,9 +371,9 @@
         ])
 
         actiongroup.add_radio_actions([
-            ('NotPaidRecords', None, _("_Not Paid Only"), None, _("Display all unpaid records only"), 0),
-            ('PaidRecords', None, _("_Paid Only"), None, _("Display all paid records only"), 1),
-            ('AllRecords', None, _("_All Records"), None, _("Display all records"), 2),
+            ('NotPaidRecords', None, _("_Not Paid Only"), None, _("Display all unpaid bills only"), 0),
+            ('PaidRecords', None, _("_Paid Only"), None, _("Display all paid bills only"), 1),
+            ('AllRecords', None, _("_All Bills"), None, _("Display all bills"), 2),
         ], saved_view , self._change_view)
 
         # Add the actiongroup to the uimanager
@@ -613,23 +613,23 @@
         else:
             self.toolbar.hide_all()
             self.gconf_client.set_bool(GCONF_GUI_PATH + "show_toolbar", False)
-    
+
     def on_terms_changed(self, widget, text):
         self.search_text = text
         self.list.filtered_model.refilter()
         #self.filtred_model.refilter()
-    
+
     def on_filtered_model_visible_cb(self, model, iter):
         if self.search_text == "":
             return True
-        
+
         t = False
         for col in SEARCH_COLUMNS:
             x = model.get_value(iter, col)
             if x and self.search_text in x:
                 t = True
                 break
-        
+
         return t
 
 def main():

Modified: trunk/src/gui/widgets/statusbar.py
==============================================================================
--- trunk/src/gui/widgets/statusbar.py	(original)
+++ trunk/src/gui/widgets/statusbar.py	Mon Sep 29 01:53:20 2008
@@ -13,7 +13,7 @@
 
         self.recordLabel = gtk.Label()
         self.recordLabel.set_justify(gtk.JUSTIFY_LEFT)
-        self.recordLabel.set_markup("<b>%s </b>" % _("Records:"))
+        self.recordLabel.set_markup("<b>%s </b>" % _("Bills:"))
         self.pack_start(self.recordLabel, expand=False, fill=True, padding=2)
 
         self.recordCount = gtk.Label()

Modified: trunk/src/lib/dialogs.py
==============================================================================
--- trunk/src/lib/dialogs.py	(original)
+++ trunk/src/lib/dialogs.py	Mon Sep 29 01:53:20 2008
@@ -48,7 +48,7 @@
 def add_dialog(parent=None, selectedDate=None):
     record = None
     # Dialog Title
-    dialog = AddDialog(title=_("Add a New Record"), parent=parent, record=record, selectedDate=selectedDate)
+    dialog = AddDialog(title=_("Add a new bill"), parent=parent, record=record, selectedDate=selectedDate)
     response = dialog.run()
     # Checks if the user did not cancel the action
     if response == gtk.RESPONSE_ACCEPT:
@@ -59,7 +59,7 @@
 
 def edit_dialog(record, parent=None):
     # Dialog Title
-    dialog = AddDialog(title=_("Edit a Record"), parent=parent, record=record)
+    dialog = AddDialog(title=_("Edit a bill"), parent=parent, record=record)
     response = dialog.run()
     # Checks if the user did not cancel the action
     if response == gtk.RESPONSE_ACCEPT:



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