"ipv4" : "#cccc33",
}
- protocol_descriptions = {
- "ipv6" : _("IPv6"),
- "ipv4" : _("IPv4"),
- "other" : _("Other"),
- }
+ @property
+ def protocol_descriptions(self):
+ _ = self.locale.translate
+
+ return {
+ "ipv6" : _("IPv6"),
+ "ipv4" : _("IPv4"),
+ "other" : _("Other"),
+ }
@property
def graph_title(self):
+ _ = self.locale.translate
return _("Connections by Layer 3 Protocols")
@property
def graph_vertical_label(self):
+ _ = self.locale.translate
return _("Number of open connections")
def get_object_table(self, object_id):
@property
def rrd_graph(self):
+ _ = self.locale.translate
args = []
for proto in reversed(self.protocols):
"dccp" : "#33cc00",
}
- protocol_descriptions = {
- "tcp" : _("TCP"),
- "udp" : _("UDP"),
- "icmp" : _("ICMP"),
- "igmp" : _("IGMP"),
- "udplite" : _("UDP Lite"),
- "sctp" : _("SCTP"),
- "dccp" : _("DCCP"),
- "other" : _("Other"),
- }
+ @property
+ def protocol_descriptions(self):
+ _ = self.locale.translate
+
+ return {
+ "tcp" : _("TCP"),
+ "udp" : _("UDP"),
+ "icmp" : _("ICMP"),
+ "igmp" : _("IGMP"),
+ "udplite" : _("UDP Lite"),
+ "sctp" : _("SCTP"),
+ "dccp" : _("DCCP"),
+ "other" : _("Other"),
+ }
protocol_sortorder = {
"tcp" : 1,
@property
def graph_title(self):
+ _ = self.locale.translate
return _("Connections by IP Protocols")
@property
@property
def graph_title(self):
+ _ = self.locale.translate
return _("Protocol States of all %s connections") % self.protocol.upper()
@property
def graph_vertical_label(self):
+ _ = self.locale.translate
return _("Number of open connections")
@property
@property
def rrd_graph(self):
+ _ = self.locale.translate
args = []
for state in reversed(self.states):