diff options
author | Matthieu Aubry <mattab@users.noreply.github.com> | 2017-02-21 13:24:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-21 13:24:38 +0300 |
commit | 34de2eb41a75fe9490cafeb9de7bfa7ef07248f6 (patch) | |
tree | 58d79ad16f36d7bcab89655c3d9888b4bd408bfd /plugins/SegmentEditor | |
parent | 7ef892665d8e51471a0eb3fa93a4b0f9967278b7 (diff) |
Lower the string in a way that works with any language (#11375)
Diffstat (limited to 'plugins/SegmentEditor')
-rw-r--r-- | plugins/SegmentEditor/SegmentSelectorControl.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/SegmentEditor/SegmentSelectorControl.php b/plugins/SegmentEditor/SegmentSelectorControl.php index 560af449fa..47434019ef 100644 --- a/plugins/SegmentEditor/SegmentSelectorControl.php +++ b/plugins/SegmentEditor/SegmentSelectorControl.php @@ -54,8 +54,7 @@ class SegmentSelectorControl extends UIControl if ($segment['category'] == $visitTitle && ($segment['type'] == 'metric' && $segment['segment'] != 'visitIp') ) { - $metricsLabel = Piwik::translate('General_Metrics'); - $metricsLabel[0] = Common::mb_strtolower($metricsLabel[0]); + $metricsLabel = Common::mb_strtolower(Piwik::translate('General_Metrics')); $segment['category'] .= ' (' . $metricsLabel . ')'; } $segmentsByCategory[$segment['category']][] = $segment; |