Show
Ignore:
Timestamp:
07/21/04 00:19:45 (20 years ago)
Author:
jalet
Message:

Sanitized a bit + use of gettext

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pkhint

    r1584 r1606  
    2424# 
    2525# $Log$ 
     26# Revision 1.15  2004/07/20 22:19:45  jalet 
     27# Sanitized a bit + use of gettext 
     28# 
    2629# Revision 1.14  2004/07/01 19:56:40  jalet 
    2730# Better dispatching of error messages 
     
    196199            (backend, destination) = device.split(":", 1)  
    197200        except ValueError :     
    198             raise PyKotaToolError, "Invalid DEVICE_URI : %s\n" % device 
     201            raise PyKotaToolError, _("Invalid DeviceURI : %s") % device 
    199202        while destination.startswith("/") : 
    200203            destination = destination[1:] 
     
    220223        """Main work is done here.""" 
    221224        sys.stderr.write("BEWARE : This tool doesn't support LPRng's printcap files yet.\n") 
    222         print "\nPlease wait while pkhint analyzes your printing system's configuration..." 
     225        print _("\nPlease wait while pkhint analyzes your printing system's configuration...") 
    223226        printers = self.extractPrintersInformation() 
    224227        devicestypes = self.extractDevices() # TODO : IT'S CUPS ONLY FOR NOW 
     
    254257            print "\nSorry, pkhint can't help you for now. Please configure PyKota manually." 
    255258        else : 
    256             print "\nPut the following lines into your /etc/pykota/pykota.conf file :\n" 
    257             print "# BEWARE : if software accounting is suggested, this doesn't mean" 
    258             print "# that hardware accounting wouldn't work, this only means that PyKota" 
    259             print "# wasn't able to autodetect which hardware accounting method to use." 
     259            print _("\nPut the following lines into your /etc/pykota/pykota.conf file :\n") 
     260            print _("# BEWARE : if software accounting is suggested, this doesn't mean") 
     261            print _("# that hardware accounting wouldn't work, this only means that PyKota") 
     262            print _("# wasn't able to autodetect which hardware accounting method to use.") 
    260263            for (printer, accounter) in configuration : 
    261264                print "[%s]" % printer