~ryan-c-ahearn/backintime/command_line_interface

« back to all changes in this revision

Viewing changes to cli/optionswidget.py

  • Committer: Ryan Ahearn
  • Date: 2010-03-02 04:48:25 UTC
  • Revision ID: ryan.c.ahearn@gmail.com-20100302044825-4efo4lqb7b5pjzwa
Added gettext calls to all strings that will be displayed to the user

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17
17
 
18
18
import urwid
 
19
import gettext
19
20
 
20
21
import logger
21
22
 
 
23
_=gettext.gettext
 
24
 
22
25
class OptionsWidget(urwid.WidgetWrap):
23
26
 
24
27
    def __init__( self, config ):
25
28
        self._config = config
26
29
 
27
30
        pile_list = [
28
 
            urwid.CheckBox( 'Enable notifications', config.is_notify_enabled(), on_state_change=self.flip_notify ),
29
 
            urwid.CheckBox( 'Disable snapshots when on battery', config.is_no_on_battery_enabled(), on_state_change=self.flip_battery ),
30
 
            urwid.CheckBox( 'Backup files on restore', config.is_backup_on_restore_enabled(), on_state_change=self.flip_backup_on_restore )
 
31
            urwid.CheckBox( _('Enable notifications'), config.is_notify_enabled(), on_state_change=self.flip_notify ),
 
32
            urwid.CheckBox( _('Disable snapshots when on battery'), config.is_no_on_battery_enabled(), on_state_change=self.flip_battery ),
 
33
            urwid.CheckBox( _('Backup files on restore'), config.is_backup_on_restore_enabled(), on_state_change=self.flip_backup_on_restore )
31
34
            ]
32
35
        display_widget = urwid.Pile( pile_list )
33
36
        urwid.WidgetWrap.__init__( self, display_widget )