You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2023/04/07 22:16:35 UTC

[superset] branch master updated: fix(localization): localize legacy pivot table (#22677)

This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 749c4fd503 fix(localization): localize legacy pivot table (#22677)
749c4fd503 is described below

commit 749c4fd50375ee72502fec861fa6622fbf59c55e
Author: Artem Shumeiko <53...@users.noreply.github.com>
AuthorDate: Sat Apr 8 01:16:24 2023 +0300

    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 b021acd92f..cbfb38f90b 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.