~bzr-gtk/bzr-gtk/0.95

« back to all changes in this revision

Viewing changes to olive/frontend/gtk/checkout.py

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2006-08-20 13:02:35 UTC
  • mto: (0.14.1 main) (93.1.1 win32.bialix)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: Szilveszter.Farkas@gmail.com-20060820130235-62c9c5753f5d8774
Gettext support added.

2006-08-20  Szilveszter Farkas <Szilveszter.Farkas@gmail.com>

    * po/hu.po: added Hungarian traslation
    * Added gettext support to all files.
    * genpot.sh: added olive-gtk.pot generator script

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    def __init__(self, gladefile, comm, dialog):
36
36
        """ Initialize the Checkout dialog. """
37
37
        self.gladefile = gladefile
38
 
        self.glade = gtk.glade.XML(self.gladefile, 'window_checkout')
 
38
        self.glade = gtk.glade.XML(self.gladefile, 'window_checkout', 'olive-gtk')
39
39
        
40
40
        # Communication object
41
41
        self.comm = comm
63
63
        entry_location = self.glade.get_widget('entry_checkout_location')
64
64
        location = entry_location.get_text()
65
65
        if location is '':
66
 
            self.dialog.error_dialog('Missing branch location',
67
 
                                     'You must specify a branch location.')
 
66
            self.dialog.error_dialog(_('Missing branch location'),
 
67
                                     _('You must specify a branch location.'))
68
68
            return
69
69
        
70
70
        destination = self.filechooser.get_filename()
81
81
        try:
82
82
            init.checkout(location, destination, revno, lightweight)
83
83
        except errors.NotBranchError, errmsg:
84
 
            self.dialog.error_dialog('Location is not a branch',
85
 
                                     'The specified location has to be a branch')
 
84
            self.dialog.error_dialog(_('Location is not a branch'),
 
85
                                     _('The specified location has to be a branch.'))
86
86
            self.comm.set_busy(self.window, False)
87
87
            return
88
88
        except errors.TargetAlreadyExists, errmsg:
89
 
            self.dialog.error_dialog('Target already exists',
90
 
                                     'Target directory (%s)\nalready exists. Please select another target.' % errmsg)
 
89
            self.dialog.error_dialog(_('Target already exists'),
 
90
                                     _('Target directory (%s)\nalready exists. Please select another target.') % errmsg)
91
91
            self.comm.set_busy(self.window, False)
92
92
            return
93
93
        except errors.NonExistingParent, errmsg:
94
 
            self.dialog.error_dialog("Non existing parent directory",
95
 
                                     "The parent directory (%s)\ndoesn't exist." % errmsg)
 
94
            self.dialog.error_dialog(_('Non existing parent directory'),
 
95
                                     _("The parent directory (%s)\ndoesn't exist.") % errmsg)
96
96
            self.comm.set_busy(self.window, False)
97
97
            return
98
98
        except: