/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 checkout.py

  • Committer: Mateusz Korniak
  • Date: 2007-09-02 15:42:18 UTC
  • mto: This revision was merged to the branch mainline in revision 274.
  • Revision ID: matkor@laptop-hp-20070902154218-nba0woaqjsn20f9n
Ignoring eric3 project files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
import gtk
26
26
 
27
 
from bzrlib.plugins.gtk import _i18n
28
27
from errors import show_bzr_error
29
28
 
30
29
from bzrlib.branch import Branch
48
47
        self.path = path
49
48
        
50
49
        # Create the widgets
51
 
        self._button_checkout = gtk.Button(_i18n("Check_out"), use_underline=True)
 
50
        self._button_checkout = gtk.Button(_("Check_out"), use_underline=True)
52
51
        self._button_revision = gtk.Button('')
53
52
        self._image_browse = gtk.Image()
54
 
        self._filechooser = gtk.FileChooserButton(_i18n("Please select a folder"))
 
53
        self._filechooser = gtk.FileChooserButton(_("Please select a folder"))
55
54
        self._combo = gtk.ComboBoxEntry()
56
 
        self._label_location = gtk.Label(_i18n("Branch location:"))
57
 
        self._label_destination = gtk.Label(_i18n("Destination:"))
58
 
        self._label_nick = gtk.Label(_i18n("Branck nick:"))
59
 
        self._label_revision = gtk.Label(_i18n("Revision:"))
 
55
        self._label_location = gtk.Label(_("Branch location:"))
 
56
        self._label_destination = gtk.Label(_("Destination:"))
 
57
        self._label_nick = gtk.Label(_("Branck nick:"))
 
58
        self._label_revision = gtk.Label(_("Revision:"))
60
59
        self._hbox_revision = gtk.HBox()
61
60
        self._entry_revision = gtk.Entry()
62
61
        self._entry_nick = gtk.Entry()
63
 
        self._check_lightweight = gtk.CheckButton(_i18n("_Lightweight checkout"),
 
62
        self._check_lightweight = gtk.CheckButton(_("_Lightweight checkout"),
64
63
                                                  use_underline=True)
65
64
        
66
65
        # Set callbacks
161
160
        """ Checkout button clicked handler. """
162
161
        location = self._combo.get_child().get_text()
163
162
        if location is '':
164
 
            error_dialog(_i18n('Missing branch location'),
165
 
                         _i18n('You must specify a branch location.'))
 
163
            error_dialog(_('Missing branch location'),
 
164
                         _('You must specify a branch location.'))
166
165
            return
167
166
        
168
167
        destination = self._filechooser.get_filename()
193
192
        """ We try to get the last revision if focus lost. """
194
193
        rev = self._get_last_revno()
195
194
        if rev is None:
196
 
            self._entry_revision.set_text(_i18n('N/A'))
 
195
            self._entry_revision.set_text(_('N/A'))
197
196
            self._button_revision.set_sensitive(False)
198
197
        else:
199
198
            self._entry_revision.set_text(str(rev))