Show
Ignore:
Timestamp:
02/09/03 13:56:53 (21 years ago)
Author:
jalet
Message:

Internationalization begins...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/repykota

    r770 r772  
    1717# 
    1818# $Log$ 
     19# Revision 1.8  2003/02/09 12:56:53  jalet 
     20# Internationalization begins... 
     21# 
    1922# Revision 1.7  2003/02/08 23:17:20  jalet 
    2023# repykota now outputs life time page counters and the total pages printed by 
     
    102105        printernames = self.storage.getMatchingPrinters(options["printer"]) 
    103106        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"] 
    105108        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() 
    108111            total = 0 
    109112            if options["users"] : 
    110                 print "User             used     soft     hard   grace        total" 
     113                print _("User             used     soft     hard   grace        total") 
    111114                print "------------------------------------------------------------" 
    112115                for name in self.storage.getPrinterUsers(printer) : 
     
    114117                    total += self.printQuota(name, quota) 
    115118            else : 
    116                 print "Group            used     soft     hard   grace        total" 
     119                print _("Group            used     soft     hard   grace        total") 
    117120                print "------------------------------------------------------------" 
    118121                for name in self.storage.getPrinterGroups(printer) : 
     
    171174            reporter.display_version_and_quit() 
    172175        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.") 
    174177        elif options["groups"] :     
    175             raise PyKotaToolError, "repykota: options --groups is currently not implemented." 
     178            raise PyKotaToolError, _("repykota: options --groups is currently not implemented.") 
    176179        elif args :     
    177             raise PyKotaToolError, "repykota: unused arguments [%s]. Aborting." % ", ".join(args) 
     180            raise PyKotaToolError, _("repykota: unused arguments [%s]. Aborting.") % ", ".join(args) 
    178181        else : 
    179182            sys.exit(reporter.main(options))