Show
Ignore:
Timestamp:
02/09/03 14:05:43 (21 years ago)
Author:
jalet
Message:

Internationalization continues...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/requesters/snmp.py

    r744 r773  
    1515# 
    1616# $Log$ 
     17# Revision 1.4  2003/02/09 13:05:43  jalet 
     18# Internationalization continues... 
     19# 
    1720# Revision 1.3  2003/02/07 13:12:41  jalet 
    1821# Bad old comment 
     
    4548        """ 
    4649        if hostname is None : 
    47             raise PyKotaRequesterError, "Unknown printer address in SNMP(%s, %s) for printer %s" % (self.community, self.oid, self.printername) 
     50            raise PyKotaRequesterError, _("Unknown printer address in SNMP(%s, %s) for printer %s") % (self.community, self.oid, self.printername) 
    4851        answer = os.popen("snmpget -c %s -Ov %s %s" % (self.community, hostname, self.oid)) 
    4952        try : 
    5053            pagecounter = int(answer.readline().split()[-1].strip()) 
    5154        except IndexError :     
    52             raise PyKotaRequesterError, "Unable to query printer %s via SNMP(%s, %s)" % (hostname, self.community, self.oid)  
     55            raise PyKotaRequesterError, _("Unable to query printer %s via SNMP(%s, %s)") % (hostname, self.community, self.oid)  
    5356        answer.close() 
    5457        return pagecounter