/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to olive/bookmark.py

  • Committer: Vincent Ladeuil
  • Date: 2008-05-05 16:04:32 UTC
  • mto: (487.1.1 gtk)
  • mto: This revision was merged to the branch mainline in revision 490.
  • Revision ID: v.ladeuil+lp@free.fr-20080505160432-hrhie62i03vcu3cw
Fix genpot.sh and prepare for bug #187283 fixing.

* po/olive-gtk.pot: 
Regenerated so that we can test for regressions in the "'_'
replaced by '_i18n'" modification.

* genpot.sh: 
Handle all python files.

* olive/__init__.py:
Delete coding line. It looks like an emacs coding line, it smells
like an emacs coding line, but emacs doesn't like it and it's
useless anyway.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
import gtk
24
24
 
25
25
from olive import Preferences
26
 
from bzrlib.plugins.gtk import _i18n
27
26
from bzrlib.plugins.gtk.dialog import error_dialog
28
27
 
29
28
 
43
42
        self.selected = selected
44
43
        
45
44
        # Create widgets
46
 
        self._label_location = gtk.Label(_i18n("Location:"))
47
 
        self._label_title = gtk.Label(_i18n("Title:"))
 
45
        self._label_location = gtk.Label(_("Location:"))
 
46
        self._label_title = gtk.Label(_("Title:"))
48
47
        self._entry_location = gtk.Entry()
49
48
        self._entry_title = gtk.Entry()
50
49
        self._button_save = gtk.Button(stock=gtk.STOCK_SAVE)
79
78
    def _on_save_clicked(self, button):
80
79
        """ Save button clicked handler. """
81
80
        if self._entry_title.get_text() == '':
82
 
            error_dialog(_i18n('No title given'),
83
 
                         _i18n('Please specify a title to continue.'))
 
81
            error_dialog(_('No title given'),
 
82
                         _('Please specify a title to continue.'))
84
83
            return
85
84
        
86
85
        self.pref.set_bookmark_title(self._entry_location.get_text(),