/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/move.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:
36
36
    def __init__(self, gladefile, comm, dialog):
37
37
        """ Initialize the Move dialog. """
38
38
        self.gladefile = gladefile
39
 
        self.glade = gtk.glade.XML(self.gladefile, 'window_move')
 
39
        self.glade = gtk.glade.XML(self.gladefile, 'window_move', 'olive-gtk')
40
40
        
41
41
        # Communication object
42
42
        self.comm = comm
66
66
        filename = self.comm.get_selected_right()
67
67
            
68
68
        if filename is None:
69
 
            self.dialog.error_dialog('No file was selected',
70
 
                                     'Please select a file from the list to proceed.')
 
69
            self.dialog.error_dialog(_('No file was selected'),
 
70
                                     _('Please select a file from the list to proceed.'))
71
71
            return
72
72
        
73
73
        source = self.comm.get_path() + '/' + filename
76
76
        try:
77
77
            fileops.move([source, destination])
78
78
        except errors.NotBranchError:
79
 
            self.dialog.error_dialog('File is not in a branch',
80
 
                                     'The selected file is not in a branch.')
 
79
            self.dialog.error_dialog(_('File is not in a branch'),
 
80
                                     _('The selected file is not in a branch.'))
81
81
            return
82
82
        except errors.NotSameBranchError:
83
 
            self.dialog.error_dialog('Not the same branch',
84
 
                                     'The destination is not in the same branch.')
 
83
            self.dialog.error_dialog(_('Not the same branch'),
 
84
                                     _('The destination is not in the same branch.'))
85
85
            return
86
86
        except:
87
87
            raise