From: Michael Tremer Date: Fri, 22 Jul 2016 16:47:56 +0000 (+0200) Subject: Initialize translation method in graph exporter X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b7561c878219139f16fdb8e5fe1dc45f911140bf;p=people%2Fms%2Fwestferry.git Initialize translation method in graph exporter Signed-off-by: Michael Tremer --- diff --git a/src/westferry/handlers/analytics.py b/src/westferry/handlers/analytics.py index 6346fa8..f4e944c 100644 --- a/src/westferry/handlers/analytics.py +++ b/src/westferry/handlers/analytics.py @@ -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)