Changeset 2522

Show
Ignore:
Timestamp:
09/28/05 16:14:33 (19 years ago)
Author:
jerome
Message:

Fixed dupe == duplicate in non-translated messages.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r2474 r2522  
    762762         
    763763    def checkIfDupe(self) :     
    764         """Checks if the job is a dupe, and handles the situation.""" 
    765         self.logdebug("Checking if the job is a dupe...") 
     764        """Checks if the job is a duplicate, and handles the situation.""" 
     765        self.logdebug("Checking if the job is a duplicate...") 
    766766        denyduplicates = self.config.getDenyDuplicates(self.PrinterName) 
    767767        if not denyduplicates : 
    768             self.logdebug("We don't care about dupes after all.") 
     768            self.logdebug("We don't care about duplicate jobs after all.") 
    769769        elif self.Printer.LastJob.Exists \ 
    770770             and (self.Printer.LastJob.UserName == self.UserName) \ 
     
    775775            # TODO : with SQL, and is much more complex with the  
    776776            # TODO : actual LDAP schema. Maybe this is not very 
    777             # TODO : important, because usually dupes are rapidly sucessive. 
     777            # TODO : important, because usually duplicate jobs are sucessive. 
    778778            msg = _("Job is a dupe") 
    779779            if denyduplicates == 1 : 
     
    782782                self.Reason = _("Duplicate print jobs are not allowed on printer %s.") % self.PrinterName 
    783783            else :     
    784                 self.logdebug("Launching subprocess [%s] to see if dupes should be allowed or not." % denyduplicates) 
     784                self.logdebug("Launching subprocess [%s] to see if duplicate jobs should be allowed or not." % denyduplicates) 
    785785                fanswer = os.popen(denyduplicates, "r") 
    786786                self.Action = fanswer.read().strip().upper() 
     
    792792                    self.printInfo("%s : %s." % (msg, _("Subprocess allowed printing of a dupe")), "warn") 
    793793        else :             
    794             self.logdebug("Job doesn't seem to be a dupe.") 
    795         self.logdebug("Checking if the job is a dupe done.") 
     794            self.logdebug("Job doesn't seem to be a duplicate.") 
     795        self.logdebug("Checking if the job is a duplicate done.") 
    796796         
    797797    def tellUser(self) :