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

  • Committer: Daniel Schierbeck
  • Date: 2008-01-23 16:30:21 UTC
  • mto: (423.1.8 trunk)
  • mto: This revision was merged to the branch mainline in revision 429.
  • Revision ID: daniel.schierbeck@gmail.com-20080123163021-3sxxhc52qx14pu2m
Simplified Go->Tag Revision menu item in the viz.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
import bzrlib.errors as errors
29
29
 
30
 
from bzrlib.plugins.gtk import _i18n
31
30
from bzrlib.plugins.gtk.dialog import error_dialog, warning_dialog
32
31
from guifiles import GLADEFILENAME
33
32
 
65
64
        dirname = entry.get_text()
66
65
        
67
66
        if dirname == "":
68
 
            error_dialog(_i18n('No directory name given'),
69
 
                         _i18n('Please specify a desired name for the new directory.'))
 
67
            error_dialog(_('No directory name given'),
 
68
                         _('Please specify a desired name for the new directory.'))
70
69
            return
71
70
        
72
71
        if checkbox.get_active():
77
76
                self.wt.add([os.path.join(self.wtpath, dirname)])
78
77
            except OSError, e:
79
78
                if e.errno == 17:
80
 
                    error_dialog(_i18n('Directory already exists'),
81
 
                                 _i18n('Please specify another name to continue.'))
 
79
                    error_dialog(_('Directory already exists'),
 
80
                                 _('Please specify another name to continue.'))
82
81
                else:
83
82
                    raise
84
83
        else:
87
86
                os.mkdir(os.path.join(self.wt.basedir, self.wtpath, dirname))
88
87
            except OSError, e:
89
88
                if e.errno == 17:
90
 
                    error_dialog(_i18n('Directory already exists'),
91
 
                                 _i18n('Please specify another name to continue.'))
 
89
                    error_dialog(_('Directory already exists'),
 
90
                                 _('Please specify another name to continue.'))
92
91
                    return
93
92
 
94
93
        self.close()