Changeset 1606 for pykota/trunk/bin/pkhint
- Timestamp:
- 07/21/04 00:19:45 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pkhint
r1584 r1606 24 24 # 25 25 # $Log$ 26 # Revision 1.15 2004/07/20 22:19:45 jalet 27 # Sanitized a bit + use of gettext 28 # 26 29 # Revision 1.14 2004/07/01 19:56:40 jalet 27 30 # Better dispatching of error messages … … 196 199 (backend, destination) = device.split(":", 1) 197 200 except ValueError : 198 raise PyKotaToolError, "Invalid DEVICE_URI : %s\n"% device201 raise PyKotaToolError, _("Invalid DeviceURI : %s") % device 199 202 while destination.startswith("/") : 200 203 destination = destination[1:] … … 220 223 """Main work is done here.""" 221 224 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...") 223 226 printers = self.extractPrintersInformation() 224 227 devicestypes = self.extractDevices() # TODO : IT'S CUPS ONLY FOR NOW … … 254 257 print "\nSorry, pkhint can't help you for now. Please configure PyKota manually." 255 258 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.") 260 263 for (printer, accounter) in configuration : 261 264 print "[%s]" % printer