/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/rename.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:
64
64
        new_filename = entry.get_text()
65
65
            
66
66
        if old_filename is None:
67
 
            self.dialog.error_dialog('No file was selected',
68
 
                                     'Please select a file from the list to proceed.')
 
67
            self.dialog.error_dialog(_('No file was selected'),
 
68
                                     _('Please select a file from the list to proceed.'))
69
69
            return
70
70
        
71
71
        if new_filename == "":
72
 
            self.dialog.error_dialog('Filename not given',
73
 
                                     'Please specify a new name for the file.')
 
72
            self.dialog.error_dialog(_('Filename not given'),
 
73
                                     _('Please specify a new name for the file.'))
74
74
            return
75
75
        
76
76
        source = self.comm.get_path() + '/' + old_filename
80
80
        try:
81
81
            fileops.rename(source, destination)
82
82
        except errors.NotBranchError:
83
 
            self.dialog.error_dialog('File is not in a branch',
84
 
                                     'The selected file is not in a branch.')
 
83
            self.dialog.error_dialog(_('File is not in a branch'),
 
84
                                     _('The selected file is not in a branch.'))
85
85
            return
86
86
        except errors.NotSameBranchError:
87
 
            self.dialog.error_dialog('Not the same branch',
88
 
                                     'The destination is not in the same branch.')
 
87
            self.dialog.error_dialog(_('Not the same branch'),
 
88
                                     _('The destination is not in the same branch.'))
89
89
            return
90
90
        except:
91
91
            raise