]> git.ipfire.org Git - collecty.git/blobdiff - src/collecty/plugins/contextswitches.py
locales: Drop our custom module
[collecty.git] / src / collecty / plugins / contextswitches.py
index 519c3e0b70045103bbe057bd1f5390cc75d6e5d1..3bc84e21410b6a4e5e239675e5ee64f70e99989d 100644 (file)
@@ -25,14 +25,13 @@ from . import base
 
 from ..colours import *
 from ..constants import *
+from ..i18n import _
 
 class GraphTemplateContextSwitches(base.GraphTemplate):
        name = "context-switches"
 
        @property
        def rrd_graph(self):
-               _ = self.locale.translate
-
                return [
                        "COMMENT:%s" % EMPTY_LABEL,
                        "COMMENT:%s" % (COLUMN % _("Current")),
@@ -56,12 +55,10 @@ class GraphTemplateContextSwitches(base.GraphTemplate):
 
        @property
        def graph_title(self):
-               _ = self.locale.translate
                return _("Context Switches")
 
        @property
        def graph_vertical_label(self):
-               _ = self.locale.translate
                return _("Context Switches/s")