/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: Jelmer Vernooij
  • Date: 2007-02-03 13:01:12 UTC
  • Revision ID: jelmer@samba.org-20070203130112-m1stbo29f1ahthzs
Move diff to top-level directory as well.

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
 
from bzrlib.plugins.gtk.dialog import error_dialog, warning_dialog
 
30
from dialog import error_dialog, warning_dialog
32
31
from guifiles import GLADEFILENAME
33
32
 
34
 
from bzrlib.plugins.gtk.errors import show_bzr_error
35
 
 
36
33
 
37
34
class OliveMkdir:
38
35
    """ Display the Make directory dialog and perform the needed actions. """
65
62
        dirname = entry.get_text()
66
63
        
67
64
        if dirname == "":
68
 
            error_dialog(_i18n('No directory name given'),
69
 
                         _i18n('Please specify a desired name for the new directory.'))
 
65
            error_dialog(_('No directory name given'),
 
66
                         _('Please specify a desired name for the new directory.'))
70
67
            return
71
68
        
72
69
        if checkbox.get_active():
77
74
                self.wt.add([os.path.join(self.wtpath, dirname)])
78
75
            except OSError, e:
79
76
                if e.errno == 17:
80
 
                    error_dialog(_i18n('Directory already exists'),
81
 
                                 _i18n('Please specify another name to continue.'))
 
77
                    error_dialog(_('Directory already exists'),
 
78
                                 _('Please specify another name to continue.'))
82
79
                else:
83
80
                    raise
84
81
        else:
87
84
                os.mkdir(os.path.join(self.wt.basedir, self.wtpath, dirname))
88
85
            except OSError, e:
89
86
                if e.errno == 17:
90
 
                    error_dialog(_i18n('Directory already exists'),
91
 
                                 _i18n('Please specify another name to continue.'))
 
87
                    error_dialog(_('Directory already exists'),
 
88
                                 _('Please specify another name to continue.'))
92
89
                    return
93
90
 
94
91
        self.close()