@@ -485,10 +485,13 @@ def process_control_event(self, e):
485485 elif isinstance (e , bpythonevents .ReloadEvent ):
486486 if self .watching_files :
487487 self .clear_modules_and_reevaluate ()
488- self .status_bar .message ('Reloaded at ' + time .strftime ('%H:%M:%S' ) + ' because ' + ' & ' .join (e .files_modified ) + ' modified' )
488+ self .status_bar .message (
489+ _ ('Reloaded at %s because %s modified.' ) % (
490+ time .strftime ('%X' ),
491+ ' & ' .join (e .files_modified )))
489492
490493 else :
491- raise ValueError ("don 't know how to handle this event type: %r" % e )
494+ raise ValueError ("Don 't know how to handle event type: %r" % e )
492495
493496 def process_key_event (self , e ):
494497 # To find the curtsies name for a keypress, try python -m curtsies.events
@@ -739,22 +742,24 @@ def clear_modules_and_reevaluate(self):
739742 del sys .modules [modname ]
740743 self .reevaluate (insert_into_history = True )
741744 self .cursor_offset , self .current_line = cursor , line
742- self .status_bar .message ('Reloaded at ' + time .strftime ('%H:%M:%S' ) + ' by user' )
745+ self .status_bar .message (_ ('Reloaded at %s by user.' ) % \
746+ (time .strftime ('%X' ), ))
743747
744748 def toggle_file_watch (self ):
745749 if self .watcher :
746750 if self .watching_files :
747- msg = "Auto-reloading deactivated"
751+ msg = _ ( "Auto-reloading deactivated." )
748752 self .status_bar .message (msg )
749753 self .watcher .deactivate ()
750754 self .watching_files = False
751755 else :
752- msg = "Auto-reloading active, watching for file changes..."
756+ msg = _ ( "Auto-reloading active, watching for file changes..." )
753757 self .status_bar .message (msg )
754758 self .watching_files = True
755759 self .watcher .activate ()
756760 else :
757- self .status_bar .message ('Autoreloading not available because watchdog not installed' )
761+ self .status_bar .message (_ ('Auto-reloading not available because '
762+ 'watchdog not installed.' ))
758763
759764 ## Handler Helpers
760765 def add_normal_character (self , char ):
0 commit comments