Changeset 772 for pykota/trunk/bin/repykota
- Timestamp:
- 02/09/03 13:56:53 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/repykota
r770 r772 17 17 # 18 18 # $Log$ 19 # Revision 1.8 2003/02/09 12:56:53 jalet 20 # Internationalization begins... 21 # 19 22 # Revision 1.7 2003/02/08 23:17:20 jalet 20 23 # repykota now outputs life time page counters and the total pages printed by … … 102 105 printernames = self.storage.getMatchingPrinters(options["printer"]) 103 106 if not printernames : 104 raise PyKotaToolError, "There's no printer matching %s"% options["printer"]107 raise PyKotaToolError, _("There's no printer matching %s") % options["printer"] 105 108 for printer in printernames : 106 print "*** Report for %s quota on printer %s"% ((options["users"] and "user") or "group", printer)107 print "Pages grace time: %idays"% self.config.getGraceDelay()109 print _("*** Report for %s quota on printer %s") % ((options["users"] and "user") or "group", printer) 110 print _("Pages grace time: %idays") % self.config.getGraceDelay() 108 111 total = 0 109 112 if options["users"] : 110 print "User used soft hard grace total"113 print _("User used soft hard grace total") 111 114 print "------------------------------------------------------------" 112 115 for name in self.storage.getPrinterUsers(printer) : … … 114 117 total += self.printQuota(name, quota) 115 118 else : 116 print "Group used soft hard grace total"119 print _("Group used soft hard grace total") 117 120 print "------------------------------------------------------------" 118 121 for name in self.storage.getPrinterGroups(printer) : … … 171 174 reporter.display_version_and_quit() 172 175 elif options["users"] and options["groups"] : 173 raise PyKotaToolError, "repykota: options --users and --groups are incompatible."176 raise PyKotaToolError, _("repykota: options --users and --groups are incompatible.") 174 177 elif options["groups"] : 175 raise PyKotaToolError, "repykota: options --groups is currently not implemented."178 raise PyKotaToolError, _("repykota: options --groups is currently not implemented.") 176 179 elif args : 177 raise PyKotaToolError, "repykota: unused arguments [%s]. Aborting."% ", ".join(args)180 raise PyKotaToolError, _("repykota: unused arguments [%s]. Aborting.") % ", ".join(args) 178 181 else : 179 182 sys.exit(reporter.main(options))