cpufreq: Localise plugin
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 26 Oct 2015 17:14:44 +0000 (18:14 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 26 Oct 2015 17:14:44 +0000 (18:14 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/collecty/plugins/cpufreq.py

index 453e08e..00f6b87 100644 (file)
@@ -33,10 +33,12 @@ class GraphTemplateCPUFreq(base.GraphTemplate):
 
        @property
        def graph_title(self):
+               _ = self.locale.translate
                return _("CPU usage")
 
        @property
        def graph_vertical_label(self):
+               _ = self.locale.translate
                return "%s [%s]" % (_("Frequency"), _("Hz"))
 
        def get_object_table(self):