/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/handler.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:
79
79
        try:
80
80
            ret = update.pull(self.comm.get_path())
81
81
        except errors.NotBranchError:
82
 
            self.dialog.error_dialog('Directory is not a branch',
83
 
                                     'You can perform this action only in a branch.')
 
82
            self.dialog.error_dialog(_('Directory is not a branch'),
 
83
                                     _('You can perform this action only in a branch.'))
84
84
        except errors.NoLocationKnown:
85
 
            self.dialog.error_dialog('Parent location is unknown',
86
 
                                     'Pulling is not possible until there is no parent location.')
 
85
            self.dialog.error_dialog(_('Parent location is unknown'),
 
86
                                     _('Pulling is not possible until there is no parent location.'))
87
87
        else:
88
 
            self.dialog.info_dialog('Pull successful',
89
 
                                    '%d revision(s) pulled.' % ret)
 
88
            self.dialog.info_dialog(_('Pull successful'),
 
89
                                    _('%d revision(s) pulled.') % ret)
90
90
        
91
91
        self.comm.set_busy(self.comm.window_main, False)
92
92
    
109
109
        try:
110
110
            init.init(self.comm.get_path())
111
111
        except errors.AlreadyBranchError, errmsg:
112
 
            self.dialog.error_dialog('Directory is already a branch',
113
 
                                     'The current directory (%s) is already a branch.\nYou can start using it, or initialize another directory.' % errmsg)
 
112
            self.dialog.error_dialog(_('Directory is already a branch'),
 
113
                                     _('The current directory (%s) is already a branch.\nYou can start using it, or initialize another directory.') % errmsg)
114
114
        except errors.BranchExistsWithoutWorkingTree, errmsg:
115
 
            self.dialog.error_dialog('Branch without a working tree',
116
 
                                     'The current directory (%s)\nis a branch without a working tree.' % errmsg)
 
115
            self.dialog.error_dialog(_('Branch without a working tree'),
 
116
                                     _('The current directory (%s)\nis a branch without a working tree.') % errmsg)
117
117
        except:
118
118
            raise
119
119
        else:
120
 
            self.dialog.info_dialog('Ininialize successful',
121
 
                                    'Directory successfully initialized.')
 
120
            self.dialog.info_dialog(_('Ininialize successful'),
 
121
                                    _('Directory successfully initialized.'))
122
122
            self.comm.refresh_right()
123
123
        
124
124
    def on_menuitem_file_make_directory_activate(self, widget):
263
263
 
264
264
    def not_implemented(self, widget):
265
265
        """ Display a Not implemented error message. """
266
 
        self.dialog.error_dialog('I feel sorry',
267
 
                                 'This feature is not yet implemented.')
 
266
        self.dialog.error_dialog(_('We feel sorry'),
 
267
                                 _('This feature is not yet implemented.'))
268
268