Ignore:
Timestamp:
Oct 4, 2016, 9:16:04 AM (3 years ago)
Author:
jrpelegrina
Message:

WIP in i18n

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-session-manager/trunk/fuentes/install-files/usr/bin/lliurex-session-manager

    r2547 r2548  
    3434                self.max_seconds=15.0
    3535                self.current_second=0
    36                 #self.progress_txt=_("%s will %s in %s seconds...")
     36                self.progress_txt=_("%s will %s in %s seconds...")
    3737                self.can_suspend=True
    3838                self.can_hibernate=True
     
    311311               
    312312                csecond=int(self.max_seconds+1-self.current_second)
    313                 #self.progressbar.set_text(self.progress_txt%(what,how,csecond))
    314                 self.progressbar.set_text(_("%s will %s in %s seconds...")%(what,how,csecond))
     313                self.progressbar.set_text(self.progress_txt%(what,how,csecond))
    315314                self.progressbar.set_fraction(self.current_second/self.max_seconds)
    316315                self.current_second+=0.01
     
    318317                if self.current_second>=self.max_seconds:
    319318                        print "Executing callback..."
    320                         #self.progressbar.set_text(self.progress_txt%(what,how,0))
    321                         self.progressbar.set_text(_("%s will %s in %s seconds...")%(what,how,0))
     319                        self.progressbar.set_text(self.progress_txt%(what,how,0))
    322320                        callback()
    323321                        self.exit(None)
Note: See TracChangeset for help on using the changeset viewer.