/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/frontend/gtk/remove.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:
67
67
            filename = self.comm.get_selected_right()
68
68
            
69
69
            if filename is None:
70
 
                self.dialog.error_dialog('No file was selected',
71
 
                                         'Please select a file from the list,\nor choose the other option.')
 
70
                self.dialog.error_dialog(_('No file was selected'),
 
71
                                         _('Please select a file from the list,\nor choose the other option.'))
72
72
                return
73
73
            
74
74
            try:
75
75
                fileops.remove([directory + '/' + filename])
76
76
            except errors.NotBranchError:
77
 
                self.dialog.error_dialog('Directory is not a branch',
78
 
                                         'You can perform this action only in a branch.')
 
77
                self.dialog.error_dialog(_('Directory is not a branch'),
 
78
                                         _('You can perform this action only in a branch.'))
79
79
                self.comm.set_busy(self.window, False)
80
80
                return
81
81
            except errors.NotVersionedError:
82
 
                self.dialog.error_dialog('File not versioned',
83
 
                                         'The selected file is not versioned.')
 
82
                self.dialog.error_dialog(_('File not versioned'),
 
83
                                         _('The selected file is not versioned.'))
84
84
                self.comm.set_busy(self.window, False)
85
85
                return
86
86
            except:
90
90
            try:
91
91
                fileops.remove([directory], True)
92
92
            except errors.NotBranchError:
93
 
                self.dialog.error_dialog('Directory is not a branch',
94
 
                                         'You can perform this action only in a branch.')
 
93
                self.dialog.error_dialog(_('Directory is not a branch'),
 
94
                                         _('You can perform this action only in a branch.'))
95
95
                self.comm.set_busy(self.window, False)
96
96
                return
97
97
            except errors.NoMatchingFiles:
98
 
                dialog.warning_dialog('No matching files',
99
 
                                      'No added files were found in the working tree.')
 
98
                dialog.warning_dialog(_('No matching files'),
 
99
                                      _('No added files were found in the working tree.'))
100
100
                self.comm.set_busy(self.window, False)
101
101
            except:
102
102
                raise