]> git.ipfire.org Git - collecty.git/commitdiff
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 453e08edb0870abed4975741346351e3a600c3e8..00f6b87c11a81b3d2c9805bf91fcce3cf230c9e5 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):