]> git.ipfire.org Git - oddments/collecty.git/commitdiff
latency: Localise plugin
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 26 Oct 2015 17:15:38 +0000 (18:15 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 26 Oct 2015 17:15:38 +0000 (18:15 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/collecty/plugins/latency.py

index 127ff809acdcbbe606404e7ed760c873573b6f4c..c6cc5472559d8cb4721d2f9a1fdc715eb3730d06 100644 (file)
@@ -37,6 +37,8 @@ class GraphTemplateLatency(base.GraphTemplate):
 
        @property
        def rrd_graph(self):
+               _ = self.locale.translate
+
                return [
                        "DEF:latency6=%(file)s:latency6:AVERAGE",
                        "DEF:loss6=%(file)s:loss6:AVERAGE",
@@ -97,10 +99,12 @@ class GraphTemplateLatency(base.GraphTemplate):
 
        @property
        def graph_title(self):
+               _ = self.locale.translate
                return _("Latency to %s") % self.object.hostname
 
        @property
        def graph_vertical_label(self):
+               _ = self.locale.translate
                return _("Milliseconds")
 
        @property