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

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2007-05-17 16:12:27 UTC
  • mto: This revision was merged to the branch mainline in revision 201.
  • Revision ID: szilveszter.farkas@gmail.com-20070517161227-9e37lj2rm2t0cwj6
Some small modifications to Branch, Checkout and Info to support remote branches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
import bzrlib.add
29
29
import bzrlib.errors as errors
30
30
 
31
 
from bzrlib.plugins.gtk import _i18n
32
31
from bzrlib.plugins.gtk.dialog import error_dialog
33
32
from guifiles import GLADEFILENAME
34
33
 
65
64
            filename = self.selected
66
65
            
67
66
            if filename is None:
68
 
                error_dialog(_i18n('No file was selected'),
69
 
                             _i18n('Please select a file from the list,\nor choose the other option.'))
 
67
                error_dialog(_('No file was selected'),
 
68
                             _('Please select a file from the list,\nor choose the other option.'))
70
69
                return
71
70
            
72
71
            fullpath = self.wt.abspath(os.path.join(self.wtpath, filename))
74
73
            try:
75
74
                bzrlib.add.smart_add([fullpath])
76
75
            except errors.NotBranchError:
77
 
                error_dialog(_i18n('Directory is not a branch'),
78
 
                             _i18n('You can perform this action only in a branch.'))
 
76
                error_dialog(_('Directory is not a branch'),
 
77
                             _('You can perform this action only in a branch.'))
79
78
                return
80
79
        elif radio_unknown.get_active():
81
80
            # Add unknown files recursively
84
83
            try:
85
84
                bzrlib.add.smart_add([fullpath], True)
86
85
            except errors.NotBranchError:
87
 
                error_dialog(_i18n('Directory is not a branch'),
88
 
                             _i18n('You can perform this action only in a branch.'))
 
86
                error_dialog(_('Directory is not a branch'),
 
87
                             _('You can perform this action only in a branch.'))
89
88
                return
90
89
        
91
90
        self.close()