From 749c4fd50375ee72502fec861fa6622fbf59c55e Mon Sep 17 00:00:00 2001 From: Artem Shumeiko <53895552+artemonsh@users.noreply.github.com> Date: Sat, 8 Apr 2023 01:16:24 +0300 Subject: [PATCH] fix(localization): localize legacy pivot table (#22677) --- superset/viz.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/superset/viz.py b/superset/viz.py index b021acd92..cbfb38f90 100644 --- a/superset/viz.py +++ b/superset/viz.py @@ -51,7 +51,7 @@ import polyline import simplejson as json from dateutil import relativedelta as rdelta from flask import request -from flask_babel import lazy_gettext as _ +from flask_babel import gettext as __, lazy_gettext as _ from geopy.point import Point from pandas.tseries.frequencies import to_offset @@ -1007,6 +1007,7 @@ class PivotTableViz(BaseViz): values=metrics, aggfunc=aggfuncs, margins=self.form_data.get("pivot_margins"), + margins_name=__("Total"), ) # Re-order the columns adhering to the metric ordering.