]> git.ipfire.org Git - people/ms/westferry.git/commitdiff
Initialize translation method in graph exporter
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 22 Jul 2016 16:47:56 +0000 (18:47 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 22 Jul 2016 16:47:56 +0000 (18:47 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/westferry/handlers/analytics.py

index 6346fa8d5ecdc3c978084c21084b5e432f439794..f4e944c68aae321989946bff606098ecd06cc84d 100644 (file)
@@ -322,6 +322,8 @@ class GraphExportHandler(base.BaseHandler):
        url = r"/graph(/thumbnail)?/([\w\-]+)(?:/([\w\d\.]+))?\.(%s)" % "|".join(SUPPORTED_FORMATS)
 
        def get(self, thumbnail, template_name, object_id, format):
+               _ = self.locale.translate
+
                # Get the requested dimensions of the image
                height = self.get_argument_int("height", None)
                width  = self.get_argument_int("width", None)